Community discussions

MikroTik App
 
gdanov
Member Candidate
Member Candidate
Topic Author
Posts: 150
Joined: Thu Jan 17, 2019 1:10 pm

interface TX/RX stats reset when?

Thu Jun 30, 2022 12:25 pm

I'm trying to figure out my internet consumption and have forgotten to enable graphs.
looking at the Ethernet interface stats I see total RX/TX, but I'm not sure when that's reset.

my modem (linked via ethernet port to my MT) restarts each night, so the link goes down every 24h, but the MT interface/device stays up all the time. So, the TX/RX stats are reset upon link up/down or upon router restart?
 
erlinden
Forum Guru
Forum Guru
Posts: 1920
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 12:30 pm

As far as I know:
  • Counter reset
  • Interface disable/enable
  • reboot
And there might be more...
 
pe1chl
Forum Guru
Forum Guru
Posts: 10195
Joined: Mon Jun 08, 2015 12:09 pm

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 12:33 pm

No, interface counters are only reset on reboot. And they cannot be reset manually.
Only when you have a dynamic interface that would be removed when the link is down, e.g. an L2TP client, it would be reset.
 
gdanov
Member Candidate
Member Candidate
Topic Author
Posts: 150
Joined: Thu Jan 17, 2019 1:10 pm

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 12:35 pm

that's my guess too. enable/disable resets the stat but link up/downs doesn't reset the stat.
 
gdanov
Member Candidate
Member Candidate
Topic Author
Posts: 150
Joined: Thu Jan 17, 2019 1:10 pm

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 12:36 pm

No, interface counters are only reset on reboot. And they cannot be reset manually.
Only when you have a dynamic interface that would be removed when the link is down, e.g. an L2TP client, it would be reset.
thanks
 
erlinden
Forum Guru
Forum Guru
Posts: 1920
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 12:46 pm

Then what is the purpose of the "Reset Counters" button, pe1chl?

Image
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 1:06 pm

Is a true question, or is just a polemic one?

The button "Reset Counters" on ethernet interface is only for reset Overall Stat / RX Stat / TX Stat (when is supported on the model)
not for Status (link down) or Traffic (Bytes/Packets/Drops).

And YES, on the first times I use that button, I'm expecting that reset all counters, traffic and drops included, but I have learn that is not work on that way...
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 2990
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 8:45 pm

try reset-counters on specific interface by CLI

example on 6.48.6
reset-counters.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: interface TX/RX stats reset when?

Thu Jun 30, 2022 8:59 pm

do not mix
/interface reset-counters ether1 # (button do not exist)
with
/interface ethernet reset-counters ether1 # (the button "Reset Counters")

Who is online

Users browsing this forum: CedrikAlton, dido1236, xristostsilis, xrlls and 78 guests