tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
Subject: clear interface stats for network interface?
Date: Tue, 28 May 2002 14:29:24 -0500 (CDT)	[thread overview]
Message-ID: <ad0lpp$gaq$1@main.gmane.org> (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



                 reply	other threads:[~2002-05-28 19:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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