Difference between revisions of "Password Recovery for Nexus Switches"
From NesevoWiki
Jump to navigationJump to search| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
* On a Windows PC, change the keyboard layout to <code>en-US</code> | * On a Windows PC, change the keyboard layout to <code>en-US</code> | ||
* Connect to the Nexus switch ''directly'' via serial console ('''not''' over ssh/telnet/Opengear etc.) using TeraTerm or PuTTY | * Connect to the Nexus switch ''directly'' via serial console ('''not''' over ssh/telnet/Opengear etc.) using TeraTerm or PuTTY | ||
| + | The above two steps are not required any longer. Issueing the break sequence with a german keyboard through an Opengear console session works fine (<code>Strg + AltGr + 9</code>). | ||
| + | |||
* Power on the device | * Power on the device | ||
* Wait until kickstart image has booted and the POST messages have appeared. | * Wait until kickstart image has booted and the POST messages have appeared. | ||
| Line 12: | Line 14: | ||
* Boot the system image, for example <code>load bootflash:n5000-uk9.5.1.3.N2.1b.bin</code> | * Boot the system image, for example <code>load bootflash:n5000-uk9.5.1.3.N2.1b.bin</code> | ||
* Enter the switch with username <code>admin</code> and Password <code>Ad123min</code> | * Enter the switch with username <code>admin</code> and Password <code>Ad123min</code> | ||
| + | * Save configuration: <code>copy running-config startup-config</code> | ||
| + | The following steps are if you want to delete all previous added configs. | ||
| + | |||
| + | * Type <code>write erase</code> to delete all configs. | ||
| + | * Type <code>reload</code> to restart system. | ||
* Save configuration: <code>copy running-config startup-config</code> | * Save configuration: <code>copy running-config startup-config</code> | ||
Latest revision as of 15:55, 26 March 2019
- On a Windows PC, change the keyboard layout to
en-US - Connect to the Nexus switch directly via serial console (not over ssh/telnet/Opengear etc.) using TeraTerm or PuTTY
The above two steps are not required any longer. Issueing the break sequence with a german keyboard through an Opengear console session works fine (Strg + AltGr + 9).
- Power on the device
- Wait until kickstart image has booted and the POST messages have appeared.
- Right after the massage
Checking all filesystems....r. done.has appeared, issue the break sequence to get to theswitch(boot)#prompt.- The break sequence is
Ctrl + ], i.e. hold the Control-Key and hit the closing square bracket. - On a german keyboard (with US keymap activated) the Control-Key is
Strgand the closing square bracket ist on the+ * ~- Key.
- The break sequence is
- Enter the
conf tcommand - Type
admin-password Ad123min - Type
exit - Type
dir bootflash:to view bootflash content - Boot the system image, for example
load bootflash:n5000-uk9.5.1.3.N2.1b.bin - Enter the switch with username
adminand PasswordAd123min - Save configuration:
copy running-config startup-config
The following steps are if you want to delete all previous added configs.
- Type
write eraseto delete all configs. - Type
reloadto restart system. - Save configuration:
copy running-config startup-config