Advertisement
lspci

Awto Reconnect WMS

Nov 24th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. /tool netwatch
  2. add down-script="{\r\
  3. \nlog error (\"WMS is down --- trying to reconnect ......\")\r\
  4. \n:local ip [/ip address get [/ip address find interface=\"namaINTERFACE\"] address];\r\
  5. \n:local ip [put [:pick \$ip 0 [:find \$ip \"/\"]]]\r\
  6. \n/tool fetch http-method=post http-data=\"username=USERNAMEWMS@freeMS&password=PASSWORDWMS\" url=(\"https://welcome2.wifi.id/wms/auth/authnew/autol\
  7. ogin/quarantine.php\\\?ipc=\$ip&gw_id=GWIDurl&client_mac=MACADDRESSinterface&wlan=WLANurl:UN%20CHECK\") keep-result=no\r\
  8. \nlog warning (\"WMS is UP\")\r\
  9. \n}" host=8.8.8.8 interval=10s
  10.  
  11. *** noted , ganti yang perlu diganti untuk disesuaikan dengan data yang ada ****
  12. *** setelah itu copy paste di new terminal ****
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement