Hello. I have searched for this everywhere but with no results.
Is there a way to reset only one counter of one user → something like that
/tool user-manager user reset-counters username uptime
or
/tool user-manager user set numbers=username uptime-used = 0
To be absolutly clear i want to traffic counters remain untouched. In this way i would like to achive a cooldown time for non-trial hotspot users. Or there is maybeye another way to achieve that???
Regards.
Is this what you looking for?
In http://routerip:port/userman for each user that you want to reset-counters for you must add a comment into the users profile under the “Private information” tab eg. nontrial
So if you have a comment that says “nontrial” then you need to change the text in the script that says “YOUR-COMMENT-HERE” to “nontrial”
(do not remove the “”)
:local name;
:local comment;
/tool user-manager user;
:foreach i in=[/tool user-manager user find] do={
:set name [get $i first-name];
:set comment [get $i comment];
:do {:if ([$comment] = “YOUR-COMMENT-HERE”) do={/tool user-manager user reset-counters $i};
}}