Community discussions

MikroTik App
 
hci
Long time Member
Long time Member
Topic Author
Posts: 679
Joined: Fri May 28, 2004 5:10 pm

Reset CRS then Load Script

Thu Feb 01, 2018 7:25 pm

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?
 
User avatar
pietroscherer
Trainer
Trainer
Posts: 170
Joined: Thu Mar 05, 2015 3:05 pm
Location: RS, Brazil
Contact:

Re: Reset CRS then Load Script

Thu Feb 01, 2018 8:25 pm

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!
 
hci
Long time Member
Long time Member
Topic Author
Posts: 679
Joined: Fri May 28, 2004 5:10 pm

Re: Reset CRS then Load Script

Thu Feb 01, 2018 10:09 pm

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.
 
sid5632
Long time Member
Long time Member
Posts: 557
Joined: Fri Feb 17, 2017 6:05 pm

Re: Reset CRS then Load Script

Fri Feb 02, 2018 3:42 am

Put a 10s delay in at the top of the script.
 
hci
Long time Member
Long time Member
Topic Author
Posts: 679
Joined: Fri May 28, 2004 5:10 pm

Re: Reset CRS then Load Script

Fri Feb 02, 2018 4:42 pm

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

Who is online

Users browsing this forum: kbabioch, sindy and 31 guests