*BSD News Article 81271


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!newsfeed.internetmci.com!news.webspan.net!usenet
From: "Jordan K. Hubbard" <jkh@FreeBSD.org>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: IP accounting only (2.1.5)
Date: Mon, 21 Oct 1996 23:59:44 -0700
Organization: Walnut Creek CDROM
Lines: 17
Message-ID: <326C70E0.167EB0E7@FreeBSD.org>
References: <3269365A.32D5@sirene.woman.de>
NNTP-Posting-Host: time.cdrom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01b1 (X11; I; FreeBSD 2.2-CURRENT i386)
To: "Nora E. Etukudo" <nora@sirene.woman.de>

Nora E. Etukudo wrote:
> 
> Hi.
> 
> Want to count the (mega) bytes for one ppp device in both directions.
> Have I to fidle with the whole ipfw, ipfirewalling or is there a "cheap"
> way ? I want to count only nothin'else (system is 2.1.5).

How often do you need to measure?  Something like this:

netstat -b -I sl0 -d 10

Will give you a running 10-second average.  Divide each set of numbers
by 10 and that's your Bytes/sec value. :-)
-- 
- Jordan Hubbard
  President, FreeBSD Project