Solved

How to delete the boot variable shown in the bootvar

Posted on 2014-02-27
2
2,897 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
ID: 39892766
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
ID: 39893708
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virus .zepto files 10 69
How to monitor internet bandwidth usage on a server 7 74
Stand Alone IT Service Provison 2 43
Cisco IOS cempMemBufferPeak  notification SNMP 5 27
Let’s list some of the technologies that enable smooth teleworking. 
Healthcare providers, insurance companies and other covered entities trust eFax Corporate to transmit their most sensitive documents. eFax Corporate can help your organization implement a HIPAA compliant cloud faxing solution.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

930 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