Subject: Re: getting the bytes that pass an network interface?
To: None <netbsd-help@netbsd.org>
From: David Wetzel <dave@turbocat.de>
List: netbsd-help
Date: 05/05/1999 12:54:00
> From: "Jake J Sadowski" <austran@earthlink.net>
> Try netstat -i, it will show you all interfaces. Check the netstat man page
> for all options.
dave@alice>netstat -w 5
input (de0) output input (Total) output
packets errs packets errs colls packets errs packets errs colls
1337043 3 1331162 0 21695 1456892 3 1456700 0 21695
12 0 0 0 0 12 0 0 0 0
If I understand the man right, that numbers are packets. But ethernet
packets are not all the same (data)size.
pppstats is different:
IN PACK VJCOMP VJUNC VJERR | OUT PACK VJCOMP VJUNC NON-VJ
318241 590 0 0 0 | 84201 760 0 0 760
IN and OUT are _bytes_. This is what I am looking for. But just for any interface.