cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3227
Views
3
Helpful
11
Replies

How to reinstall Cisco 9300 after doing factory reset

teamdv6199
Level 1
Level 1

I did a factory reset all on a cisco 9300 and I am not sure how to reinstall it. I have the IOS cat9k_iosxe.17.06.05.SPA.bin file. I know how to boot to the OS and copy the file to the switch (I think)

boot usbflash0:cat9k_iosxe.17.06.05.SPA.bin

copy usbflash0:cat9k_iosxe.17.06.05.SPA.bin flash:

configure terminal

configure terminal

boot system bootflash:cat9k_iosxe.17.06.05.SPA.bin

 

After that i dont know how to extract this bin to get a package file and I dont know how to update the conf file to point to it. can someone give me the exact commands? 

 

 

11 Replies 11

Hi @teamdv6199 

  First you need to identify which mode this switch are using:  Install or bundle. This may means different process for installation.

You can check that by using the command  show version.

You dont extract the bin. The bin is related to bundle mode. The package.conf is related to Install mode.

If you have the IOS in the USB driver, just copy it to flash and then identify which mode the switch are using and then let me know and I can help you with the commands.

Hello,

it says MODE Bundle

Ok. Then all you have to do is put the right IOS on the flash and configure the boot system :

boot system flash:<ios>

Save the config and reload the switch

So I did that and added my ios config. When I rebooted I got:

booting attempt to boot from flash:packages.conf not found

 

I ran 

boot usbflash: name.bin

copy usbflash0:c3750e-universalk9-mz.122-58.SE2.bin flash

config t:

boot system flash:<ios>

 

 

 

and then it says bootable url in boot variable not found or exhausted 

 

ERROR: failed to boot from flashpackages.conf (NOT FOUND)

Can you share the command

"show running-config" ?

show version

show boot


@teamdv6199 wrote:
copy usbflash0:c3750e-universalk9-mz.122-58.SE2.bin flash

The IOS file is for a 3750E/X and not compatible with a Catalyst 9300/9400/9500/9600. 

Owners of Catalyst 9200/9300/9400/9500/9600 do not require a maintenance contract to download firmware files.  

Hello Flavio,

I currently face the same issue 

cannot use TFTP 

tried with USB the output is:

switch: dir
usage: dir <path-to-directory>
supported filesystem(s):
flash: ro flash
usbflash0: rw front-panel USB 0
usbflash1: rw front-panel USB 1
switch: dir usbflash0:
Error[10]: Failed to open directory!
switch: dir usbflash1:
media drive "usbflash1:" not present.
Error[22]: Failed to open directory!

switch: dir flash:

Attributes Size Name
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
drwxr-xr-x 4096 .prst_sync
-rw-r--r-- 3846 lateshutdown.log

switch: help
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
arp Dump or Clear ARP Table
boot Load and boot an executable image
cat Display text content from a file
copy Copy a file
devunlock unlock a blob to get container keys
dir List filesystems or a directory on a filesystem path
help List command information
history Show command history
idprom Show idprom data
ping Ping use ICMP protocol to get an ICMP ECHO_RESPONSE from host
ping6 Ping use ICMP protocol to get an ICMP ECHO_RESPONSE from host
reset Reset entire system
set Set an environment variable value
unset Unsets an environment variable
version Show sboot version and runtime info
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

We appreciate your support 

waiting for your feedback.

 

Put the firmware into a USB flash drive (FAT16) and enter the following command: 

emergency-install usbflash0:cat9k_iosxe.17.06.05.SPA.bin

Leo Laohoo
Hall of Fame
Hall of Fame
emergency-install usbflash0:cat9k_iosxe.17.06.05.SPA.bin

vishalbhandari
Spotlight
Spotlight

@teamdv6199 

After copying the .bin file to flash, you need to extract it and update the boot configuration. Here are the exact steps:

  1. Extract the .bin file:

    install add file flash:cat9k_iosxe.17.06.05.SPA.bin activate commit

    This extracts the software package and sets it as the active version.

  2. Verify the installed version:

    show install summary
  3. Set the boot variable: (This is done automatically in install mode, but you can check)

    show boot system
  4. Save the config and reload:

    write memory reload

This will install and boot the new IOS properly. Let me know if you need any clarifications!

@vishalbhandari 

Have you tried your steps before? 

If you do #1, the switch/router/WLC will reboot and you will not be able to do subsequent steps only after the reboot.