Safety Fallback for Script Error

We use a script template for all of our Tiks that gets applied one time when it’s first used. We update the script and sometimes due to firmware updates or errors on our part the script gets stuck and does not complete leaving the router in an unusable state. This is not good when we are off site.

We’d like to add a fallback where the router will default back to some other backup or original factory setup upon running our script. It should be automatic and happen about 5 minutes after our script is run so that if there is a problem it would go back to a state that we can still log in and do it again after fixing errors.

We would then log in and turn off the fallback feature once we successfully run our script.

I’m not sure if you understand what I am trying to do.. it’s not the best explanation, but if anyone has any ideas we would appreciate it very much.

Thanks.

You can activate safe mode before starting the script and at the end of the script you deactivate the safe mode and so making the changes permanent.

In environment you can see if that script is still running. You can check if the with a schedule if the script/special user is taking to long and the reboot the device, and because the safe mode is still active it should restore to the before script status.

Edit: environment has to be jobs

Safe Mode is only applicable for up to 100 changes; after which it disengages without rollback. If the script make more than 100 changes, safe mode may not help.