博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux之网络流量监控
阅读量:4111 次
发布时间:2019-05-25

本文共 1797 字,大约阅读时间需要 5 分钟。

ifstat是一个比较简单的查看网络流量的工具

常用的参数如下:

       -l  Enables monitoring of loopback interfaces for which statistics are available. By default, ifstat monitors all non-loopback interfaces that are up.

 

       -a  Enables monitoring of all interfaces found for which statistics are available.

 

       -z  Hides interface which counters are null, eg interfaces that are up but not used.

 

       -i  Specifies the list of interfaces to monitor, separated by commas (if an interface name has a comma, it can be escaped with '\'). Multiple instances

           of the options are added together.

 

       -s  Equivalent to -d snmp:[comm@][#]host[/nn]] to poll a remote host through SNMP. See below for details.

 

       -h  Displays a short help message.

 

       -n  Turns off displaying the header periodically.

 

       -t  Adds a timestamp at the beginning of each line.

 

       -T  Reports total bandwith for all monitored interfaces.

 

       -A  Disables use of interface indexes: by default, when polling mechanism is index based (snmp, ifmib), ifstat remembers indexes of monitored inter-

           faces to poll only them. However, if interfaces indexes change often (new interfaces added, etc), you might loose some stats, hence this flag. Note

           that if you ask ifstat to monitor a non existent interface, it will poll all interfaces until it finds the requested one (regardless of this flag)

           so you can poll for an interface that goes up and down.

 

       -w  Uses fixed width columns, instead of enlarging them if needed for interfaces names to fit.

 

       -W  Wrap lines that are larger than the terminal width (implies -w). Wrapped lines are prefixed with a cycling letter to ease reading.

 

       -S  Keep stats updated on the same line if possible (no scrolling nor wrapping).

 

       -b  Reports bandwith in kbits/sec instead of kbytes/sec.

 

       -q  Quiet mode, warnings are not printed.

 

       -v  Displays version and the compiled-in drivers.

常用:

ifstat -TS

 

转载地址:http://emqsi.baihongyu.com/

你可能感兴趣的文章
hdu 2602 Bone Collector 0-1背包;
查看>>
CF #318 (Div. 2) C. Bear and Poker 唯一分解定理
查看>>
CF#318 (Div. 2)B. Bear and Three Musketeers 暴力 复杂度分析
查看>>
hdu 1421
查看>>
poj 3041 Asteroids 二分匹配 匈牙利算法 模板题
查看>>
poj 3281 Dining 最大流dinic 模板题
查看>>
poj 3469 Dual Core CPU 最大流建图思想 dinic 弧优化很重要
查看>>
poj 2135 Farm Tour 最小费用流 spfa优化 16_05_14
查看>>
poj 3686 The Windy\'s 最小费用流 建图 16_05_14
查看>>
poj 3168 Barn Expansion 平面扫描+线段相交问题
查看>>
poj 2482 挑战 284
查看>>
poj 2686 Traveling by Stagecoach 状态压缩
查看>>
hdu 3790 最短路模板
查看>>
poj 2441
查看>>
poj 3154 Corn Fields
查看>>
poj 2836 Rectangular Covering
查看>>
Codeforces Round #345 (Div. 2) B 思维题
查看>>
UVA 11796 Dog Distance 向量+相对运动
查看>>
CF 554A 字符串计数问题
查看>>
UVA 12304 计算几何+圆模板
查看>>