Hello Im in need of some help have setup script to update devices firmware settings etc .. all at same time. but than my web server that i run on my private network can not handle all the devices connecting at same time. which 04.00 Am so what im attempting to do after this update if success device reboots so i wanted to call in a scheduler to check if devices rebooted if not so which means connection timed out so i wanted to repeat here is the script i have the only problem is if this one fails to it has to be check until gets sysuptime < 1 hrs
{
:local Stime [/system resource get uptime]
:while ($Stime > 01:00:00) do={
:log warning "Update Failed Retrying!"; :interface bridge set 0 name=null; :interface bridge set 1 name=null1; :log warning "BridgeID & FwID Reset OK!"; :tool fetch url=http://0.0.0.0/autoupdate.rsc port=3131 password=**** user=****; :import autoupdate.rsc;
}
}
so basically i want if that fails keeps trying every 5 mins until gets that autoupdate.rsc file executed and system gets rebooted. due autoupdate.rsc script.