help with a script

hi

I need a script to limit a daily download bandwidth for specific users (150Mbytes)

my network : 192.168.1.0/24


REGARDS

whats up guys… no one to help :frowning:


I have done the following steps

I have limited bytes out in hotspot user properties (not the profile) (160Mb)

and in the schedular I ave scheduled a script to run daily

  
/ip hotspot user reset-counter

but nothing happens the counters didnt reset …

any ideas here
???

The reset-counter command needs to be passed the items to reset counters for. To reset all counters, use “/ip hotspot user reset-counters [/ip hotspot user find]”.

thanx for your reply

huh, maybe

/ip hotspot user reset-counters-all

? =)

Must be a new command, I don’t have that in 4.2

[admin@MikroTik] > /ip hotspot user reset-counters-all
bad command name reset-counters-all (line 1 column 18)

oops, sorry, I checked in /ip firewall filter, because I don’t have Hotspot installed %)

Finally its ok

I have tried this

/ip hotspot user reset-counter

manually and counters reseted

then using schedular

to work every 24 hours at 6 AM and its ok …