Reset TX and RX bytes

Hi all!

How can i reset the TX/RX bytes on interface?

Pat

From the CLI.

reset-counters <interface name>

It does not work…

interface ethernet reset-counters <interface name>

that is what i did…

Pat

Hi, I’ve seen on Winbox:
Interface list → Interface window → Traffic
or
Wireless tables → Interface window → Traffic

there is “Tx/Rx Bytes” counter.

two questions:

  1. how can I see it through telnet?
  2. how can I reset these counters? with command line above there are no changes on interface window…

Has anyone found an answer for this? I’d like to use these counters to track data usage per subscriber (VLAN), and reset them to zero at the start of every month. I can’t figure out how to reset them, short of rebooting the router.

That would not be reliable anyway, as your counters would get reset at a reboot.

What you need to do is:

  • read the counters from another system with SNMP
  • keep a “last read value”
  • handle the case where there is a very big jump between two reads, assume the router has been rebooted
  • this way, keep a valid usage figure over the past read interval and store it in some database
  • generate your usage figures from that

This is a mechanism that is present in some SNMP monitoring packages.

Hello,
I need to reset interface vlan counters every month too.
Has anyone make this?

Best