[TriLUG] Reset conuters on eth interface
Tom 'spot' Callaway
trilug@trilug.org
10 Sep 2002 09:54:18 -0400
On Tue, 2002-09-10 at 09:53, Mike Mueller wrote:
> On Tuesday 10 September 2002 08:32, Jeff Bollinger wrote:
> > Does anyone know how to reset the counters on a particular ethernet
> > interface? For example,
> >
> > ifconfig eth1
> > eth1 Link encap:Ethernet HWaddr 00:04:75:B0:07:14
> > BROADCAST MULTICAST MTU:1500 Metric:1
> > RX packets:7664356 errors:0 dropped:0 overruns:1 frame:0
> > TX packets:6424 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:100
> > RX bytes:1089057890 (1038.6 Mb) TX bytes:405296 (395.7 Kb)
> > Interrupt:9 Base address:0x7880
> >
> > How can I zero out the "RX bytes" and the "TX bytes" portions above?
>
> Stop/start the driver or reboot.
Or, install the statzero module:
http://students.washington.edu/ramsden/misc/statzero.tar.gz
It will do exactly what you want.
~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> Red Hat Sales Engineer
Sair Linux and GNU Certified Administrator (LCA)
Red Hat Certified Engineer (RHCE)
GPG: D786 8B22 D9DB 1F8B 4AB7 448E 3C5E 99AD 9305 4260
The words and opinions reflected in this message do not necessarily
reflect those of my employer, Red Hat, and belong solely to me.
"Immature poets borrow, mature poets steal." --- T. S. Eliot