From: Tim Mooney (mooney@dogbert.cc.ndsu.NoDak.edu)
Date: Tue May 28 2002 - 15:29:24 EDT
Server: Tru64 UNIX 4.0f + patch kits through January 2002
I have what I think should be a simple question, but I can't find a
working answer. We would like to be able to clear (zero) the counters
for the following fields
Ipkts
Ierrs
Opkts
Oerrs
Coll
that are output for
netstat -in
Even being able to zero some of them would be handy. It sure seems like
netstat -Itu1 -z
should do it, based on the man page, and indeed if I run that command I
get the long statistics that says "nnn seconds since last zeroed" and
some of the numbers appear to have been reset since the last time that
`netstat -Itu1 -z' was run, but running
netstat -in
still shows packet totals that are always increasing. Is there any way
to reset *those* counters?
I've also tried coming in over the tu0 interface and doing an
ifconfig tu1 down; ifconfig tu1 up
but that didn't reset the counters displayed via `netstat -in' either.
Short of rebooting or completely deleting the interface and recreating it,
is there a way to clear the counters that are shown via `netstat -in'?
Thanks!
Tim
-- Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J6, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:42 EDT