centos 安装iftop, linux 流量查看小工具,显示结果说明

Posted by bower on June 22, 2009
linux/ubuntu

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

发现最近流量不错,需要有工具查看一样了

[root@idc-xxxx-xxxx-xxxx-xxxx ~]# yum list | grep libpcap
libpcap.i386 14:0.9.4-12.el5 installed
libpcap-devel.i386 14:0.9.4-12.el5 installed

若沒有安裝請執行:

[root@idc-56-112-212-116 ~]# yum install libp*

[root@idc-56-112-212-116 ~]#yum install iftop

一定要安装libpcap

然后[root@idc-56-112-212-116 ~]#iftop

iftop

TX:发送流量
RX:接收流量
TOTAL:总流量
Cumm:运行iftop到目前时间的总流量
peak:流量峰值
rates:分别表示过去 2s 10s 40s 的平均流量

Synopsis: iftop -h | [-npbBP] [-i interface] [-f filter code] [-N net/mask]

-h display this message
-n don’t do hostname lookups
-N don’t convert port numbers to services
-p run in promiscuous mode (show traffic between other
hosts on the same network segment)
-b don’t display a bar graph of traffic
-B Display bandwidth in bytes
-i interface listen on named interface
-f filter code use filter code to select packets to count
(default: none, but only IP packets are counted)
-F net/mask show traffic flows in/out of network
-P show ports as well as hosts
-m limit sets the upper limit for the bandwidth scale
-c config file specifies an alternative configuration file

分享到:人人网开心网腾讯微博新浪微博豆瓣分享腾讯空间百度搜藏腾讯书签

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word