Page 1 of 1

SCRIPT TO RESET-COUNTERS OF SPECIFIC USERS

Posted: Mon May 28, 2018 2:25 pm
by ngo222
I am trying to use the script below to reset counters of users whose profile is called "students".

/tool user-manager user reset-counters [/tool user-manager user find where actual-profile ="student"]

However, when i try running this on the terminal, i get the attached error message after a long wait:

I am using Mikrotik OS Version 6.42.2 on an x86 device. Please what am i not doing correctly?

Re: SCRIPT TO RESET-COUNTERS OF SPECIFIC USERS

Posted: Mon May 28, 2018 6:40 pm
by ADahi
RouterOS v6.40.8 Bugfix
/tool user-manager user reset-counters numbers=[find where actual-profile="xyz"]
working 100%

Re: SCRIPT TO RESET-COUNTERS OF SPECIFIC USERS

Posted: Mon May 28, 2018 7:43 pm
by ngo222
Ok. Tried your code but it still gives me the same error. Is it a problem of the version of Mikrotik OS i am using, or a problem related to the number of users in that query script returned.

The total number of users in my database is 29,000. Can that be the problem???

Re: SCRIPT TO RESET-COUNTERS OF SPECIFIC USERS

Posted: Mon May 28, 2018 9:29 pm
by ADahi
Ok. Tried your code but it still gives me the same error. Is it a problem of the version of Mikrotik OS i am using, or a problem related to the number of users in that query script returned.

The total number of users in my database is 29,000. Can that be the problem???
maybe version
or maybe the space before and after " = " is not accepted in ROS script grammar
actual-profile ="xyz"

Re: SCRIPT TO RESET-COUNTERS OF SPECIFIC USERS

Posted: Wed May 30, 2018 1:09 pm
by ngo222
Thank you for all your replies. But i have tried removing the space, but still getting the same error message.

Kindly send me a link to your version of the OS so i can downgrade and try again.


Thank you.

Re: SCRIPT TO RESET-COUNTERS OF SPECIFIC USERS

Posted: Thu May 31, 2018 12:02 pm
by ngo222
Hi ADahi,

I have gotten OS version 6.40.8 bugfix. I have downgraded to that version of the software but when i run the command, i am still having the same error.

Do you have any other suspicion and solution please?

Thank you.

Re: SCRIPT TO RESET-COUNTERS OF SPECIFIC USERS

Posted: Fri Jun 01, 2018 10:16 pm
by ADahi
contact mikrotik support