<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/axeeffect/">
    <title>axeeffect @ ウィキ</title>
    <link>http://w.atwiki.jp/axeeffect/</link>
    <atom:link href="https://w.atwiki.jp/axeeffect/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>axeeffect @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2013-02-20T16:42:38+09:00</dc:date>
    <utime>1361346158</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/32.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/31.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/30.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/28.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/axeeffect/pages/21.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/32.html">
    <title>データファイル</title>
    <link>https://w.atwiki.jp/axeeffect/pages/32.html</link>
    <description>
      de-ta保存    </description>
    <dc:date>2013-02-20T16:42:38+09:00</dc:date>
    <utime>1361346158</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/13.html">
    <title>スクリプト関連</title>
    <link>https://w.atwiki.jp/axeeffect/pages/13.html</link>
    <description>
      *Windows改行ファイル群から\rを取り除くスクリプト

前提
ディレクトリiの内容をディレクトリi/unix/へ複製
（必要であれば、unixをmvで別ディレクトリへ移す）

1)list.txtの作成
cd i
find ./ -exec ls -d [] \; |sed -e &quot;s/^\.\///g&quot; &gt; ..\list.txt
cd ..

2)
mkdir i/unix
cp -R i i/unix

3)コードを取り除いて作成する
list=list.txt
DIR=unix

for file in `cat list` 
do
if [ -f $file] ; then
  tr \\r \\n &lt; $file &gt; $DIR$file
fi
done

*メールのスクリプト
----
**メール移行
旧メールサーバ上で、
 [[sendmail]] サービス停止
 /etc/rc2.d/Kxxsendmailを実行
 ps -ef |grep sendmailにて確認
 cd /var/spool/mail
 tar cvpf ../tmpmail.tar ./

----

**ユーザリストファイルの作成
 gawk -F: &#039;{ print $1 }&#039; /etc/passwd &gt; userlist.txt

**メールファイルを空にする
 #!/bin/sh
 for fn in `cat userlist.txt`
 do
  cat /dev/null &gt; /var/spool/mail/$fn
 done
 echo &quot;処理は終了しました。&quot;

**メールファイルをコピーする
 #!/bin/sh
 for fn in `cat userlist.txt`
 do
  cat /var/spool/tmp/$fn &gt;&gt; /var/spool/mail/$fn
 done
 echo &quot;処理は終了しました。&quot;

----
**sendmailのmc変更後の実施
 m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf

----
**Postfix
***main.cf
|disable_vrfy_command = yes |（VRFYコマンドの制限）|
|smtpd_banner = $myhostname ESMTP $mail_name |（バナー情報制限）|
|smtpd_helo_required = yes |（HELOコマンド必須）|


----
**grepで複数みつけたい時
 ifconfig |egrep &#039;^em|^bce|100&#039;
これで、emのインターフェースとbceのインターフェースとLinkUP状態が確認可能    </description>
    <dc:date>2010-03-08T16:58:28+09:00</dc:date>
    <utime>1268035108</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/27.html">
    <title>FreeBSD</title>
    <link>https://w.atwiki.jp/axeeffect/pages/27.html</link>
    <description>
      ----
#contents(page=FreeBSD)
----

**7.1-Release 初期セットアップ

----
TABキーでディレクトリリストが表示される。bashみたいになる。
.cshrc（/etc/csh.cshrcに登録すると全tcshユーザで有効になりそう。）
&gt;set autolist = ambiguous
ついでに五月蠅いbeepを止めるには
&gt;set nobeep
----
/etc/ssh/sshd_config
&gt;PasswordAuthentication yes
に変更することで、パスワードログイン可能
&gt;/etc/rc.d/sshd restart
----
httpd.conf に
&gt;AcceptFilter http none
とすればいい。
----

**FreeBSDでLinuxのHDDをマウントする手順（VMware編）

vmwareのvmxファイルを編集し、FreeBSDにLinuxのHDDイメージを認識させる
&gt;例）
&gt;scsi0:0.present = &quot;TRUE&quot;
&gt;scsi0:0.fileName = &quot;image.vmdk&quot;

FreeBSDを起動すると、scsiドライブを認識するはず。

&gt;mount_ext2fs /dev/da0s1 /mnt
のような形式でマウント可能

スーパーブロックがどうのこうのと出てきた場合
ext2のfsckを実行すると良さそう
&gt;e2fsck /dev/da0s1

