Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 1998 08:52:20 -0500 (CDT)
From:      Mike Jenkins <mjenkins@carp.gbr.epa.gov>
To:        matt@portal.net.au
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: PPPD stats clearing
Message-ID:  <199810221352.IAA00367@carp.gbr.epa.gov>
In-Reply-To: <199810220231.MAA00858@portal.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
> Just wondering if someone has an idea on how to clear the interface
> stats for people connecting via pppd.
> At the moment I have a program which when the user logs off, records
> the number of bytes that they used.  The problem I'm finding is
> that the interface doesn't seem to have it's stats cleared
> when the next user logs onto that port.
> Any ideas on how I could clear inte interface?

Take a before snapshot in /etc/ppp/ip-up and an after snapshot in
/etc/ppp/ip-down, and then subtract the two.

Seems like there should be a -c option to netstat for clearing counters.

Mike

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



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