Good day…
Dear Buddy..
i try a script refer to the documentation.
system script print detail
Flags: I - invalid
0 name="Ethernet3Disable" owner="vincent_angbt" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive
last-started=aug/25/2011 17:05:23 run-count=4 source=
:if ([/ping 172.16.254.254 count=5]=0) do={interface ethernet disable ether3}
:if ([/ping 172.16.254.254 count=5]=5) do={interface ethernet enable ether3}
Currently what my problem is, this script will only check the if it can ping or cannot ping then decided to take action on the Ethernet3, but, it only can check 1 time, then stop running.
What i need is, this script can run non-stop and monitor is whether it can reach to the 172.16.254.254 or not, if can or cannot, it will take the action.
how can i add another line to make this script running on non-stop basic?
thanks.
ang.