How to use bmon to monitor network bandwidth on Linux – Guide

Bmon is a network monitoring and debugging tool for Unix-like systems. It collects network-related statistics and displays them visually in a user-friendly format. It is reliable and effective, and can read input with a variety of input modules. It presents output in a variety of output modes, including an interactive curses user interface as well as programmable text output for scripting purposes. Almost all Linux distributions have the bmon package in their default repositories, so it can be easily installed using the default package manager. However, the available version may be a little older. ..

We discussed running an internet speed test from the Linux command line. This is great for testing your internet speed. But what if you want to monitor the bandwidth usage of an internal connection? Enter bmon, a lightweight, real-time command-line bandwidth monitoring tool. The bmon utility is a tool that provides information about network interface usage on the command line, but in a very familiar way. Bmon stands for “butterfly” and it’s a powerful CLI-based network bandwidth monitoring and debugging tool for Unix/Linux systems to collect network related statistics and present them visually on the command line in a user-friendly way. It logs traffic usage on all network interfaces in the system. It is an effective and fast real-time network bandwidth monitor and rate estimator.

bmon installation on linux:

The Ubuntu distribution has a package called “bmon” that can be easily installed. The available version may be a little bit older, but it is still a good option.

On RHEL/CentOS/Fedora:

On Fedora 22+:

On Debian/Ubuntu/Mint:

$ sudo bmon This will start the Bluetooth daemon and display a list of connected devices.

On the openSUSE system:

On Arch Linux based systems:

For Ubuntu: sudo apt-get install build-essential cmake libboost-all-dev libssl-dev libevent-dev libevolution-data-server1.0.4.tar.gz cd bmon_4.0 mkdir build cd build cmake .. make sudo make install For Fedora: sudo dnf install gcc cmake Boost_All_Dev openssl ssl development libraries evolution data server 1.0.4 tarball cd bmon_4.0 mkdir build cd build cmake .. make sudo make install ..

For Debian based systems:

$ cd bmon $ git checkout master

To install the build-essential, make, libconfuse-dev, libnl-3-dev, libnl-route-3-dev, and ncurses libraries: $ sudo apt-get install build-essential make libconfuse-dev libnl-3-dev libnl-route-3-dev libncurses5 pkgconfig dh-autoreconf ..

This will install the sudo package on your system.

For CentOS 6, RHEL based systems:

$ cd bmon $ git checkout master

Installing the necessary development tools will allow you to compile and install programs from source. ..

This will install the sudo package on your system.

For OSX installation:

Full help is provided via the following command:

Bandwidth Monitor (BMON): Introduction

Running bmon to capture live bandwidth usage

bmon -f This will start the bmon tool and display all the active processes on your system.

Set the specific interface to display:

The -p flag can be used to set the policy defining which network interfaces to display as below. By default, all network interfaces are displayed. The -p flag can be used to set the policy defining which network interfaces to display as below. By default, all network interfaces are displayed. ..

grep -b ‘^(?:.*)$’ /proc/sys/kernel/vm/drop_caches This will print out the number of bytes and bits per second that the kernel is dropping caches.

java -jar myApp.jar -r 1000 To set the interval per second, use the -r flag as below: java -jar myApp.jar -r 1000 ..

To use bmon Input Modules:

Netlink collects kernel traffic control and interface statistics to help improve system performance.

Netlink is the default input module for the Linux kernel.

Netlink is an input module that allows for the exchange of information between kernel modules and user space programs. ..

The proc file is used to read interface statistics from the /proc/net/dev file. ..

The legacy interface is a set of tools and features that are still used by many people today. It is considered a valuable resource because it is reliable and easy to use. ..

proc = Netlink::Proc;

Dummy is a programmable input module that is used for debugging and testing purposes. ..

Dummy is a module that takes input from the user. ..

Null is a keyword that is used to disable data collection. This keyword can be used in different ways, depending on the context. For example, it can be used to disable data collection by a company or organization, or by a individual. Null can also be used as an adjective to describe a situation in which data collection is not allowed.

help This will give you a list of all the available commands for that module.

Final note

How to use bmon to monitor network bandwidth on Linux In this guide, we will be discussing how to use bmon to monitor network bandwidth on Linux. Bmon is a daemon that helps you track the network traffic and performance of your system. You can use bmon to view the packets that are being sent and received on your system, as well as the time it took for each packet to reach its destination. Additionally, you can use bmon to measure the amount of data that is being transferred over your network connection. To start using bmon, you first need to install it on your system. You can find a list of installation instructions for different distributions here. Once installed, you can start it by running this command: bmonctl -a