Hi all,
Ran into a problem when checking with netwatch if an IP is reachable over the LTE network and if not, boot the board. This puts the LHG into a loop because the LTE interface takes time to link. Suppose /sys reboot is not always a good idea! Rather force the LTE interface down and up and use a wait statement before retesting.
Please comment if anyone has a better idea of how to handle this more gracefully.
If the question is why should this be necessary, in South Africa the IPs sometimes become un-routeable for some reason and you have to reconnect.
My answer:
*) read wiki about LTE
*) send logs to remote syslog/linux
*) save logs to action=disk to check it after reboot.
*) watchdog create a suport.rif? You can read this file at mikrotik.com account and check latest logs!.
*) You can swap sim port to down/b and again to restore to up/a
*) You can grab lte info and send SMS when LHG is offline.
*) You can create own script action when you receive a specific SMS like reboot, 2xchange sim slot, disable/enable lte etc.