なおこのe2fsckは、portsでインストール可能
&gt;/usr/ports/sysutils/e2fsprogs/


**インターフェースのエイリアス追加方法
rc.confに下記書式で追加
&gt;ifconfig_ed1_alias0=&quot;inet 192.168.1.202  netmask 0xffffffff&quot;


**syslogd(デフォルト)でのsyslog受付
/etc/rc.conf
&gt;syslogd_flags=&quot;-4 -n -a *:*&quot;

/etc/syslog.conf
&gt;+ホスト名（又はIPアドレス）
&gt;*.*      /var/log/remote.log
ただしこの表記だと、messagesに同じ内容が記録される。
回避としては、syslog.confの初めに、+localhostを付ければうまくいきそう。

/etc/newsyslog.conf
&gt;/var/log/remote.log                      600  5     100  *    J

ログファイル作成
&gt;touch/var/log/remote.log

再起動か、syslogのリブート
&gt; /etc/rc.d/syslogd restart

**bindの起動
/etc/rc.conf
 # chroot する場合
&gt;named_program=&quot;/usr/local/sbin/named&quot;
&gt;named_flags=&quot;-u bind -t /etc/namedb -c /named.conf&quot;

# chroot しない場合
&gt;named_program=&quot;/usr/local/sbin/named&quot;
&gt;named_flags=&quot;-u bind -c etc/namedb/named.conf&quot;

----    </description>
    <dc:date>2010-03-08T10:04:28+09:00</dc:date>
    <utime>1268010268</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/31.html">
    <title>言葉</title>
    <link>https://w.atwiki.jp/axeeffect/pages/31.html</link>
    <description>
      ***sFlow
----
-米インモン（InMon）が開発した技術
-仕様はsFlowのサイトで公開
-機器はsFlowV2を実装している場合が多い
-基本的にLANスイッチに内蔵
-管理対象のポートやVLANを流れるパケットをキャプチャ
-管理ステーション「コレクタ」
-指定された割合のサンプリング・パケット
-ポート単位の統計情報（送受信パケット，バイト数，エラー数）

***NetFlow
----
-米シスコシステムズが開発
-ソフトウエア機能（IOSの拡張機能）として実装
-ネットワーク機器上で「フロー」単位でパケット数やバイト数を集計
-フローとは、TCP，UDPやICMPのあて先，送信元のIPアドレスとポート番号の組み合わせで識別するセッション
-集計データをUDPベースのNetFlowパケットで管理ステーションへ送信します。
-NetFlowでも管理ステーションを「コレクタ」と呼ぶ    </description>
    <dc:date>2009-11-12T13:26:11+09:00</dc:date>
    <utime>1257999971</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/axeeffect/pages/2.html</link>
    <description>
      メニュー


----
本日：&amp;counter(today)
昨日：&amp;counter(yesterday)
----
-[[FreeBSD]]
----
*設定情報
-[[各種手順]]
-[[snmpd]]
-[[sendmail]]
-[[squid]]
----
*sidewinder
-[[DNS]]
-[[詳細]]
-[[zebra(ripd)]]
*TSP
-[[TSPに関して]]
----
*Vclass
-[[色々]]
----
*ISS
-[[Proventia]]
-[[エラー]]
----
-[[略語]]
-[[言葉]]
----
*作業

-[[設定作業]]

----
*サービス関係

-[[スクリプト関連]]
-[[ウイルスチェック]]
-[[apache]]
-[[postfix兼pop]]

----

*OS関係
-[[セキュリティ]]
-[[ログ]]
-[[実施項目]]
-[[設定]]
-[[デフォルトパラメータ？]]
-[[ユーザ先実施項目]]

----
*アプリ関連
-[[Word]]
-[[Excel]]

----
-[[Disk1-4 package]]

----
-[[xml関連]]

----

-[[トップページ]]
-[[メニュー]]
-[[メニュー2]]

----


-[[@ウィキ ガイド&gt;http://atwiki.jp/guide/]]
-[[@wiki 便利ツール &gt;http://atwiki.jp/tools/]]
-[[@wiki&gt;http://atwiki.jp]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります    </description>
    <dc:date>2009-11-12T13:22:02+09:00</dc:date>
    <utime>1257999722</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/23.html">
    <title>snmpd</title>
    <link>https://w.atwiki.jp/axeeffect/pages/23.html</link>
    <description>
      ----


* snmptrapd

（途中、うまくいってない。)
/etc/snmp/snmptrapd.confを編集

authCommunity log,execute,net public

public -&gt; コミュニティ名へ変更


service snmptrapd restart

現在 messagesにエラーが出ている


----------------------------------------------------

* snmptrap

RedHat Enterprise Linux ES4ではインストール時に
プログラムが追加されない。

そのため、CD4枚目からrpmによりパッケージをインストールする
必要がある。

&gt; rpm -i net-snmp-utilsうんたらかんたら

net-snmpや、net-snmp-libsも必要だが、これらはデフォルト
でインストールされるようなので、基本的には考えなくて良い。

/usr/bin/snmptrapとしてインストールされる。

これを実行する場合は、下記表記等でトラップを送信することが
可能である。

&gt; snmptrap -v 1 -c trapprivate 192.168.0.1 .1.3.6.1.4.1.8072.99999 192.168.0.1 6 1 &#039;&#039; .1.3.6.1.4.1.8072.99999.1 s &quot;Trap Message&quot;

----
----
----
----    </description>
    <dc:date>2009-10-21T16:32:22+09:00</dc:date>
    <utime>1256110342</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/30.html">
    <title>略語</title>
    <link>https://w.atwiki.jp/axeeffect/pages/30.html</link>
    <description>
      |略称|名称|
|NSP|McAfee Network Security Platform|    </description>
    <dc:date>2009-06-15T16:24:28+09:00</dc:date>
    <utime>1245050668</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/26.html">
    <title>Proventia</title>
    <link>https://w.atwiki.jp/axeeffect/pages/26.html</link>
    <description>
      *SiteProtectorからの登録

***Proventia Manager で、[System] → [Management] の順に選択~
[Register with SiteProtector]をオンにする~
Heartbeat Interval (secs)は300秒以上にすること（300でやってみる。）~
[Save Changes] をクリック~
アプライアンスと通信させる Agent Managerを追加します。~
1. Proventia Manager で、[System] -&gt;[Management] の順に選択します。~
2. SiteProtector への登録を有効にしたことを確認します。~
3. [Agent Manager Configuration] 領域で、[Add] をクリックします。~
Agent Manager Nameは、SiteProtector に表示されるとおりに、Agent Manager 名を入
力します。~
この設定では、大文字と小文字が区別されます。~
***Agent Manager~
 AddressはAgent Manager の IP アドレスを入力します。~
User NameAgent Manager にアクセスするために、アカウントへのログ
インが必要な場合、ここでそのアカウントのユーザー名を入
力します。~
注記: アカウントのユーザー名は、Agent Manager 上で設定
されます。~
5. [OK] をクリックします。~
6. [Save Changes] をクリックします。~

*SiteProtectorイベント詳細の日本語化
http://www.ibm.com/services/jp/iss/misc/xforcehelpfilesj.tar.gz

----
----
----    </description>
    <dc:date>2009-06-10T10:14:59+09:00</dc:date>
    <utime>1244596499</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/28.html">
    <title>zebra(ripd)</title>
    <link>https://w.atwiki.jp/axeeffect/pages/28.html</link>
    <description>
      *スタティックルートを反映させる方法
コンフィグ内に記述を追加
&gt;redistribute static
ただし、デフォルトゲート情報まで流してしまう。

*ripd
quaagaが利用されている
zebraではない

----
----
----

----
----
----
----
----
----
以上    </description>
    <dc:date>2009-06-03T17:28:08+09:00</dc:date>
    <utime>1244017688</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/axeeffect/pages/21.html">
    <title>詳細</title>
    <link>https://w.atwiki.jp/axeeffect/pages/21.html</link>
    <description>
      ----

***ログの通知

75%までログが増えた際、24時間たってもイベントが再通知されない。

[原因]
一度75%以下とならなくてはいけない。


***ripとスタティック

ripが優先される。
ripにはフィルタをかけておく必要がある。

***kernelオプションの確認
&gt;sysctl net.inet.udp.strict_mcast_mship

----
----    </description>
    <dc:date>2009-06-03T17:27:05+09:00</dc:date>
    <utime>1244017625</utime>
  </item>
  </rdf:RDF>
