Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jul 1997 14:08:39 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        Robert Shady <rls@mail.id.net>
Cc:        support@netsonic.com, freebsd-isp@FreeBSD.ORG
Subject:   Re: per-user IP accounting
Message-ID:  <Pine.BSF.3.91.970709140702.869v-100000@panda.hilink.com.au>
In-Reply-To: <199707090334.XAA24690@server.id.net>

next in thread | previous in thread | raw e-mail | index | archive | help



> > > If I run netstat -abin, I get a list of all ip's but they are all the same,
> > > what needs to happen to breask that down for each particular ip?
> > 
> > netstat -aibn shows you the stats for the *interface*, with a separate 
> > line for each IP address of the interface.  If you have multiple IPs per 
> > interface, you need to use ipfw or something other than netstat.
> 
> Not to mention, the bytes wrap at a certain point too... We've pushed

True, and if you use netstat, you have to keep track of the previous 
value and adjust.  If you use ipfw, you can simply say 'ipfw -z zero' 
immediately after you read the values each hour/day/week.

Danny



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970709140702.869v-100000>