Re: bandwidth tool
On Sun, 06 Jul 2008 20:20:13 +0530, Raj Kiran Grandhi wrote:
>> Is there a tool to measure network traffic? I am using ifstat but its
>> reporting wrong statistics. I am trying to get something similar to
>> eth0 , 16Mb/sec
>> eth1, 10Mb/sec
>> I need something simple :-)
> I needed something like that, and I finally ended up writing a small
> python script (see attachment) that reads from
> /sys/class/net/<iface>/statistics and computes the rates.
There is a Debian package doing exactly that, called,
ethstats - script that quickly measures network device throughput.
It reports Mb/s In, Mb/s Out and even p/s In & p/s Out. You can filter the
output or change the Perl code directly.
Network Bandwidth Monitoring