BWM-NG 监控网络带宽和磁盘IO的小利器
安装 bwm-ng
官网: http://www.gropp.org/
cd /usr/src
wget http://www.gropp.org/bwm-ng/bwm-ng-0.6.tar.gz
tar zxvf bwm-ng-0.6.tar.gz
cd bwm-ng-0.6
./configure && make && make install
1.监控网络:
bwm-ng -u bits -d
bwm-ng -u bytes -d
2.监控磁盘IO
bwm-ng -u bytes -i disk
# bwm-ng --help //更详细的使用大家一起挖掘
Bandwidth Monitor NG (bwm-ng) v0.6
Copyright (C) 2004-2007 Volker Gropp
USAGE: bwm-ng [OPTION] ... [CONFIGFILE]
displays current ethernet interfaces stats
Options:
-t, --timeout displays stats every (1msec = 1/1000sec)
default: 500
-d, --dynamic [value] show values dynamicly (Byte KB or MB)
-a, --allif [mode] where mode is one of:
0=show only up (and selected) interfaces
1=show all up interfaces (default)
2=show all and down interfaces
-I, --interfaces
官网: http://www.gropp.org/
cd /usr/src
wget http://www.gropp.org/bwm-ng/bwm-ng-0.6.tar.gz
tar zxvf bwm-ng-0.6.tar.gz
cd bwm-ng-0.6
./configure && make && make install
1.监控网络:
bwm-ng -u bits -d
bwm-ng -u bytes -d
2.监控磁盘IO
bwm-ng -u bytes -i disk
# bwm-ng --help //更详细的使用大家一起挖掘
Bandwidth Monitor NG (bwm-ng) v0.6
Copyright (C) 2004-2007 Volker Gropp
USAGE: bwm-ng [OPTION] ... [CONFIGFILE]
displays current ethernet interfaces stats
Options:
-t, --timeout
default: 500
-d, --dynamic [value] show values dynamicly (Byte KB or MB)
-a, --allif [mode] where mode is one of:
0=show only up (and selected) interfaces
1=show all up interfaces (default)
2=show all and down interfaces
-I, --interfaces
- show only interfaces in
- (comma seperated), or
if list is prefaced with % show all but interfaces
in list
-S, --sumhidden [value] count hidden interfaces for total
-A, --avglength
-D, --daemon [value] fork into background and daemonize
-h, --help displays this help
-V, --version print version info
Input:
-i, --input
-f, --procfile
--diskstatsfile
--partitionsfile
Output:
-o, --output
plain, curses, curses2, csv, html
-u, --unit
-T, --type
-C, --csvchar
-F, --outfile
-R, --htmlrefresh
-H, --htmlheader show and frame for html output
-c, --count
-N, --ansiout disable ansi codes for plain output
(ie 1 for one single output)