I am running into an issue which Mikrotik are now alluding to, but require a support.rif file , however, I keep forgetting to send it when resolving the issue. Basically, If an IP is active in /IP Hotspot Active, (but the user is idle for say 14 hours) then the DHCP server will remove and re-assing the IP address to the new user without logging the Active hotspot entry out.
What I need to do is this:
RUn a script evrery 30 seconds that:
Enumerates the /IP Hotspot Active list
For each entry , updates the corresponding /IP DHCP-SERVER LEASE entry to make-static, whilst removing any make-static that is no longer active (so it can be re-assigned).
End result : Every active hotspot user has a static lease, as soon as they are no longer an active user, their lease is marked as dynamic again.
Whilst I know my TIK’s, scripting is not my strong point, can anyone provide any pointers on how I could achieve this task?
Many thanks.