Community discussions

MikroTik App
 
Nevyn
just joined
Topic Author
Posts: 7
Joined: Fri Feb 14, 2020 3:34 pm

Hotspot Counters Rest script help

Fri Feb 14, 2020 4:31 pm

Hello

I would like to setup a script that reset the counters for a specific hotspot user, tried /ip hotspot users user rest-counters-0 and rest-all-counters, but these don't work. I am guessing about what to do here so I am not even sure I am vaguely within the ballpark of how this should be done. Never used scripts before.

Any guidance would be appreciated.
 
sopyan0807
newbie
Posts: 39
Joined: Wed Jan 22, 2020 5:21 pm
Location: Indonesia
Contact:

Re: Hotspot Counters Rest script help

Mon Feb 17, 2020 1:51 pm

try this, delete only one user
/ip hotspot user reset-coun [find name=user]
or reset all users
/ip hotspot user reset-coun [find] 
 
Nevyn
just joined
Topic Author
Posts: 7
Joined: Fri Feb 14, 2020 3:34 pm

Re: Hotspot Counters Rest script help

Wed Feb 19, 2020 11:56 am

Thanks man, that worked perfectly.
 
sopyan0807
newbie
Posts: 39
Joined: Wed Jan 22, 2020 5:21 pm
Location: Indonesia
Contact:

Re: Hotspot Counters Rest script help

Wed Feb 26, 2020 1:09 pm

I figured it out, I just went to the scheduler in Winbox and added this script /ip hotsport user reset-counters and from the intervals, you can run it hourly, daily, weekly or even monthly depending on the amount of hours you put in their.
it's a good idea

Who is online

Users browsing this forum: marcelofares and 13 guests