iftop安装笔记

磊哥推荐了我一款流量带宽推荐的软件,iftop,我用了,还是不错的。下面是安装过程。

yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel

wget http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre2.tar.gz
tar -zxvf iftop-1.0pre2.tar.gz
cd iftop-1.0pre2
./configure
make && make install

第一行表示流出的流量

第二行表示下载流量,最右边的3行数据表示:过去 2s 10s 40s 的平均流量,

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

参数说明

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Synopsis : iftop - h | [ - npblNBP ] [ - i interface ] [ - f filter code ]
                                [ - F net / mask ] [ - G net6 / mask6 ]

    - 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 IPv4 network
   -G net6/mask6       show traffic flows in/out of IPv6 network
   -l                  display and count link-local IPv6 traffic (default: off)
   -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
我来评几句
登录后评论

已发表评论数()

相关站点

热门文章