Mac OS X
Q: Why does netstat not output cumulative values?
I would be grateful if somebody could explain why the following command does not output cumulative values as implied by the man page:
netstat -I en0 -w 5 -b
Mac OS X (10.5.8), on 733 MHz G4+, G3s, Ubuntu on R630
Posted on Dec 15, 2015 2:37 PM
by Hiroto,Solvedanswer
Hello
Quote from netstat(1) man page -
If a wait interval is specified, the protocol information over the last interval seconds will be displayed.
And I get something like this:
$ netstat -I en0 -w5 -b input (en0) output packets errs bytes packets errs bytes colls 3 0 210 1 0 90 0 25 0 1927 38 0 2503 0 5 0 379 7 0 451 0 0 0 0 0 0 0 0 ^C $
Tested under OS X 10.6.8.
Regards,
H
Posted on Dec 16, 2015 6:34 AM