As a tool to quickly view network activities, Bwm-NG is indeed a good choice. The bandwidth we usually call is actually the data transmission rate, such as memory bandwidth, bus bandwidth, network bandwidth, etc., all in bytes. Sometimes it is very common to know the bandwidth used by a specific host in the network or the traffic processed by a gateway.
As a tool to quickly view network activities, Bwm-NG is indeed a good choice.
The bandwidth we usually call is actually the data transmission rate, such as memory bandwidth, bus bandwidth, network bandwidth, etc., all in bytes/second. Sometimes it is very useful to know exactly the bandwidth used by a specific host in the network or the traffic processed by a gateway. As a tool to quickly view network activities, Bwm-NG is indeed a good choice.
BandwIdTh Monitor NG (Bwm-NG for short) is a simple network and disk bandwidth monitoring program that can run on Linux, BSD, Solaris, and other platforms. It supports a variety of detection components for collecting various statistical data, including/proc/net/dev, netStat, GetifaDdR, sysctl, kstat,/proc/diskstats/proc/partitions, IOKit, devstat, libstatgrab, etc. Interfaces or devices can be listed in black/white mode, so that users can only view the data they are interested in. Bwm-NG supports multiple output options, such as shape, plain text, CVS, and HTML.
Bwm-NG compilation and configuration are quite simple. I have compiled the source program on OpenBSD and Linux platforms respectively. In this process, no additional library files need to be downloaded or any modifications are made to the Code. Next, let's take a look at how to compile and run Bwm-NG on an OpenBSD gateway.
First, from http://www.gropp.org /? Id = projects &SuB = bwm-ng download the latest Bwm-NG source code version. When I write this article, its latest version is Bwm-NG-0.6.
Next, go to the generated directory to run the codeExtract:
The following is a reference clip:
#Cd~ /Build/
# Tar-xzf ../bwm-ng-0.6.tar.gz
# Cd bwm-ng-0.6/ |
For the next step, check the available options:
The following is a reference clip:
#./Configure-help |
In general, you will find that all the other default configurations except the man page location are suitable. You can set man:
The following is a reference clip:
#./Configure-mandir =/usr/local/man/
Build the binaries:
# Make |
However, before installation, we need to test whether Bwm-NG can actually work. To do this, run the following command in the src directory:
The following is a reference clip:
#./Src/bwm-ng-o plain (use cTrL + c Exit) |
If it works properly, continue to install:
The following is a reference clip:
# Make install
#Cp/Bwm-ng.conf-ExAmple/etc/bwm-ng.conf |
If you want to further configure Bwm-NG, use the man page as a reference for Allowed option values to further edit the configuration file. However, you will find that this is unnecessary because Bwm-NG displays almost all the content you need by default.
Now that the program has been installed, let's start it:
# Bwm-ng
If you are using the standard "curses" output option, you may need to use "a", "t", "u", etc.CommandKey.
A-switch between All or selected interfaces (bwm-ng.conf ).
"T"-switching between rate (rate), max (maximum value), sum (total: throughput after starting the Program), and my favorite, by default, the switchover is performed on an average of 30 seconds.
"U"-displays bytes (bytes), bits (bits), packets (packets), and errors (errors ).
Although Bwm-NG is a very simple tool, it has a great use. I usually use it regularly to check the throughput of the main Internet gateway or spot check the bandwidth used by nagios for host/network checks. However, for long-term monitoring and trend analysis, we may need more in-depth analysis software, such as Ntop and MRTG.