Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 1998 00:24:18 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        "Jason McKay" <jasonm@webace.com.au>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Measuring Consumption 
Message-ID:  <199806092324.AAA04152@awfulhak.org>
In-Reply-To: Your message of "Tue, 09 Jun 1998 12:45:18 %2B0800." <000201bd9361$67c7cca0$70a019cb@jason.webace.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
> 
> I need a means of measuring how much data (in megabytes) my dial-in ppp
> clients are using.  I am running FreeBSD 2.2.6-RELEASE, with pppd and
> mgetty.
> 
> Any suggestions?

Use ppp and `enable throughput'.  This is the default for the latest 
ppp (http://www.Awfulhak.org/ppp/).  If you've got ``phase'' logging, 
you'll see something like:

Jun  9 23:21:20 gate ppp[10443]: tun0: Phase: USR: Connect time: 118 secs: 159550 octets in, 13293 octets out

in /var/log/ppp.log at the end of each session.  IPCP logging will do 
this at the IP level (useful if you're enabling MP support).

> Thanks,
> Jason.

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



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?199806092324.AAA04152>