tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* clear interface stats for network interface?
@ 2002-05-28 19:29 Tim Mooney
  0 siblings, 0 replies; only message in thread
From: Tim Mooney @ 2002-05-28 19:29 UTC (permalink / raw)



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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-28 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-28 19:29 clear interface stats for network interface? Tim Mooney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox