ネットワークの監視でなんか良いツールないかなぁと探していました。
そしたら iptraf というツールを発見。
ソースからインストールしたけど、エラーもなく簡単にインストールできたし、使ってみると、なかなか凄いなぁと感動しました。
1.ダウンロード
http://cebu.mozcom.com/riker/iptraf/ からダウンロード
今回は、iptraf-2.7.0.tar.gz をダウンロード
2.インストール
・解凍
user$ tar zxvf iptraf-2.7.0.tar.gz
user$ cd iptraf-2.7.0
・インストールについてINSTALLをみればインストール方法が書いていた。
user$ vi INSTALL
he iptraf-2.7.0.tar.gz file no longer contains precompiled executable
programs, only source code. To compile and install, just change to the
iptraf-2.7.0 top-level directory and type:
./Setup
This will automatically compile and install the software.
The traditional
cd src
make clean
make
make install
can still be used.
※ 途中「マニュアルを見るか?」みたいな問い合わせがあるが、たぶんどっちでも良いと思う。一応 全部 "Y" と答えた。
user$ ./Setup
user$ cd src
user$ make clean
user$ make
user$ su
root# make install
これで、インストールは完了。
使い方は、rootユーザで以下のように実行する
root# /usr/local/bin/iptraf
そうすると『IPTraf』という以下の画面が表示されました。
□□□□□□□□□□□□□□□□□□□□□
IPTraf
An IP Network Statistics Utility
Version 2.7.0
Written by Gerard Paul Java
Copyright (c) Gerard Paul Java 1997-2002
This program is open-source software released
under the terms of the GNU General Public
Public License Version 2 or any later version.
See the included LICENSE file for details.
Press a key to continue
□□□□□□□□□□□□□□□□□□□□□
[ENTER]キーを入力すると次の画面が表示されます。
[IP traffic monitor]を選択するとトラフィック内容がリアル
タイムに表示されます。
lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x IP traffic monitor
x General interface statistics
x Detailed interface statistics
x Statistical breakdowns...
x LAN station monitor
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
x Filters...
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
x Configure...
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
x Exit
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
以上です。
