Community discussions

MikroTik App
 
vasilaos
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Tue Aug 04, 2009 9:50 am

reset counters hotspot

Mon Apr 16, 2012 9:25 pm

hello! i have a simple question.

I want to reset the user counters. there is a reset all counters button. even when i open a single hotspot user the button says reset all counters. i have clicked by mistake this button twice loosing all the user counters. i need to know how can i reset a single user, the simplest way?

/ip hotspot user reset-counters "username"

does the command above function right or will it reset all counters?

thnx
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: reset counters hotspot

Mon Apr 16, 2012 11:35 pm

/ip hotspot user reset-counters [find name="username"]
Or any of the other available fields that you can set information for, like comments, passwords, mac-address, etc. For example if you use comment, it will reset any counter with that comment you search for. Use [find] to return all users and reset the counters.
 
navid507
just joined
Posts: 3
Joined: Tue Feb 18, 2014 5:40 pm

Re: reset counters hotspot

Tue Feb 18, 2014 5:50 pm

hi
how can I use the following code in c# api?

/ip hotspot user reset-counters [find name="username"]

I did this but not work:
mikrotik.Send("/ip/hotspot/user/reset-counters [find name = " + username+"]", true);
also tried it but no luck! :(
mikrotik.Send("/ip/hotspot/user/reset-counters");
mikrotik.Send("[find name =" + username+"]", true);
this will reset all counters of all users!
I want to reset just one user at a time.
 
navid507
just joined
Posts: 3
Joined: Tue Feb 18, 2014 5:40 pm

Re: reset counters hotspot

Fri Mar 14, 2014 12:58 pm

finally i found a way to mimic the reset of one user statistics!
delete the user and add it again!!!
hope this will be useful for you too!
 
salahaldin
just joined
Posts: 1
Joined: Wed Feb 05, 2020 10:50 am

Re: reset counters hotspot

Mon Aug 31, 2020 2:33 pm

this is work
/ip hotspot user reset-counters [find name="username"]
thanks

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Frostbite1991, KOK, lubara and 192 guests