Subject: Re: Measuring network input/output rates?
To: Mike Cheponis <mac@Wireless.Com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 09/27/2003 14:46:04
On Sat, 27 Sep 2003, Mike Cheponis wrote:
> I want to measure the number of bits/second going into and out of an
> ethernet interface card for a server of mine that I have located at an ISP's
> hosting facility.
I have been using this from cron every five minutes or every hour:
netstat -ib | \
awk '/^ne0/ {if ($3 == "<Link>") print systime()"\tne0\t"$5"\t"$6;}' \
>> $LOGFILE
(Replace ne0 with your interface.)
And this script:
http://www.reedmedia.net/software/analyze_interface_bytes/analyze_interface_bytes.20011115
It would be nice if I could verify that the stats are accurate. Feedback
would be appreciated.
Some examples at
http://www.reedmedia.net/software/analyze_interface_bytes/
I have been doing this for a couple years.
Jeremy C. Reed
http://bsd.reedmedia.net/