How to Recover a Lost Network Administrator Password on Nexus 5000 Switch
Summary: This article explains how to recover a lost network administrator password on Nexus 5000 switch.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
Facts:
Cisco Nexus 5000 switch
Procedure:
You can recover the network administrator password using one of two methods:
Method 1: Using the CLI with Network-Admin Privileges
If you can log in to the switch with a username that has network-admin privileges, follow these steps:
Cisco Nexus 5000 switch
Procedure:
You can recover the network administrator password using one of two methods:
- From the CLI with a username that has network-admin privileges
- By power cycling the switch
Method 1: Using the CLI with Network-Admin Privileges
If you can log in to the switch with a username that has network-admin privileges, follow these steps:
- Verify that your username has network-admin privileges.
switch# show user-account
user:admin
this user account has no expiry date
roles:network-admin
user:dbgusr
this user account has no expiry date
roles:network-admin network-operator
- Assign a new network administrator password if your username has network-admin privileges.
switch# configure terminal switch(config)# username admin password <new password> switch(config)# exit switch#
- Save the configuration.
switch# copy running-config startup-config
Method 2: Power Cycling the Switch.
If you cannot start a session on the switch that has network-admin privileges, you must recover the network administrator password by power cycling the switch.
This procedure disrupts all traffic on the switch!
You cannot recover the administrator password from a Telnet or SSH session. You must have access to the local console connection.
To recover the network administrator password by power cycling the switch, follow these steps:
- Establish a terminal session on the console port of the supervisor module.
- Power cycle the switch.
- Press the Ctrl-B key sequence from the console port session when the switch begins the Cisco NX-OS software boot sequence to enter the boot prompt mode.
Ctrl-B
switch(boot)#
- Reset the network administrator password.
switch(boot)# configure terminal switch(boot-config)# admin-password <new password> switch(boot-config)# exit switch(boot)#
- Display the "bootflash:" contents to locate the Cisco NX-OS software image file.
switch(boot)# dir bootflash:
- Load the Cisco NX-OS system software image. In the following example, the system image filename is nx-os.bin:
switch(boot)# load bootflash:nx-os.bin
- Log in to the switch using the new administrator password.
switch login: admin Password: <new password>
- Reset the new password to ensure that it is also the SNMP password.
switch# configure terminal switch(config)# username admin password <new password> switch(config)# exit switch#
- Save the configuration.
switch# copy running-config startup-config
Additional Information
Affected Products
Networking, SwitchesArticle Properties
Article Number: 000206877
Article Type: How To
Last Modified: 22 Dec 2022
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.