Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display Network adapter performance

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

Is there a way to display a bytes/sec adapter performance every 2 seconds ?

Long live king Moshiach !
 
Depends on what you need, there are plenty of system monitors you could look into, like iPulse or sysstat.
 
Hi,

I'm looking for some OSX (Tiger) built in tool/command,that will be run from a Perl script and get the MB/Sec number using this toll ,every 2 seconds.
On AIX I did it using "iostat" or "monitor" commands ...

Long live king Moshiach !
 
Why not use netstat? Yes, you'd have to convert the packet count into MB/s, but that's a simple subtraction and division operation...

#!/bin/bash
while true
do
netstat -I en0 | tail -1 | cut -c 60-68
sleep 2
done

 
Thanks,

I need something built in into the TIGER OSX,not something I have to add.
This is a Perl script that will run on multiple OSX machines,on which I have not much controll,so it has to use what OSX provides...

Long live king Moshiach !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top