Advertisement
kajege

Hapus Expired User Manager

Apr 21st, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. /system script
  2. add comment="Hapus Expired User ROS 6.xx" name=expired_userman owner=admin policy=\
  3. ftp,reboot,read,write,policy,test,password,sniff,sensitive source=":local username\
  4. \n\
  5. \n :foreach i in [/tool user-manager user find where !actual-profile] do={\
  6. \n :set username [/tool user-manager user get \$i username]\
  7. \n :log error (\"Remove user name \$username\")\
  8. \n [/tool user-manager user remove \$i]\
  9. \n }\
  10. \n"
  11. /system scheduler
  12. add comment=delete-expired-user interval=1d name=del-user on-event=expired_userman \
  13. policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive start-date=\
  14. mar/08/2017 start-time=06:00:00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement