ifstat命令行得到网卡流量

下载 ifstat , ?http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz
#tar xzvf ifstat-1.1.tar.gz
#cd ifstat-1.1
# ./configure && make &&make install

#man ifstat
-t 显示时间 格式:HH:MM:SS
-i 指定的网卡 ,如果有多块网卡 以”,”分隔
-T 显示所有接口的带宽.
[root@flow_video]# ifstat -tT
  Time           eth0                eth1                eth2                eth3               Total      
HH:MM:SS   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
16:53:04      0.84      0.62   1256.27   1173.05      0.12      0.18      0.00      0.00   1257.22   1173.86
16:53:05      0.57      0.40      0.57      0.76      0.00      0.00      0.00      0.00      1.14      1.17
16:53:06      1.58      0.71      0.42      0.78      0.00      0.00      0.00      0.00      2.01      1.48
16:53:07      0.57      0.40      1.91      2.61      0.00      0.00      0.00      0.00      2.48      3.01
16:53:08      0.73      0.40    924.02   1248.91      0.00      0.00      0.00      0.00    924.76   1249.31


更多请参考http://jasonyong.blog.51cto.com/47753/174197

猜你喜欢

转载自xingwang-ye.iteye.com/blog/1050492