Solved

How to delete the boot variable shown in the bootvar

Posted on 2014-02-27
2
3,153 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

773 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