07-13-2023 08:16 AM
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?
07-13-2023 08:24 AM
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.
07-13-2023 09:18 AM
Hello,
it says MODE Bundle
07-13-2023 09:29 AM
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
07-13-2023 10:42 AM
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)
07-13-2023 10:48 AM
Can you share the command
"show running-config" ?
show version
show boot
07-13-2023 12:40 PM - edited 07-13-2023 12:40 PM
@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.
02-20-2025 10:48 AM
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.
02-20-2025 05:35 PM
Put the firmware into a USB flash drive (FAT16) and enter the following command:
emergency-install usbflash0:cat9k_iosxe.17.06.05.SPA.bin
07-13-2023 04:12 PM
emergency-install usbflash0:cat9k_iosxe.17.06.05.SPA.bin
02-20-2025 06:57 PM
After copying the .bin file to flash, you need to extract it and update the boot configuration. Here are the exact steps:
Extract the .bin file:
This extracts the software package and sets it as the active version.
Verify the installed version:
Set the boot variable: (This is done automatically in install mode, but you can check)
Save the config and reload:
This will install and boot the new IOS properly. Let me know if you need any clarifications!
02-20-2025 10:16 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide