Using the CLI with Network-Admin Privileges to Recover the Administrator Password
SUMMARY STEPS
1.
switch# show user-account
2.
switch# configure terminal
3.
switch(config)# username admin password new-password
4.
switch(config)# copy running-config startup-config
DETAILED STEPS
PurposeCommand or Action
Shows that your username has network-admin
privileges.
switch# show user-account
Example:
switch# show user-account
user:admin
Step 1
this user account has no expiry date
roles:network-admin
user:dbgusr
this user account has no expiry date
roles:network-admin network-operator
Enters global configuration mode.switch# configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
Assigns a new network administrator password
if your username has network-admin privileges.
switch(config)# username admin password new-password
Example:
switch(config)# username admin password egBdf
Step 3
Copies the running configuration to the startup
configuration.
switch(config)# copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
Step 4
Power Cycling the Device to Recover the Administrator Password
If you cannot start a session on the device that has network-admin privileges, you can recover the network
administrator password by power cycling the device.
Cisco Nexus 9000 Series NX-OS Troubleshooting Guide, Release 7.x
25
Troubleshooting Installations, Upgrades, and Reboots
Recovering the Administrator Password