介绍

nload是个很好用的一个工具,功能也很强.只是相对单一,只能查看总的流量,不能像iptraf那样,可针对IP,协议等。可以实时地监控网卡的流量,分Incoming,Outgoing两部分,也就是流入与流出的流量。同时统计当前,平均,最小,最大,总流量的值,使人看了一目了然。
nload网络流量实时监控工具

官网:http://www.roland-riegel.de/nload/

安装部署

编译安装

[root@500g ~]# wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
[root@500g ~]# tar -zxvf http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
[root@500g ~]# cd nload-0.7.4
[root@500g nload-0.7.4 ]# ./configure --prefix=/usr/local/nload
[root@500g nload-0.7.4 ]# make && make install 

yum安装

[root@500g ~]# yum install -y gcc gcc-c++ ncurses-devel
[root@500g ~]# yum install nload

使用

命令语法

[root@500g ~]# nload -h

nload version 0.7.4
Copyright (C) 2001 - 2012 by Roland Riegel <feedback@roland-riegel.de>
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 (http://www.gnu.org/copyleft/gpl.html).

Command line syntax:
nload [options] [devices]
nload --help|-h

Options:
-a period       Sets the length in seconds of the time window for average
                calculation. //全部数据的刷新时间周期,单位是秒,默认是300.
                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. //进入网卡的流量图的显示比例最大值设置,默认10240 kBit/s.
-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. //出去网卡的流量图的显示比例最大值设置,默认10240 kBit/s.
                Default is 10240.
-t interval     Determines the refresh interval of the display in milliseconds.
                Default is 500. //显示数据的刷新时间间隔,单位是毫秒,默认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. //设置右边Curr、Avg、Min、Max的数据单位,默认是自动变的.注意大小写单位不同.
-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.

常用命令

# 语法 : nload   网卡名称  -u  以什么单位显示
nload eth0 -u m
  • 默认上边Incoming是进入网卡的流量;
  • 默认下边Outgoing是网卡出去的流量;
  • 默认右边(Curr当前流量)、(Avg平均流量)、(Min最小流量)、(Max最大流量)、(Ttl流量统计)

nload网络流量实时监控工具

文章目录