Bandwidth monitoring on linux server with iftop command

In some situations, BW monitoring is very needful for your server having high BW usage due to DNS spoofing or something like on it. IFTOP is a BW monitoring tool for your Unix/Linux server. We already covered the topic iftop installation on Unix/Linux server.

Important ‘iftop’ command switches
The below mentioned switches are very usefull with iftop command for monitoring your server for BW.

   -h                  display this message
   -n                  don't do hostname lookups
   -N                  don't convert port numbers to services
   -p                  run in promiscuous mode (show traffic between other
                       hosts on the same network segment)
   -b                  don't display a bar graph of traffic
   -B                  Display bandwidth in bytes
   -i interface        listen on named interface
   -f filter code      use filter code to select packets to count
                       (default: none, but only IP packets are counted)
   -F net/mask         show traffic flows in/out of network
   -P                  show ports as well as hosts
   -m limit            sets the upper limit for the bandwidth scale
   -c config file      specifies an alternative configuration file

Bandwidth monitoring using iftop?
We can ose the switch ‘i’ to monitor BW for each interface. Simply the ‘iftop’ command shows the current interface BW usages(Dynamic output).

Example;
[[email protected] ] iftop
1

How to find interfaces on server?
You can find out in different ways by using the following commands.

[[email protected] ] ip a
[[email protected] ] ifconfig

That’s it 🙂

Similar topics:
iftop installation on Unix/Linux server

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

3 Responses

  1. December 23, 2013

    […] Related topics: Bandwidth monitoring on linux server with iftop command […]

  2. January 24, 2014

    […] topics: The tail command iftop command find command switches with example Top command PS command usages with […]

  3. January 24, 2014

    […] Links: The head command iftop command find command switches with example Top command PS command usages with […]

Leave a Reply

Your email address will not be published. Required fields are marked *