0

I am trying to put some boundaries in the usage of the bandwidth of the Internet connection I am in charge. I wrote a simple script to limit the upload/download rate when the user reach a certain volume. To test it, it manually reset the counters of one queue target in the menu Queue>simple>reset counters. The counters has been set to zero, but I expected that the counters will restart counting after but nothing happened. I rebooted the MikroTik and the counters of all the other queues reset and restarted counting except the one I reset myself.

So is there any ways to make the counters to restart counting?

I using MikroTik RB2011UiAS-RM with RouterOS Winbox v6.1

Thanks!

NetVicious
  • 3,848
  • 1
  • 33
  • 47
Patrik
  • 401
  • 1
  • 6
  • 23

1 Answers1

0

this code works on mikrotik 6.32.3 and should work everywhere.

Reset counters on single SQ item (first one): /queue simple reset-counters 0

Reset counters on all items: /queue simple reset-counters-all

Test (read values) - run in console: :put [queue simple get 0 value-name=bytes]

NOTE: queue should not be disabled to counting bytes. Queues continues to count after this reset, but in my winbox there are still zeroes in tab "Total statistics" (winbox bug?) - but code is working.

Enjoy, D