Is there a way to monitor the traffic (e.g., get a live view of the utilization) over a particular network interface, say eth0?

The catch here is that the set of tools on the box is fixed, and is pretty much a stock RHEL deployment, so add-on tools can't be used.

Looking for something basic and usually present like iostat here.

link|improve this question

50% accept rate
1  
Have a look at stackoverflow.com/questions/596590/…. Some of the suggestions on there should be useful. – Andy Smith Dec 2 '11 at 1:15
D'oh, search fail (and I tried). To be fair, I think it's a serverfault question, not a SO one :) – BeeOnRope Dec 2 '11 at 22:41
feedback

5 Answers

The data you want to see shows up in good old ifconfig.

watch ifconfig eth0

or to make things stand out better:

watch -n 1 -d ifconfig eth0
link|improve this answer
feedback

I use iftop command. It shows statistics in realtime.

iftop -i eth0

Checkout some sceenshots here:

http://www.thegeekstuff.com/2008/12/iftop-guide-display-network-interface-bandwidth-usage-on-linux/

link|improve this answer
Looks great, unfortunately I am not able to install any new tools on these locked down boxes. – BeeOnRope Dec 15 '11 at 3:19
feedback

Take a look at NTop. It provides a lot of detailed data.

link|improve this answer
feedback

There are a lot of utilities:

  1. Nethogs
  2. iptraf
  3. Iptables can be a good solution to but if you are using a firewall set up will be a bit hard to relocate correctly the rules
link|improve this answer
feedback

You can also use iptables to do such think:

iptables -A INPUT -p tcp --dport $port -i eth0

and

iptables -A OUTPUT -p tcp --sport $port -i eth0

Then iptables -L -n -v will print you how many packets have been going through the interface, iptables -Z to zero this count

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.