Hello, We have some P2MP links that occasionally go unresponsive or high packet loss. Rather than using a watchdog timer on an IP (Sometimes the unit will hang on restart) im monitering ive decided to try making my very first script. It works as intended:
I have a netwatch watching a local IP "10.0.0.2" If that connected client should stop being reachable it executes the following script:
:if ([/ping 10.0.0.2 interval=1 count= 45] <30) do={ log info "disabled Wlan1" ; /interface disable wlan1 ; delay 15 ; /system script run wlan1_start
}
and I made a second script to activate after the delay command in the first;
log info "startingWlan1" ; /interface enable wlan1