Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 21:48:29 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Measuring throughput of network
Message-ID:  <20020530024829.GD78068@dan.emsphone.com>
In-Reply-To: <3CF5921C.34EE1888@math.missouri.edu>
References:  <3CF5921C.34EE1888@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
	Dan Nelson
	dnelson@allantgroup.com

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?20020530024829.GD78068>