last time script clear user expired on mikrotik v4 it work but today on V5 not work Please show script clear user expired for mikrotik v5
Thank
no reply?#Clear credit expire user, check by credit left and credit till time
#Test On RouterOS 4.11 Only
:foreach i in [/tool user-manager user find subscriber=admin] do={
:if ([/tool user-manager user get $i credit-left]=0s) do={
:if ([/tool user-manager user get $i credit-till-time] != "") do={
/tool user-manager user remove $i
}
}
}
#Clear expire user by Uptime-Used >= Uptime Limit
#Test On RouterOS 4.11 Only
:foreach i in [/tool user-manager user find subscriber=admin] do={
:if ([/tool user-manager user get $i uptime-used]>=[/tool user-manager user get $i uptime-limit]) do={
/tool user-manager user remove $i
}
}