ifstat命令行得到网卡流量

下载ifstat,?http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz

#tarxzvfifstat-1.1.tar.gz

#cdifstat-1.1

#./configure&&make&&makeinstall

#manifstat

-t显示时间格式:HH:MM:SS

-i指定的网卡,如果有多块网卡以”,”分隔

-T显示所有接口的带宽.

[root@flow_video]#ifstat-tT

Timeeth0eth1eth2eth3Total

HH:MM:SSKB/sinKB/soutKB/sinKB/soutKB/sinKB/soutKB/sinKB/soutKB/sinKB/sout

16:53:040.840.621256.271173.050.120.180.000.001257.221173.86

16:53:050.570.400.570.760.000.000.000.001.141.17

16:53:061.580.710.420.780.000.000.000.002.011.48

16:53:070.570.401.912.610.000.000.000.002.483.01

16:53:080.730.40924.021248.910.000.000.000.00924.761249.31

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

相关推荐