i need some script for UM limitation

hi ppl. hope so, i will find some help here. i have HotSpor+UM configuration, and i need some script for next two things:

  1. script which will reset download-limit for users in assigned Group, groupd named example: 200MBPerDay
  2. script for change speed for some groups in UM. example:
    i have one Group named: Users1, and i wanna set speed in two intervals: 1Mbps in 07:00-00:00, and 2Mbps in 00:00-07:00. 1Mbps for daily use, and 2Mbps for nightly use. is that possible ? thanks for any help

with Regards, CollinsB!

i’m trying to find answar, but i can’t :frowning: where is error:

/tool user-manager user set [find group=1mbps] rate-limit=1M/1M

?
i’m trying to put that in Scheduler, with start time =07:00:00
and this code in Scheduler with start time=00:00:00

/tool user-manager user set [find group=1mbps] rate-limit=2M/2M

?

can someone help me?

EDIT: i found answar:

/tool user-manager user set [/tool user-manager user find group-name=DinamicSpeed] rate-limit="1M/1M"

with Scheduler start time=07:00:00, interval=1d 00:00:00

/tool user-manager user set [/tool user-manager user find group-name=DinamicSpeed] rate-limit="2M/2M"

with Scheduler start time=00:00:00, interval=1d 00:00:00

i testing it now, and i hope so, that everything will be fine :slight_smile:
EDIT1: this works fine :wink:

this forum is dead i think :open_mouth: that’s not good! i found answar, for my first question.
in 00:00:00 i reseting counters for user in UM, and in 00:00:30 i set up transfer-limit on 200MB. but i have one problem more. when user is connected, he can download more then 200MB. how can i disconnect it, when it download 200MB?

it’s weekend :wink:

sorry that I can’t help you with User Manager, but this is what happens with forum on weekends :slight_smile: It’s a graph from google analytics:
2009-12-14_1212.png

:local name "kole1","kole2","kole3"
:local activeuser
:local user
:foreach user in $name do={
:foreach activeuser in=[/ip hotspot active find user $user] do={
:local time [/ip hotspot active get uptime $aktivni]
:if ($time>"1800s") do {
/ip hotspot active remove $activeuser
:log info ($activeuser . "Kicked" .)
}
}
}

can someone help me? what’s wrong in this my code? i wanna remove active user which has uptime bigger then 1800 seconds.

EDIT: i found answar without you :smiley: :stuck_out_tongue: :stuck_out_tongue:

:local name [:toarray "kolinsb1,kolinsb2"]
:local i
:local userr
:foreach userr in=$name do={
:foreach i in=[/ip hotspot active find user=$userr] do={
:local time [/ip hotspot active get $i uptime]
:if ($time>30m) do={
/ip hotspot active remove $i
}
}
}

that’s it :bulb: :laughing: