Subject: Re: Resetting ip, icmp etc statistics
To: Eric Haszlakiewicz <erh@nimenees.com>
From: Liam J. Foy <liamfoy@sepulcrum.org>
List: tech-net
Date: 03/30/2006 21:47:24
On 14:37, Thu 30 Mar 06, Eric Haszlakiewicz wrote:
> On Thu, Mar 30, 2006 at 08:44:21PM +0100, David Laight wrote:
> > On Thu, Mar 30, 2006 at 08:21:36PM +0100, Liam J. Foy wrote:
> > > Hey folks,
> > > 
> > > I have a patch against CURRENT which adds an option to netstat to reset
> > > ip, tcp, icmp and carp etc statistics. This idea was taken from the -z
> > > option in FreeBSDs netstat.
> > > 
> > > This is pretty handy if you're doing network testing/research with
> > > NetBSD. Anyone like this idea? If you guys do, I'll submit a patch for
> > > review.
> > 
> > Generally resetting stats is a bad idea since you don't actually know
> > how many different pieces of software are trying to read them.
> 
> 	if you're the only (admin) person on the machine, and you're
> not running anything else, I think you can be fairly certain.

I kinda agree. This option could only really be handy for research and
testing, not for the common joe user.

> > Much better is to have a display program capable of showing you the deltas.
> 
> 	except then you need to have that program running continuously, or
> it needs to save it's state somewhere.  yuck.
> 
> eric

-- 
		Liam J. Foy
		<liamfoy@sepulcrum.org>
		http://www.bsdportal.org