cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
805
Views
2
Helpful
4
Replies

Clearing boot variables

donalcox
Level 1
Level 1

Hi,

I am trying to clean up boot variables but I am unable to do so despite using the no boot system switch or no boot system flash command

BOOT variable = flash:/flash:cat3k_caa-universalk9ldpe.16.12.12.SPA.bin;flash:cat3k_caa--universalk9ldpe.16.12.12.SPA.conf;flash:packages.conf;

Here is the boot variable I want it to only say flash:packages.conf

Using the no command to tidy up does not work so wondering how I can do this. On boot it looks for the first bin file and the conf file and comes up with error file not found - however it does go on ahead and boot as the packages.conf works.

Any help much appreciated in advance - thank you.

4 Replies 4

@donalcox 

 no boot system switch all

boot system flash:packages.conf

Thanks @Flavio Miranda 
I tried that but variable was still there after doing that
So I seen that those commands were in running config. i.e boot system flash:/flash:cat3k_caa-universalk9ldpe.16.12.12.SPA.bin and boot system flash:cat3k_caa--universalk9ldpe.16.12.12.SPA I just did not statement against those in global config
Then they went away and all good - you steered me in the right direction though - thanks.


@donalcox wrote:
I tried that but variable was still there after doing that

After clearing the boot variable statement in config mode, if the config is not saved, the boot variable statement will remain unchanged. 

conf t
 no boot system switch all
end
wr

Gregory.Fields
Level 1
Level 1

It depends on the IOS or switch.   The correct command is:
conf t
no boot system
end
wr 
note: you do not need to add anything else see options below:
SWITCH(config)#no boot system ?
bootflash: System image file
flash: System image file
ftp: System image file
http: System image file
sftp: System image file
tftp: System image file
<cr> <cr>