[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Reset Interface statistics eth0
- From: Werner Puschitz <wp puschitz com>
- To: redhat-list redhat com
- Subject: Re: Reset Interface statistics eth0
- Date: Sat May 31 19:21:51 2003
On Sun, 1 Jun 2003, Mikevl wrote:
> Hi
>
> As part of my tracking of the monthly DSL traffic I would like to be able to reset the interface statistics as shown in if config or /proc/net/dev. I have tried "ifdown, ifup" although this stops the interface it does not reset the statistics for the interface. Obviously I could reset the machine every month but this is a bit extreme.
>
> Any help much appreciated
>
> Many thanks
>
> Mike
You need to unload the network module.
Shutdown the interface. E.g.:
service network stop
Remove the network module. You can get the module name from e.g. /etc/modules.conf:
rmmod <network_module_name>
Bring up the network:
service network start
BTW, you can see the changes in /proc/net/dev very nicely with:
watch -d cat /proc/net/dev
Werner
--
Werner Puschitz
Sr. AIX/Linux Systems Analyst and Administrator
Oracle Certified Professional DBA
http://www.puschitz.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]