:foreach a in=[/tool user-manager user find] do={:if ([/tool user-manager user get $a uptime-used]=0s) do={ :log warning ("deleted Expired user.. $[/tool user-manager user get $a name]") /tool user-manager user remove [/tool user-manager user get $a name] }}
Untuk hapus log nya
Code:
:foreach i in=[/tool user-manager log find] do={ :log warning "delete log user $[/tool user-manager log get $i user]" /tool user-manager log remove $i } :log info "====== delete log user hotspot selsai!..====="
thnk gan sangat membantu
ReplyDeleteThanks Gan...ane coba dulu ya :D
ReplyDeleteklo di server vpn gmn ya
ReplyDelete