700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > ifstat 网络流量统计工具

ifstat 网络流量统计工具

时间:2021-05-30 13:07:57

相关推荐

ifstat 网络流量统计工具

ifstat---实时报告接口状态,是一个网络流量监测程序,能查看网卡的流出和流入的字节.

简单描述:ifstat就像iostat/vmstat描述其它的系统状况一样,是一个统计网络接口活动状态的工具。

下载地址如下:

wget

安装如下:

[root@localhost ifstat-1.1]#tar -zxvf ifstat-1.1.tar.gz

[root@localhost ifstat-1.1]#./configure

[root@localhost ifstat-1.1]#make

[root@localhost ifstat-1.1]#make install

查看接口状态:

[root@localhost ifstat-1.1]#ifstat -i eth0

eth0

KB/s in KB/s out

690.41 3795.54

113.38 4526.90

116.06 3344.28

88.87 2193.32

84.94 1853.11

483.74 2282.21

335.33 2779.73

178.87 3399.24

346.33 2541.09

560.63 2208.67

1355.57 2094.73

注意:

这里的单位是KB/s,一般我们说的网络流量,是按照bit来计算的,比如(30Mbits/sec = 3MB/sec),,和这里的(3000.54KB/s = 3MB/sec )是相吻合的。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。