Hi
I have 2 Lhg Mikrotik that connected point to point.
I need a script that if they disconnected from each other restart the LHGS
Hi
I have 2 Lhg Mikrotik that connected point to point.
I need a script that if they disconnected from each other restart the LHGS
You can use netwatch to check the connection and start a script.
I quickly checked and there might be a challenge for rebooting with a script because if the yes/no question
Or use the built in ping watchdog function. No scripting required.
https://help.mikrotik.com/docs/display/ROS/Watchdog
Ping watchdog can monitor connectivity to a specific IP address and trigger the reboot function.
/system watchdog
Property: watch-address (IP; Default: )
The system will reboot, in case 6 sequential pings to the given IP address will fail. If set to none this feature is disabled. By default, the router will reboot every 6 minutes if the watch-address is set and not reachable.
Hi there.
Do you really need to restart the whole device? Or maybe “restart” a specific interface? It’s pretty easy and 100% doable with Netwatch and script to disable, wait a second and enable an interface.