Pages

Sunday 6 December 2015

MENGHAPUS USER EXPIRED DI USERMANAGER MIKROTIK SECARA OTOMATIS

SCRIP :

:foreach a in=[/tool user-manager user find] do={:if ([/tool user-manager user get $a credit-left]=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] 
}}


SETTING DI MIKROTIK :

1. Masuk mikrotik via winbox




2. Buat scrip




3. Buat scheduler




4. Hasil scrip



1 comment:

  1. otomatis hapus kdaluarsa itu apakah hapus yg sudah makai user aja ataukah smua user yg blum / yg sudah makai asalkan lewat dri batas waktu yg ditntukan

    ReplyDelete