Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4768
  • Last Modified:

How to delete the boot variable shown in the bootvar

Hi guys,
How can I delete the boot variable shown in the bootvar result below?
Just upgraded this 4506, and deleted 53.sg4.
As you can see I have only one boot image in the directory, and I want the switch to boot to that image i.e. cat4500e-ipbasek9-mz.122-54.SG1.bin.
-----¿C01#dir
Directory of bootflash:/
    6  -rw-    25093330  Feb 26 2014 11:36:06 +00:00  cat4500e-ipbasek9-mz.122-54.SG1.bin
128206848 bytes total (93587456 bytes free)

-----¿C01#sh bootvar
BOOT variable = bootflash:cat4500e-ipbase-mz.122-53.SG4.bin,12;bootflash:cat4500e-ipbasek9-mz.122-54.SG1.bin,12;
CONFIG_FILE variable does not exist
BOOTLDR variable does not exist
Configuration register is 0x2102

As you can see below I have tried deleting it, but getting the error below
boot-start-marker
boot system bootflash:cat4500e-ipbase-mz.122-53.SG4.bin
boot system bootflash:cat4500e-ipbasek9-mz.122-54.SG1.bin
boot-end-marker
----¿C01#delete ?
  /force          Force delete
  /recursive      Recursive delete
  bootflash:      File to be deleted
  cat4000_flash:  File to be deleted
  nvram:          File to be deleted
  slot0:          File to be deleted

---¿C01#delete bootflash:cat4500e-ipbase-mz.122-53.SG4.bin
Delete filename [cat4500e-ipbase-mz.122-53.SG4.bin]?
Delete bootflash:cat4500e-ipbase-mz.122-53.SG4.bin? [confirm]
%Error deleting bootflash:cat4500e-ipbase-mz.122-53.SG4.bin (File not found)
0
gbolly1913
Asked:
gbolly1913
1 Solution
 
netdsgCommented:
Since the ipbase image is not on the flash the switch cannot boot to it.  The boot system commands tell the switch the order of preference to boot an image.  It will try to boot the ipbase image, not find it, and fail.  It will then boot the ipbaseK9 image.  to verify this boot the switch and execute a 'show version' command.  This should reveal the switch running on the ipbaseK9 image.

In order to remove the ipbase image from the config file boot preferences try the following commands:


enable
config t
no boot system bootflash:cat4500e-ipbase-mz.122-53.SG4.bin
exit

### verify

show run | inc boot

### if satisfied save the config file.

wr mem
0
 
gbolly1913Author Commented:
Thanks netdsg,  if you look at the  last part of my question above you can see that i have done that, with error below coming up.

C01#delete bootflash:cat4500e-ipbase-mz.122-53.SG4.bin

Delete filename [cat4500e-ipbase-mz.122-53.SG4.bin]?
Delete bootflash:cat4500e-ipbase-mz.122-53.SG4.bin? [confirm]
%Error deleting bootflash:cat4500e-ipbase-mz.122-53.SG4.bin (File not found)

So now i have two image on the same line in boot avriable as shown below.

BOOT variable = bootflash:cat4500e-ipbase-mz.122-53.SG4.bin,12;bootflash:cat4500e-ipbasek9-mz.122-54.SG1.bin,12;
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now