Cisco Catalyst 3650 Recovery from switch: Prompt Using USB

Post Reply
zemerdon
Site Admin
Posts: 398
Joined: Mon Jan 23, 2023 8:13 pm

Cisco Catalyst 3650 Recovery from switch: Prompt Using USB

Post by zemerdon »

non-booting

Code: Select all

flash_init
emergency-install usbflash0:/cat3k_caa-universalk9.16.12.14.SPA.bin
clean install firmware:

Code: Select all

format flash:
copy usbflash0:cat3k_caa-universalk9.16.12.14.SPA.bin flash:
software install file flash:/cat3k_caa-universalk9.16.12.14.SPA.bin new force
zemerdon
Site Admin
Posts: 398
Joined: Mon Jan 23, 2023 8:13 pm

Cisco Catalyst 3650 Recovery from switch: Prompt Using USB

Post by zemerdon »

Cisco Catalyst 3650 Recovery from switch: Prompt Using USB

I first attempted recovery over TFTP.

Basic bootloader networking worked:

Code: Select all

mgmt_init
set IP_ADDR <switch-ip>/<subnet-mask>
ping <tftp-server>
and the switch could successfully reach the TFTP server.

I then tried:

Code: Select all

emergency-install tftp://<tftp-server>/cat3k_caa-universalk9.16.12.14.SPA.bin
The recovery environment started normally, but once it reached:

Code: Select all

### Launching Linux Kernel
the management Ethernet link physically dropped.

The recovery environment then timed out while trying to download the IOS-XE bundle.

After confirming the bootloader network itself was working, I gave up on TFTP and used a FAT32 USB stick instead.

The IOS-XE image was copied to the USB root as:

Code: Select all

firmware.bin
Then from the bootloader:

Code: Select all

dir usbflash0:
emergency-install usbflash0:firmware.bin
This worked successfully. The switch validated, installed and verified the IOS-XE packages, then rebooted normally.

Final result:

Code: Select all

IOS XE 16.12.14
Mode: INSTALL
Because the switch was now running in INSTALL mode, I also corrected the boot variable to:

Code: Select all

configure terminal
no boot system
boot system flash:packages.conf
end
write memory
Verification:

Code: Select all

show version
show boot
dir flash:
Flash should contain

Code: Select all

packages.conf
and the extracted

Code: Select all

.pkg
files.

Main takeaway:

If TFTP works from the 3650 bootloader but the management link drops when the emergency recovery Linux kernel launches, USB

Code: Select all

emergency-install
is a simple way around the problem.
Post Reply