Table Of Contents
Password Recovery Procedure for Cisco NX-OS
Recovering the Network Administrator Password
Using the CLI with Network-Admin Privileges
Obtaining Documentation and Submitting a Service Request
Password Recovery Procedure for Cisco NX-OS
Revised: August 6, 2008This document describes how to recover a lost network administrator password from the console port of a device operating with Cisco NX-OS.
The Cisco NX-OS software is a data center-class operating system that is based on the Cisco SAN-OS software. The Cisco NX-OS software fulfills the routing, switching, and storage networking requirements of data centers and provides an Extensible Markup Language (XML) interface and a command-line interface (CLI) similar Cisco IOS software.
Contents
This document includes the following sections:
•
Recovering the Network Administrator Password
•
Related Documentation, page 3
•
Obtaining Documentation and Submitting a Service Request
Prerequisites
This section describes the prerequisites to performing the recovery procedure and includes the following topics:
Requirements
On a device with two supervisor modules, you must perform the password recovery procedure on the supervisor module that will become the active module after you complete the recovery procedure. In order to ensure that the other supervisor module does not become active, perform one of the following two tasks:
•
Physically remove the other supervisor module from the chassis.
•
Change the console prompt of the other supervisor module to one of the following two prompts until the recovery procedure completes:
–
loader >
–
switch(boot) #
Note
For more information about these prompts, see the documentation for your device.
Conventions
For more information about document conventions, see the Cisco Technical Tips Conventions at the following URL: http://www.cisco.com/application/pdf/paws/17016/techtip_conventions.pdf
Recovering the Network Administrator Password
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 device
This section includes the following topies:
•
Using the CLI with Network-Admin Privileges
Using the CLI with Network-Admin Privileges
If you are logged in to, or can log into, the device with a username that has network-admin privileges, follow these steps:
Step 1
Verify that your username has network-admin privileges.
switch# show user-accountuser:adminthis user account has no expiry dateroles:network-adminuser:dbgusrthis user account has no expiry dateroles:network-admin network-operatorStep 2
Assign a new network administrator password if your username has network-admin privileges, .
switch# configure terminalswitch(config)# username admin password <new password>switch(config)# exitswitch#Step 3
Save the configuration.
switch# copy running-config startup-config
Power Cycling the Device
If you cannot start a session on the device that has network-admin privileges, you must recover the network administrator password by power cycling the device.
CautionThis procedure disrupts all traffic on the device. All connections to the device will be lost for 2 to 3 minutes.
Note
You cannot recover the administrator password from a Telnet or SSH session. You must have access to the local console connection. See the "Starting a Switch in the Cisco MDS 9000 Family" section on page 5-2 for information on setting up the console connection.
To recover the network administrator password by power cycling the device, follow these steps:
Step 1
Establish a terminal session on the console port of the active supervisor module.
Step 2
Power cycle the device.
Step 3
Press the Ctrl-] key sequence from the console port session when the device begins the Cisco NX-OS software boot sequence to enter the switch(boot)# prompt mode.
Ctrl-]switch(boot)#Step 4
Reset the network administrator password.
switch(boot)# configure terminalswitch(boot-config)# admin-password <new password>switch(boot-config)# exitswitch(boot)#Step 5
Display the bootflash: contents to locate the Cisco NX-OS software image file.
switch(boot)# dir bootflash:Step 6
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.binStep 7
Log in to the device using the new administrator password.
switch login: adminPassword: <new password>Step 8
Reset the new password to ensure that is it is also the SNMP password.
switch# configure terminalswitch(config)# username admin password <new password>switch(config)# exitswitch#Step 9
Insert the previously removed standby supervisor module into the chassis, if necessary.
Step 10
Boot the Cisco NX-OS kickstart image on the standby supervisor module, if necessary.
In the following example, the image filename is nx-os_kickstart.bin:
loader# boot bootflash:nx-os_kickstart.binStep 11
Load the Cisco NX-OS system software on the standby supervisor module, if necessary.
In the following example, the image filename is nx-os.bin:
switch(boot)# load bootflash:nx-os.binStep 12
Save the configuration.
switch# copy running-config startup-config
Related Documentation
Cisco NX-OS documentation is available at the following URL:
http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
The documentation set for Cisco NX-OS includes the following documents:
Release Notes
Cisco NX-OS Release Notes, Release 4.0
NX-OS Configuration Guides
Cisco NX-OS Getting Started with Virtual Device Contexts, Release 4.0
Cisco NX-OS Fundamentals Configuration Guide, Release 4.0
Cisco NX-OS Interfaces Configuration Guide, Release 4. 0
Cisco NX-OS Layer 2 Switching Configuration Guide, Release 4.0
Cisco NX-OS Quality of Service Configuration Guide, Release 4.0
Cisco NX-OS Unicast Routing Configuration Guide, Release 4.0
Cisco NX-OS Multicast Routing Configuration Guide, Release 4.0
Cisco NX-OS Security Configuration Guide, Release 4.0
Cisco NX-OS Virtual Device Context Configuration Guide, Release 4.0
Cisco NX-OS Software Upgrade Guide, Release 4.0
Cisco NX-OS Licensing Guide, Release 4.0
Cisco NX-OS High Availability and Redundancy Guide, Release 4.0
Cisco NX-OS System Management Configuration Guide, Release 4.0
Cisco NX-OS XML Management Interface User Guide, Release 4.0
Cisco NX-OS System Messages Reference
Cisco NX-OS MIB Quick Reference
NX-OS Command References
Cisco NX-OS Command Reference Master Index, Release 4.0
Cisco NX-OS Fundamentals Command Reference, Release 4.0
Cisco NX-OS Interfaces Command Reference, Release 4.0
Cisco NX-OS Layer 2 Switching Command Reference, Release 4.0
Cisco NX-OS Quality of Service Command Reference, Release 4.0
Cisco NX-OS Unicast Routing Command Reference, Release 4.0
Cisco NX-OS Multicast Routing Command Reference, Release 4.0
Cisco NX-OS Security Command Reference, Release 4.0
Cisco NX-OS Virtual Device Context Command Reference, Release 4.0
Cisco NX-OS High Availability and Redundancy Command Reference, Release 4.0
Cisco NX-OS System Management Command Reference, Release 4.0
Other Software Document
Cisco NX-OS Troubleshooting Guide, Release 4.0
Obtaining Documentation and Submitting a Service Request
For information on obtaining documentation, submitting a service request, and gathering additional information, see the monthly What's New in Cisco Product Documentation, which also lists all new and revised Cisco technical documentation, at:
http://www.cisco.com/en/US/docs/general/whatsnew/whatsnew.html
Subscribe to the What's New in Cisco Product Documentation as a Really Simple Syndication (RSS) feed and set content to be delivered directly to your desktop using a reader application. The RSS feeds are a free service and Cisco currently supports RSS version 2.0.
This document is to be used in conjunction with the documents listed in the "Related Documentation" section.
CCDE, CCENT, Cisco Eos, Cisco Lumin, Cisco Nexus, Cisco StadiumVision, Cisco TelePresence, the Cisco logo, DCE, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn and Cisco Store are service marks; and Access Registrar, Aironet, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, EtherFast, EtherSwitch, Event Center, Fast Step, Follow Me Browsing, FormShare, GigaDrive, HomeLink, Internet Quotient, IOS, iPhone, iQ Expertise, the iQ logo, iQ Net Readiness Scorecard, iQuick Study, IronPort, the IronPort logo, LightStream, Linksys, MediaTone, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerPanels, ProConnect, ScriptShare, SenderBase, SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0807R)
© 2008 Cisco Systems, Inc. All rights reserved.


