Is there a way to script a mikrotik so that if it looses network connection, it will call the modem website, log in, go to the reboot webpage and click the reboot button?
The case is that a mikrotik router is behind a modem. The network connection frequently goes down, and the only way to get back online is to reboot the modem. Usually the easy way is to manually unplug power for a few seconds, but there is also a web interface where there is a reboot button. So I was thinking I could schedule a script that runs every 5ish minutes - sends a ping to the isp, if no reply sends another ping to isp, if still no reply, reboot the modem. I've not been able to telnet or ssh to the modem. So the only way I've found to reboot is by using the webinterface. Is there any way to script that action?
If the mikrotik can't do it, maybe it's possible from a metarouter? From a pc it should be posible, just have to figure out how.