cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5203
Views
1
Helpful
9
Replies

Cisco switch stuck at switch: prompt

DAVID
Level 3
Level 3

I mistakenly did the factory reset-all on my Cisco 9200 switch and now the switch is only showing the switch: prompt at start-up.  How do I get the switch back to where it belongs with no config  and booting from the packages.conf?

9 Replies 9

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Does 

boot flash:packages.conf

...work?

 

cheers,

Seb.

No.  Looks like the factory-reset all completely wipes out entire switch including NVRAM and flash: 

Leo Laohoo
Hall of Fame
Hall of Fame

The command "factory-reset all" will completely wipe the Flash and some portions of the NVRAM.  

The only way to put the firmware back into the switch is to use a USB thumb drive and the command "emergency-install usbflash0:firmware_filename.bin".  

Emergency-install returns a command not found 

 

Is the switch in ROMMON?

If it is in ROMMON, post the complete output to the command "?".

Hi, 

i have same issue as i enter factory reset-all  and its showing below prompt only. even if i reboot also showing like this prompt only

Initializing Hardware...

System Bootstrap, Version 17.9.1r [FC13], RELEASE SOFTWARE (P)
Compiled Thu 06/08/2023 20:36:25 by rel

Current ROMMON image : Primary
C9200L-24P-4X platform with 2097152 Kbytes of main memory

WARNING: Bootable URL's in BOOT variable not found or exhausted.
Please check the ROMMON configuration or boot command usage.
switch:

switch: ?

 

kindly advice 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
arp Dump or Clear ARP Table
boot Load and boot an executable image
cat Display text content from a file
copy Copy a file
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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

switch:

 

 

Boot the firmware using USB:  boot usbflash:filename.bin

Once the switch has boot into IOS, copy the firmware into the flash and unpack using Install Mode.

factory reset-all  - This command remove all config and IOS image.

Download image from Cisco or from Local Drive and copy to USB stick

switch: dir usbflash0:  ( check the image available on USB)

boot usbflash0:IOS.bin (IOS.bin the file you see on USB)

Install the image using install command.

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9200/software/release/17-9/release_notes/ol-17-9-9200/upgrading_the_switch_software.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Aijaz Rehman
Level 1
Level 1

Well ROMMON mode (SWITCH:) commonly comes after power failure or sudden shutdown or software upgrade, try this

switch: flash_init

switch: load_helper

switch: Dir Flash:

switch: rename flash:config.text flash:config.old

switch: boot

-------------------------------------------------------------------------------------------------

if switch didn't boot properly, then you need to reset the switch but you will loose all the DATA, to proceed follow below 

Step 1.

Connect up your console cable and power on the switch, whilst holding down the “mode” button:

Step 2.

Initialize the flash file system with the command: flash_init

Step 3.

Delete the config.text file from the flash directory:

switch: del flash:config.text

Are you sure you want to delete "flash:config.text" (y/n)?y

File "flash:config.text" deleted

Step 4.

Delete the vlan.dat file from the flash directory:

switch: del flash:vlan.dat

Are you sure you want to delete "vlan.dat" (y/n)?y

File "flash:vlan.dat" deleted

Step 5.

Reboot the switch and you’re done:

switch: boot

-------------------------------------------------

if still you are facing issue, then your FLASH file might be corrupted, you need to download a new flash file from your Cisco account and transfer to the switch via TFTP server, always use Tera Term tool to console switch you will get more options like XMODEM, YMODEM etc for transfer files

Review Cisco Networking for a $25 gift card