Community discussions

MikroTik App
caspat
newbie
Topic Author
Posts: 47
加入: Wed Apr 28, 2010 3:55 pm

Reset TX and RX bytes

星期二Feb 08, 2011 9:05 pm

Hi all!

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

Pat
Top
blake
Member
Member
Posts: 426
加入: Mon May 31, 2010 10:46 pm
Location:Arizona

Re: Reset TX and RX bytes

星期二Feb 08, 2011 10:08 pm

From the CLI.
Code:Select all
reset-counters 
Top
caspat
newbie
Topic Author
Posts: 47
加入: Wed Apr 28, 2010 3:55 pm

Re: Reset TX and RX bytes

星期二Feb 08, 2011 10:26 pm

It does not work...
Top
Feklar
Forum Guru
Forum Guru
Posts: 1724
加入: 星期二Dec 01, 2009 11:46 pm

Re: Reset TX and RX bytes

星期二Feb 08, 2011 10:51 pm

Code:Select all
interface ethernet reset-counters 
Top
caspat
newbie
Topic Author
Posts: 47
加入: Wed Apr 28, 2010 3:55 pm

Re: Reset TX and RX bytes

Wed Feb 09, 2011 3:21 am

that is what i did...

Pat
Top
el berto
Member Candidate
Member Candidate
Posts: 220
加入: Wed Sep 26, 2007 10:53 am

Re: Reset TX and RX bytes

Fri May 27, 2011 11:59 am

Hi, I've seen on Winbox:
Interface list -> Interface window -> Traffic
or
Wireless tables -> Interface window -> Traffic

there is "Tx/Rx Bytes" counter.

两个问题:
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.....
Top
用户头像
Hotz1
Member
Member
Posts: 393
加入: 星期二Oct 09, 2007 6:55 am

Re: Reset TX and RX bytes

Mon May 02, 2016 2:34 am

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.
Top
pe1chl
Forum Guru
Forum Guru
Posts: 9759
加入: Mon Jun 08, 2015 12:09 pm

Re: Reset TX and RX bytes

星期二May 03, 2016 2:25 pm

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.
Top
tgs
刚刚加入了
Posts: 1
加入: Thu Jul 27, 2017 4:54 pm

Re: Reset TX and RX bytes

Thu Jul 27, 2017 5:00 pm

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

Best
Top

Who is online

Users browsing this forum:Ahrefs [Bot],vergilisztaand 24 guests