Open In App

How to Install and Use bmon Real Time Bandwidth Monitor in Linux?

Bmon Stands is an open source tool for the bandwidth monitoring tool. bmon is a powerful CLI based network bandwidth monitoring and debugging tool for Unix / Linux systems to capture networking related statistics & present them visually on the command line in a human-friendly way. It captures the traffic usage over all the network interfaces on the system. It is an effective and fast real-time network bandwidth monitor and rate estimator.

It features various output methods such as :



bmon installation in Linux:

It can be easily installed from the default package manager as almost all Linux distributions has bmon package in the default repositories but the available version might be a little older.

On RHEL/CentOS/Fedora:



$ sudo yum install bmon

On Fedora 22+:

$ sudo dnf install bmon

On Debian/Ubuntu/Mint:

$ sudo apt-get install bmon

On openSUSE system:

$ sudo zypper in bmon

On Arch Linux based systems:

$ pacman -S bmon

For the most recent version of bmon (i.e version 4.0), you have to build it from its source using the following commands for different Linux distros:

For Debian based systems :

$ git clone https://github.com/tgraf/bmon.git
$ cd bmon
$ sudo apt-get install build-essential make libconfuse-dev libnl-3-dev libnl-route-3-dev libncurses-dev pkg-config dh-autoreconf
$ sudo ./autogen.sh
$ sudo ./configure
$ sudo make
$ sudo make install
$ bmon

For CentOS 6, RHEL based systems:

$ git clone https://github.com/tgraf/bmon.git
$ cd bmon
$ sudo yum install make libconfuse-devel libnl3-devel libnl-route3-devel ncurses-devel
$ sudo ./autogen.sh
$ sudo./configure
$ sudo make
$ sudo make install
$ bmon

For OSX installation :

$ brew install bmon

Full help is provided through the following command :

$ bmon --help

Bandwidth Monitor ( BMON ) : Getting started

Running bmon to capture live bandwidth usage 

After completing the bmon installation successfully via the help of above commands for different distros, just type the following command to run the bmon tool :

$ bmon

To view the quick reference of bmon as below press [Shift + ?] :

bmon shows only interface information by default. To load the graphics, enter g, i, or d (depending on the distro) for detailed graphical visualization of information.

Set the specific interface to display :

To monitor the enp1s0 network interface, we will use the flag -p to set policy defining which network interfaces to display as below :

$ bmon -p enp1s0

To see the result in bit per second instead of bytes per second, use the -b flag like so :

$ bmon -bp enp1s0

To define the intervals per second use -r flag as below :

$ bmon -r 2 -p enp1s0

To use bmon Input Modules :

$ bmon -i netlink 

$ bmon -i proc

$ bmon -i dummy

$ bmon -i null
$ bmon -i dummy:help

To Use bmon Output Modules :

$ bmon -o curses

$ bmon -o ascii 

$ bmon -o format

$ bmon -o curses:ngraph=2

$ bmon -o ascii:help

$ bmon --help 

or

$ man bmon 

Article Tags :