Hi guys,
I use the following set ups for some unattended kiosks:
Routerboard: RBM33G
Modems: 2x R11e LTE
Antenna: mANT LTE 5o
I receive internet through a sim card only. It works well but from time to time the internet is gone and it doesn’t reconnect itself. I have to drive their 45min just to reboot the router.
This makes absolutely no sense so I try to use the netwatch tool via Winbox to configurate the rebooting.
The problem is that I have absolutely no idea how to do it. This is what I have so far. I found this in the internet.
This one I put into a new netwatch:
Down:
/log info "Netwatch to host 193.2.1.66 down"
/system script run NetwatchScript
Up:
/log info "Netwatch to host 193.2.1.66 up"
This one i put into System - Script - New Script:
/system script
add name=NetwatchScript policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source=“/log info "LTE NetwatchScript started"\r
\n :if ([/ping 193.2.1.66 interval=2 count=60] =0) do={\r
\n /log info "RESETTING USB POWER"\r
\n /system routerboard usb power-reset duration=2s\r
\n :if ([/ping 193.2.1.66 interval=2 count=60] =0) do={ \r
\n /log info "REBOOTING"\r
\n /system reboot\r
\n } else={ \r
\n /log info "LTE working"\r
\n }\r
\n } else={ \r
\n /log info "LTE working" \r
\n }”
Does this make sense? Are the scripts correct and do I put them in the correct place?
Also see the files attached.
I appreciate any help!
Thanks & best regards,
Lukas


