Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /tool netwatch
- add comment="Netwatch script to detect Radius status and act accordingly" disabled=yes down-script=":log error \"RADIUS not responding, enabling local users in SECRET section of PPP/zaib\"\r\
- \n/ppp secret\r\
- \n:foreach i in=[find] do={\r\
- \n/ppp secret enable \$i\r\
- \n}\r\
- \n:log warning \"All PPP acounts are now enabled.\"" host=192.168.1.2 interval=1m timeout=2s up-script=":log warning\"RADIUS is now ONLINE. DISABLING local users in SECRET section of PPP/zaib\"\r\
- \n/ppp secret\r\
- \n:foreach i in=[find] do={\r\
- \n/ppp secret disable \$i\r\
- \n}\r\
- \n:log warning \"All local PPP accounts are now DISABLED.\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement