Hello!
I have a problem with this script. Does anyone know where I am wrong?
{
:foreach i in [/ip hotspot user find] do={
:if ([/ip hotspot user get $i limit-bytes-out]<=[/ip hotspot user get $i bytes-out]) do={
/ip hotspot user set [/ip hotspot user get $i name] profile=OtherProfile
}
}
}
The problem is in this line:
/ip hotspot user set [/ip hotspot user get $i name] profile=OtherProfile
but it seems correct to me and I am obviously wrong, because it does not work. I am using RouterOS 2.9.4
Thanks,
Radu