From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim Mooney Newsgroups: gmane.os.tru64.managers Subject: clear interface stats for network interface? Date: Tue, 28 May 2002 14:29:24 -0500 (CDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1022614137 16730 127.0.0.1 (28 May 2002 19:28:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 28 May 2002 19:28:57 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17CmeP-0004Lj-00 for ; Tue, 28 May 2002 21:28:57 +0200 Original-Received: (qmail 3280 invoked by uid 5); 28 May 2002 19:29:34 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3272 invoked from network); 28 May 2002 19:29:34 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 28 May 2002 19:29:34 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GWU00EEC659OU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 28 May 2002 15:29:34 -0400 (EDT) Original-Received: from dogbert.cc.ndsu.NoDak.edu (dogbert.cc.ndsu.NoDak.edu [134.129.106.23]) by emroute1.cind.ornl.gov (PMDF V6.1 #39060) with ESMTP id <0GWU004C4654AP@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 28 May 2002 15:29:29 -0400 (EDT) Original-Received: from localhost (mooney@localhost) by dogbert.cc.ndsu.NoDak.edu (8.11.0/8.11.0) with ESMTP id g4SJTO7135507 for ; Tue, 28 May 2002 14:29:24 -0500 (CDT) Original-To: osf-admin Xref: main.gmane.org gmane.os.tru64.managers:353 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:353 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