Operating System - Linux
1828346 Members
3167 Online
109976 Solutions
New Discussion

Re: reg: network utilization

 
p.balamurugan
Advisor

reg: network utilization

We are using redhat linux enterprise 2.1 and kernal is 2.4. In this how we can check the network utilization and capture the output for 3 mins ones.
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: reg: network utilization

rather lame perhaps....but will work!

let i=0
until [ $i -gt 9 ]
do
echo "------------------------------------- $(date)"
let i=$i+1
netstat -i
cat /proc/net/dev
sleep 18
done
It works for me (tm)
Vipulinux
Respected Contributor

Re: reg: network utilization

Hi

You can look at using tcpdump between your interface.

tcpdump -i eth0 host $localhost host $remote_host

Cheers
Ivan Ferreira
Honored Contributor

Re: reg: network utilization

Maybe is a good idea to enable snmp and configure mrtg to graph the network utilization. It's a very simple process.

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch22_:_Monitoring_Server_Performance
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Bill McNAMARA_1
Honored Contributor

Re: reg: network utilization

i used ethereal today for this.
you can capture on all or specific interfaces and get the analysis/stats generated in graphic.

There is a cli version too if you don't use gnome... tethereal.

It works for me (tm)