[HELP] Simple script not working on script list

Hello

I have a problem.

I have read almost all topics about scripting failover, I found a simple one, but I cannot get it to work. Even if I copy paste from wiki, it doesnt work.

this is the script. on MT 2.96

:local pingresultA = [/ping 10.10.0.200 src-address=10.10.0.1 count=1]

:if ($pingresultA = 0) do={/system script run restart_interface}
:if ($pingresultA > 0) do={log info " ALL are Links are Up and Running"}


Any help would be really welcome!

I had one day and one night straight testing and still not working. (going to sleep now).

Thanks very much

Go to this link; http://wiki.mikrotik.com/wiki/Improved_Netwatch_II , copy and paste direct in the scheduler window (winbox) and it works…
I´ve just done it last night and it works great. You only make sure the main gateway route has the name ¨Default Route¨ as used in the example.

Next issue to solve is to find a reliable node to ping. The given ip in that example is Google but I’ve already two sessions of 20 mins failing ping returns… :frowning:

rudy

Ok, I am going to try it on schedduler.

Thank you very much