Page 1 of 1

Limit Users daily

Posted: Mon Dec 23, 2013 7:16 pm
by ardalan
Hi every body
i used mikrotik user manager as radius and i made a profile for limit download to 200 Mb.
i assigned this profile to 400 users and after they use, on user information page it says they "Used" that profile and i have to add new profile for every one.
how can i assign profile to users one time and make profile affect Daily (every one can download just 200 Mb in a day)?
thank you kindly

Re: Limit Users daily

Posted: Fri Jan 03, 2014 3:24 pm
by faghihsmh
hi
you can set validity for your profile for example 6 week.
in those six week if every one have reached his limitation you just have to reset the counter and for reseting
you can use a simple script that i wrote before and schedule it to run every day
here it is

foreach i in=[/tool user-manager user find customer=admin] do={/tool user-manager user reset-counter numbers=$i}

Re: Limit Users daily

Posted: Fri Feb 07, 2014 11:01 pm
by corkuck
I have been working on this also. Go to http://forum.mikrotik.com/viewtopic.php?f=10&t=81617

The problem is just by resetting the counters it doesn't restore the users profile for more Mb download. It may work for time limit reached but not for Mb quota reached limit to be restored. So the user can't log back in.

Unless I missing something?

"Happy MikroTik-ing"

MikroTik ROS 6.9 /x86

/rk