Skip to contentSkip to conversation

Reset Byte Count?

DISCUSSION Paul 2 participants 3 messages Oct 4, 2004

lore
Share & tools
lore

Paul

author
#0 lore raw

Hello list,

Is it possible to reset the byte counters that are displayed from ifconfig or in the /proc/net/dev file? I'm hoping there is a way to do it without taking the device down. In particular I'm looking to reset eth0 and eth1 traffic at a specific interval.

Thanks in advance,

-Paul

#1 lore raw

... ciao:

: on "10-4-2004" "Paul" writ:
: Is it possible to reset the byte counters

would 'iptables -Z' work ...

Signature · 2 lines
... i'm a man, but i can change,
    if i have to , i guess ...
author
#2 lore raw

Nope. Tried that, but if it's possible I'd hope it wouldn't require iptables...

Any other ideas for resetting the byte coutners in /proc/net/dev (ifconfig)

-Paul

Quoted 10 lines · terry white

... ciao:

: on "10-4-2004" "Paul" writ:
: Is it possible to reset the byte counters

would 'iptables -Z' work ...