Raspberry Pi

Monitor Network Bandwidth on Raspberry Pi Using cbm

Color Bandwidth Meter, commonly called cbm is a command-line tool used to monitor the system’s network performance. It displays the network interfaces on the terminal, followed by the receive, transmit, and total bandwidth utilized by each network interface. You can use this tool as a network monitor to analyze the performance of your network.

Follow this article to install cbm on your Raspberry Pi system.

Monitor Network Bandwidth on Raspberry Pi Using cbm

You can install cbm on Raspberry Pi through the following steps:

Step 1: Update Packages

In the initial step, make sure the installed Raspberry Pi packages are updated, which can be confirmed from the following command:

$ sudo apt update && sudo apt upgrade

Step 2: Install cbm

With packages successfully updated, it’s now time to install cbm on Raspberry Pi using the below-given command:

$ sudo apt install cbm

Step 3: Check cbm Version

After the installation to confirm cbm is installed on Raspberry Pi successfully, use.

$ cbm --version

Step 4: Run cbm on Raspberry Pi

Now, run the cbm command on Raspberry Pi to view the network interface and bandwidth information across each interface.

$ cbm

Go to any network interface, which is currently used by the Raspberry Pi system. In my case, it’s wlan0:

On the interface, you can use the “+” and “” key to update the interval, or you can use the “b” key to get the bandwidth information in Bits or Bytes.

Remove cbm from Raspberry Pi

The Raspberry Pi user can remove the cbm utility from the system through the following command:

$ sudo apt remove cbm -y

Conclusion

The cbm is a command-line utility for finding the network bandwidth information on the Raspberry Pi system. The utility can be installed through the official Raspberry Pi repository and can be opened through the “cbm” command in the terminal to view the bandwidth information of network interfaces. You can remove this utility anytime from the system via “apt remove” command.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.