Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 1995 03:29:07 -0700
From:      David Greenman <davidg@Root.COM>
To:        "Jordan K. Hubbard" <jkh@time.cdrom.com>
Cc:        Gary Palmer <gary@palmer.demon.co.uk>, Nathan Stratton <nathan@netrail.net>, questions@freebsd.org, current@freebsd.org
Subject:   Re: IP accounting 
Message-ID:  <199509221029.DAA00162@corbin.Root.COM>
In-Reply-To: Your message of "Fri, 22 Sep 95 03:11:50 PDT." <21681.811764710@time.cdrom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>> As for kilobytes/interface, I dunno if that's possible without using
>> some sort of packet sniffer.
>
>Couldn't you just use the output from `netstat -ib' in a slow loop to
>essentially approximate that functionality?  I don't know what kind of
>granularity is required, but David was able to meter wcarchive's
>bytes/sec traffic fairly well by doing that repeatedly.

   Actually, I use 'netstat -I de0 -b -w 60', and then calculate the per-second
average from each 60 second sample.

-DG



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