Page 1 of 1
Reset CRS then Load Script
Posted: Thu Feb 01, 2018 7:25 pm
by hci
I want to reset the a mikrotik CRS to no settings then load an rsc file settings into it. Is there a way to do this remotely?
Re: Reset CRS then Load Script
Posted: Thu Feb 01, 2018 8:25 pm
by pietroscherer
Yes. Look for the run-after-reset parameter, of /system reset-configuration command:
https://wiki.mikrotik.com/wiki/Manual:C ... tion_Reset
Hope I can help you!
Re: Reset CRS then Load Script
Posted: Thu Feb 01, 2018 10:09 pm
by hci
That sounds like exactly what I need. Problem is when I select no-defaults, skip-backup and then the rsc file that has config and then reboot the router does not import the rsc file. I can mac-telnet in after reboot and import the file but it does not happen on its own.
Re: Reset CRS then Load Script
Posted: Fri Feb 02, 2018 3:42 am
by sid5632
Put a 10s delay in at the top of the script.
Re: Reset CRS then Load Script
Posted: Fri Feb 02, 2018 4:42 pm
by hci
The delay seemed to work.
Now when I try to set the password at end of config it does not take.
/password old-password="" new-password=newpass confirm-new-password=newpass