检测网卡流量:nload
nload默认的是eth0网卡,如果你想监测eth1网卡的流量
#nload eth1
nload 默认分为上下两块:上半部分是:Incoming也就是进入网卡的流量,下半部分是:Outgoing,也就是从这块网卡出去的流量,每 部分都有当前流量(Curr),平均流量(Avg),最小流量(Min),最大流量(Max),总和流量(Ttl)这几个部分,看起来还是蛮直观的。
另外,你也可以自己定义流量数值显示的单位
- -bash-3.2$ nload --help
- nload version 0.7.3
- Copyright (C) 2001 - 2011 by Roland Riegel
- nload comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
- welcome to redistribute it under certain conditions. For more details see the
- GNU General Public License Version 2 ().
- Command line syntax:
- nload [options] [devices]
- nload --help|-h
- Options:
- -a period Sets the length in seconds of the time window for average
- calculation.
- Default is 300.
- -i max_scaling Specifies the 100% mark in kBit/s of the graph indicating the
- incoming bandwidth usage. Ignored if max_scaling is 0 or the
- switch -m is given.
- Default is 10240.
- -m Show multiple devices at a time; no traffic graphs.
- -o max_scaling Same as -i but for the graph indicating the outgoing bandwidth
- usage.
- Default is 10240.
- -t interval Determines the refresh interval of the display in milliseconds.
- Default is 500.
- -u h|b|k|m|g Sets the type of unit used for the display of traffic numbers.
- H|B|K|M|G h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.
- H: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.
- Default is h.
- -U h|b|k|m|g Same as -u, but for a total amount of data (without "/s").
- H|B|K|M|G Default is H.
- devices Network devices to use.
- Default is to use all auto-detected devices.
- --help
- -h Print this help.
- example: nload -t 200 -i 1024 -o 128 -U M
- The options above can also be changed at run time by pressing the 'F2' key.
- -bash-3.2$
# /usr/local/nload/bin/nload --help
-a:这个好像是全部数据的刷新时间周期,单位是秒,默认是300.
-i:进入网卡的流量图的显示比例最大值设置,默认10240 kBit/s.
-m:不显示流量图,只显示统计数据。
-o:出去网卡的流量图的显示比例最大值设置,默认10240 kBit/s.
-t:显示数据的刷新时间间隔,单位是毫秒,默认500。
-u:设置右边Curr、Avg、Min、Max的数据单位,默认是自动变的.注意大小写单位不同!
h|b|k|m|g h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.
H|B|K|M|G H: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.
-U:设置右边Ttl的数据单位,默认是自动变的.注意大小写单位不同(与-u相同)!
Devices:自定义监控的网卡,默认是全部监控的,使用左右键切换。
检测:
- Device eth0 [ip] (1/4):
- =================================================================================================================
- Incoming:
- Curr: 893.63 kBit/s
- Avg: 907.08 kBit/s
- Min: 638.64 kBit/s
- .. Max: 1.06 MBit/s
- ######|||######## Ttl: 710.08 MByte
- Outgoing:
- ### ##| ##
- ### ### ##
- #|#### ###| ##|
- ###### .########
- ######. #########
- ####### #########
- #######.#########
- #################
- #################
- ################# Curr: 8.36 MBit/s
- ################# Avg: 9.29 MBit/s
- ################# Min: 5.32 MBit/s
- ################# Max: 12.89 MBit/s
- ################# Ttl: 4.01 GByte
阅读(924) | 评论(0) | 转发(0) |