From owner-freebsd-isp Thu Oct 22 06:52:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA03480 for freebsd-isp-outgoing; Thu, 22 Oct 1998 06:52:56 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from carp.gbr.epa.gov (carp.gbr.epa.gov [204.46.159.110]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA03475 for ; Thu, 22 Oct 1998 06:52:53 -0700 (PDT) (envelope-from mjenkins@carp.gbr.epa.gov) Received: (from mjenkins@localhost) by carp.gbr.epa.gov (8.8.8/8.8.8) id IAA00367; Thu, 22 Oct 1998 08:52:20 -0500 (CDT) (envelope-from mjenkins) Date: Thu, 22 Oct 1998 08:52:20 -0500 (CDT) From: Mike Jenkins Message-Id: <199810221352.IAA00367@carp.gbr.epa.gov> To: matt@portal.net.au Subject: Re: PPPD stats clearing Cc: freebsd-isp@FreeBSD.ORG In-Reply-To: <199810220231.MAA00858@portal.net.au> Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 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