cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

32844
Views
79
Helpful
20
Replies

Catalyst 9300 Password Recovery

I must be blind today because I cannot find any information about this. Can someone point me in the right direction?

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Catalyst 9300 Password Recovery

Cory,

It is the same as Catalyst 3850.

Power cycle the switch. Immediatly press and hold the Mode button. Hold the button till the Status LED will go amber. Then on the console you should be in Boot Loader.

Switch:

Add the following variables.

Switch: SWITCH_IGNORE_STARTUP_CFG=1

Then boot the switch.

Switch: boot

Once the switch has booted you can copy the saved config back into the running config.

Switch# copy start runn

Next set your password(s). Finally we want to remove the variables we set while in Boot Loader.

Switch# no system ignore startupconfig switch all

Save your new config.

Switch# copy runn start


Let me know if you have any further questions.


Regards,


Minhaj Uddin

20 REPLIES 20
Cisco Employee

Re: Catalyst 9300 Password Recovery

Cory,

It is the same as Catalyst 3850.

Power cycle the switch. Immediatly press and hold the Mode button. Hold the button till the Status LED will go amber. Then on the console you should be in Boot Loader.

Switch:

Add the following variables.

Switch: SWITCH_IGNORE_STARTUP_CFG=1

Then boot the switch.

Switch: boot

Once the switch has booted you can copy the saved config back into the running config.

Switch# copy start runn

Next set your password(s). Finally we want to remove the variables we set while in Boot Loader.

Switch# no system ignore startupconfig switch all

Save your new config.

Switch# copy runn start


Let me know if you have any further questions.


Regards,


Minhaj Uddin

Re: Catalyst 9300 Password Recovery

Worked perfectly. Thank you!

Beginner

Re: Catalyst 9300 Password Recovery

Thanks...I tried this and working fine.

Beginner

Re: Catalyst 9300 Password Recovery

Pressing and holding the mode button does nothing for me, i have read other threads and the solution that has worked for me is after power cycling the switch just start pressing the mode button multiple times until you see "switch:"

Highlighted
Beginner

Re: Catalyst 9300 Password Recovery

It works.
Thank you anderbri
Beginner

Re: Catalyst 9300 Password Recovery

You must be running IOS XE (linux), in that case it's a little different, follow these steps:

Initializing Hardware...

System Bootstrap, Version 16.6.1r [FC1], RELEASE SOFTWARE (P)
Compiled Sat 07/15/2017 8:31:57.39 by rel

Current image running:
Primary Rommon Image

Last reset cause: SoftwareReload <---- Once you see this, start pressing and releasing the mode button 3 times
C9300-24U platform with 8388608 Kbytes of main memory

attempting to boot from [flash:packages.conf]

Located file packages.conf
#
#####################################################################

Unable to load cat9k-rpboot.16.06.02b.SPA.pkg
Failed to boot file flash:user/packages.conf
ERROR: failed to boot from flash:packages.conf (Aborted) <--- will abort
switch:
switch: <---- ROMMON

Now issue these commands: 

 

Switch: SWITCH_IGNORE_STARTUP_CFG=1

 

Then boot the switch.

 

Switch: boot

If it shows you error issue the same "boot" command again.

Thanks

Please rate helpful posts.

Cisco Employee

Re: Catalyst 9300 Password Recovery

Earlier procedure of continuously pressing the mode button didn't worked. This one described by

Ciscoguy007procedure of pressing mode button 3 times, worked for my C9300-24T device.

Thanks,
Karthik
Beginner

Re: Catalyst 9300 Password Recovery

Ciscoguy007,

 

Thanks a lot.  The instructions worked out for me.  

 

Thanks

Beginner

Re: Catalyst 9300 Password Recovery

Thanks for sharing!

Beginner

Re: Catalyst 9300 Password Recovery

Your answer is wrong. The correct way to password recover a Catalyst 9300 is here:

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/16-6/configuration_guide/sys_mgmt/b_166_sys_mgmt_9300_cg/b_166_sys_mgmt_9300_cg_chapter_01100.html#task_nzq_q4z_n1b

 

Procedure


Step 1

Connect a terminal or PC to the switch.

  • Connect a terminal or a PC with terminal-emulation software to the switch console port. If you are recovering the password for a switch stack, connect to the console port of the active switch.

  • Connect a PC to the Ethernet management port. If you are recovering the password for a switch stack, connect to the Ethernet management port of a stack member .

Step 2

Set the line speed on the emulation software to 9600 baud.

Step 3

Power off the standalone switch or the entire switch stack.

Step 4

Reconnect the power cord to the switch or the active switch. As soon as the System LED blinks, press and release the Mode button 2-3 times. The switch enters the ROMMON mode.

Initializing Hardware...

System Bootstrap, Version 16.6.1r [FC1], RELEASE SOFTWARE (P)
Compiled Sat 07/15/2017  8:31:57.39 by rel

Current image running: 
Primary Rommon Image

Last reset cause: SoftwareReload         <---- Start pressing and releasing the mode button
C9300-24U platform with 8388608 Kbytes of main memory

attempting to boot from [flash:packages.conf]

Located file packages.conf 
#
#####################################################################

Unable to load cat9k-rpboot.16.06.02b.SPA.pkg
Failed to boot file flash:user/packages.conf
ERROR: failed to boot from flash:packages.conf (Aborted) <--- will abort
switch:  
switch:  <---- ROMMON

Proceed to the Procedure with Password Recovery Enabled section, and follow the steps.

Step 5

After recovering the password, reload the switch or the active switch .

On a switch:

Switch> reload
Proceed with reload? [confirm] y

On the active switch:

Switch> reload slot <stack-active-member-number>
Proceed with reload? [confirm] y

Step 6

Power on the remaining switches in the stack.

Beginner

Re: Catalyst 9300 Password Recovery

I'm in the similar situation in which I rebooted several times and finally received the switch: onto my console. I've been unable to type anything but the boot process was interrupted. Please provide me any information if possible

 

thanks

Beginner

Re: Catalyst 9300 Password Recovery

Thank you so much, this is correct! The old way of holding down the mode button was not worked for me and I was stumped.

Beginner

Re: Catalyst 9300 Password Recovery

hi,

 

Guys. I was in process of IOS upgrade of my production stack. primary device got upgraded, secondary device shwoed version mismatch error once, then showed secondary switch was in provisioned mode but did not boot & went in rommon.

 

I tried to copy ios from usb, it did not allow. even tried to use set variables but no success. switch is still in rommon. Now I have disconnected it and have brought out of production.

please share steps to recover from this & add in stack again.

 

Thanks in advance.

Beginner

Re: Catalyst 9300 Password Recovery

Did you add the auto-copy option to the end of the install command? It is unusual that you could not copy from USB though, what was the error you received? Make sure the 'software auto-upgrade' command is present on the master and then reconnect the member and then power on.  You may need to downgrade the master to match the member and start from scratch.

Just some ideas off the top of my head.

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards