OSPF failure resetator

We have problem with our routerboards. Sometimes OSPF stops working and “route print” command get stuck (endless running with no results). I’ve trying solve this problem with Mikrotik support but they are not able to help us. This problem occurs randomly and repeatedly only on some routerboards even with new softwares and firmwares.

Is possible to make script which can reboot routerboard in case of this ospf failure? Maybe somehow detect “route print” running time and reboot in case of stuck.

Many thanks for help!

maybe something like

/system scheduler
add name=schedule1 start-date=jan/01/1970 start-time=00:00:00 interval=5m on-event=":global fine; :set fine false;"
add name=schedule2 start-date=jan/01/1970 start-time=00:00:05 interval=5m on-event=":global fine; /ip route print; :set fine true;"
add name=schedule3 start-date=jan/01/1970 start-time=00:00:20 interval=5m on-event=":global fine; :if (!$fine) do={ /system reboot };"

add necessary policies to the schedules - I don’t have a time to test…

Great idea. Thanks!

karrrma? =)

Of course :slight_smile:

Just continue posting on every single topic…post count matters more than anything.

http://forum.mikrotik.com/t/forum-feature-karma-voting/37184/1

look at the screenshot :smiley:

Chupaka already has the biggest post count, so he has the next target - best karma :slight_smile:

http://forum.mikrotik.com/memberlist.php?mode=&sk=d&sd=d

Mind the time interval after restart (OSPF needs same time to start and scheduler restarting over and over) :sunglasses:

well, good remark, but in that case, “/ip route print” should work even if OSPF is not started yet =)

I don’t really know yet.. But after last OSPF failure routerboard ended in restart loops.. I had only 3 seconds for quick mac-telnet login and disable commands..