Hello, everyone seems that I am not satisfied with my script.
This script works, need help if anyone can improve it?
:local un "user1"
/ip hotspot user set limit-uptime=0s [find where name=$un]
/ip hotspot user set comment="" [find where name=$un]
/ip hotspot user reset-counters [find where name=$un]
The user has a monthly validity profile when the user goes beyond validation the user will disconnect from the hotspot. In order to renew/extend the validity of users, I need to clear the user's session in order to log back in. So I made a script for every user to renew their validity.