Hotspot with usermanager

Hello guys!
Im running hotspot with usermanager and local radius on ROS 3.17
I need script which is disable some user(kids) in time 22,00 an again enable in 7,00 .
Is this posible within my configuration? please give me some example.
Thanks!

Currently it is possible only with scripts.

  1. you need to setup script on the User Manager, which disables required users from 22:00 to 07:00;
    user from
/tool user-manager user
  1. script on the HotSpot router, which clears
/ip hotspot active

table at 22:00, right after the script on the User Manager router is executed.

But for this second I need help I was try something like this but it not work … hm I probably need some other command. I was try like this:

/ip hotspot active remove  [/ip hotspot active find test]

without succes, I must somehowe put item number after find …

It is not possible to use number in the scripts, but you can use for example comment or username.

/ip hotspot active remove [find username=test]

Hm this is not working ?

How about this:
/ip hotspot active remove [/ip hotspot active find user=test]

I allow two clients per user/password on some accounts. The routine above will remove only one of them. You will need to use something like this for multiple users:

:global thisuser [/ip hotspot active find user=test]

:foreach i in=$thisuser do={
   /ip hotspot active remove $i
}

Thanks man ! This works ! :smiley: