Subject: Re: bin/21078: patch to allow ifconfig clear interface stats
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 04/09/2003 17:19:38
[ On Wednesday, April 9, 2003 at 23:11:27 (+0200), Manuel Bouyer wrote: ]
> Subject: Re: bin/21078: patch to allow ifconfig clear interface stats
>
> On Wed, Apr 09, 2003 at 04:39:56PM -0400, Greg A. Woods wrote:
> > 
> > Actually in that case you should do:
> > 
> > 	netstat -i -w 10
> > 
> > Then you will get the small numbers you desire!
> 
> Yes, but in my case it's not exactly that that I want either.
> More only 2 displays at a fixed interval.

I think you mean you'd like to see the following option added to netstat
(just as it exists in some of the other *stat programs):

     -c count
             Repeat the display count times.  The first display is for the
             time since a reboot and each subsequent report is for the time
             period since the last display.  If no wait interval is specified,
             the default is 1 second.

> Yes, this is not an usual use,
> but I know I would have liked it when debugging network problems
> (cisco can do it, and it *is* usefull).

Meanwhile you _can_ interrupt the output any time you're ready....  :-)

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>