Solved

How to delete the boot variable shown in the bootvar

Posted on 2014-02-27
2
2,694 Views
Last Modified: 2014-03-01
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
Comment
Question by:gbolly1913
2 Comments
 
LVL 1

Accepted Solution

by:
netdsg earned 500 total points
Comment Utility
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
 

Author Comment

by:gbolly1913
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now