Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 23:33:15 -0400 (EDT)
From:      Jason Hunt <jhunt@lynden.on.ca>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Measuring throughput of network
Message-ID:  <20020529232847.M95828-100000@lethargic.dyndns.org>
In-Reply-To: <20020530024829.GD78068@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 May 2002, Dan Nelson wrote:

> In the last episode (May 29), Stephen Montgomery-Smith said:
> > Is there a way to measure how many bytes go through a network card?  So
> > I type something like
> > command rl0
> > and it replies:
> > out 134513 bytes
> > in 45232 bytes
> > or maybe there is a sysctl variable that does this.
>
> netstat -ib.  Note that all the numbers wrap at 4gb, so if you're
> planning on graphing the values, you'll need to make sure your poll
> period is less than 1/2 your wrap period.
>

Another possibility, which was mentioned last week by Mike Tancsa on the
freebsd-net mailing list, is to use snmpd
(http://net-snmp.sourceforge.net/) and MRTG (http://www.mrtg.org/).  Both
of these are available in the ports tree.  If you already use MRTG for
monitoring things like routers/switches, then this is a good choice.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529232847.M95828-100000>