GSM Modem-kicking Script for RouterOS
- Read more about GSM Modem-kicking Script for RouterOS
- Log in or register to post comments
I seem to be spending a lot of my time recently hacking around RouterOS bugs. Here's a script that monitors the state of the PPP interface for a GSM modem and does what it can to get it back up and running if necessary.
The script checks three times (10 seconds apart) to see if the PPP interface is connected. If it still isn't, it resets the USB power to try and kick the communication back to life. It waits 30 seconds after doing this then, if it's still not up for two more checks, it reboots the whole Routerboard.