User Tools

Site Tools


routeros

This is an old revision of the document!


OSPF watchdog

:local HOSTNAME ([/system identity get name])
:if ([/ip route print count-only where dst-address=0.0.0.0/0 ospf]=0) do={
 /routing ospf instance set 0 disabled=yes
 /routing ospf instance set 0 disabled=no
 /log error "$HOSTNAME NO OSPF"
 :delay 4000ms;
 /tool fetch url="https://api.telegram.org/bot$BOT_ID/sendMessage?chat_id=$CHAT_ID&text=$HOSTNAME NO OSPF, OSPF RESTARTING" keep-result=no
}
routeros.1715598625.txt.gz · Last modified: 2024/05/13 08:10 by protocol