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


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to