03-06-2018 09:34 AM - edited 03-01-2019 06:26 PM
Hi all,
So i have an EEM script that downloads a config file and save it straight to nvram:startup-config. e.g
action 1.0 cli command "copy ftp://192.168.0.128/config.txt nvram:startup-config
I also in the same script download a the firmware for the device and install it. I want to be able to write the boot option 'boot system switch all flash:packages.conf' but if i do this and reload it's forgotten. If i write it to memory surly the config i have save to startup-config will be over written.
So is there a command that i can use to tell my device (3850) to use packages.conf as it's boot without touching the startup config?
many thanks.
03-06-2018 03:51 PM
Hello,
Why not just add the command "boot system switch all flash:packages.conf" to your txt file that you download so that it is loaded in when you download the file?
Hope that helps!
03-06-2018 11:52 PM
tried that, it doesn't work. my guess is the startup-config isn't read at that stage in the boot.
03-07-2018 05:21 AM
Hello,
Only other thing I can think of would be to set the boot statement, save your config, then copy in your startup config. Maybe it will preserve your boot statement. I am pretty sure there is no way to change your boot statement without saving your config.
Hope that helps!
03-07-2018 06:12 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide