From owner-freebsd-questions Wed May 29 20:33:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from notus.primus.ca (mail.tor.primus.ca [216.254.136.21]) by hub.freebsd.org (Postfix) with ESMTP id 9F99937B407 for ; Wed, 29 May 2002 20:33:32 -0700 (PDT) Received: from dialin-142-227.hamilton.primus.ca ([209.90.142.227]) by notus.primus.ca with esmtp (Exim 3.33 #16) id 17DGgv-0003I1-0A for freebsd-questions@FreeBSD.ORG; Wed, 29 May 2002 23:33:34 -0400 Date: Wed, 29 May 2002 23:33:15 -0400 (EDT) From: Jason Hunt X-X-Sender: leth@lethargic.dyndns.org To: freebsd-questions@FreeBSD.ORG Subject: Re: Measuring throughput of network In-Reply-To: <20020530024829.GD78068@dan.emsphone.com> Message-ID: <20020529232847.M95828-100000@lethargic.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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