2012-01-09

Scratch of the day - Real time network statistic, like top

There's a sudden surge of network traffic in one of the servers and I need to find out what causes it. Roaming around ports show up this :

/usr/ports/net-mgmt/iftop

iftop does for network usage what top(1) does for CPU usage ...
(via)

To start monitoring :

iftop -i bce1

Some keyboard shortcuts (case sensitive) :

t => toggle traffic display mode
s => source IP resolution
p => port resolution
S => display source port
D => display destination port
d => destination IP resolution
P => pause the display
h => keyboard shortcut help

Namaste !!!

1 comment:

Anonymous said...

Unfortunately net-mgmt/iftop is GPL, so it's a no-no for copyfree puritans like myself...

The good news is that there are plenty of freer alternatives, like net/trafshow and net/btop (although I can't say how they compare on feature-by-feature basis).