Guest

Support

Cisco Nexus 1000V Password Recovery Guide

  • Viewing Options

  • PDF (229.6 KB)
  • Feedback
Password Recovery for Cisco Nexus 1000V

Table Of Contents

Password Recovery for Cisco Nexus 1000V

Contents

Creating a New Network Administrator Password

Flow Chart: Password Recovery with a Single VSM

Flow Chart: Password Recovery with Dual VSMs

Verifying User Privileges

Creating a Password when You Have Network-Admin Privileges

Creating a New Password by Booting from the CD-ROM on the Active VSM

Related Documentation

Obtaining Documentation and Submitting a Service Request


Password Recovery for Cisco Nexus 1000V


Revised: June 3, 2013
Part Number: OL-19426-02

This document describes how to recover a lost network administrator password.

Contents

This document includes the following sections:

Creating a New Network Administrator Password

Related Documentation

Obtaining Documentation and Submitting a Service Request

Creating a New Network Administrator Password

This section describes how to recover a lost password. This section includes the following topics:

Flow Chart: Password Recovery with a Single VSM

Flow Chart: Password Recovery with Dual VSMs

Verifying User Privileges

Creating a Password when You Have Network-Admin Privileges

Creating a New Password by Booting from the CD-ROM on the Active VSM

Flow Chart: Password Recovery with a Single VSM

The following flow chart (see Figure 1) is designed to guide you through the password recovery process for a VSM that is not in high availability mode. After completing each procedure, return to the flow chart to make sure that you complete all required procedures in the correct sequence.

Figure 1 Password Recovery with a Single VSM

Flow Chart: Password Recovery with Dual VSMs

The following flow chart (see Figure 2) is designed to guide you through the password recovery process for VSMs that are in high availability mode. After completing each procedure, return to the flow chart to make sure you that complete all required procedures in the correct sequence.

Figure 2 Password Recovery with Dual VSMs

Verifying User Privileges

You can verify that your username has network admin privileges that enable you to create a new password.

BEFORE YOU BEGIN

Before beginning this procedure, you know or do the following:

You are logged in to the CLI in EXEC mode.

DETAILED STEPS

 
Command
Purpose

Step 1 

show user-account

Example:

n1000v# show user-account
user:admin
  this user account has no expiry date
  roles:network-admin 
user:adminbackup
  this user account has no expiry date
  roles:network-operator 
user:test
  this user account has no expiry date
  roles:network-operator 

n1000v#

Displays usernames and their roles.

Only users with the network-admin role are permitted to change the network administrator password.

Creating a Password when You Have Network-Admin Privileges

You can create a network administrator password when you have network-admin privileges.

BEFORE YOU BEGIN

Before beginning this procedure, you know or do the following:

You are logged in to the CLI in EXEC mode.

Your username must have network-admin privileges.
To verify your privileges, use the "Verifying User Privileges" procedure.

SUMMARY STEPS

1. config t

2. username admin password new password

3. exit

4. copy running-config startup-config

DETAILED STEPS

 
Command
Purpose

Step 1 

config t

Example:

n1000v# config t

n1000v(config)#

Places you into CLI global configuration mode.

Step 2 

username admin password <new password>

Example:

n1000v(config)# username admin password <new password>

Changes the network admin password in the running configuration.

Step 3 

exit

Example:

n1000v(config)# exit

n1000v#

Exits global configuration mode and returns you to EXEC mode.

Step 4 

copy running-config startup-config

Example:

n1000v# copy running-config startup-config

Saves the running configuration persistently through reboots and restarts by copying it to the startup configuration.

Creating a New Password by Booting from the CD-ROM on the Active VSM

You can create a new password if you cannot start a session on the device with a username that has network-admin privileges. In this case, you must create the network administrator password by booting the Cisco Nexus 1000V from the CD-ROM.

BEFORE YOU BEGIN

Before beginning this procedure, you know or do the following:

Make sure that the VM is booting from the CD-ROM. For more information, see your VMware documentation.


Caution This procedure disrupts all traffic on the device. All connections to the device will be lost for 2 to 3 minutes.


Step 1 Power off the VSM which is powered on.

Step 2 Open the VSM console and map the iso file.

Step 3 In the Edit Settings for the VSM window, under hardware select CD/DVD drive and select the connect at power on checkbox.

Step 4 Under the Options tab, select Boot Options and select the Force BIOS Setup checkbox.

Step 5 Power on the VM and change the boot order to boot from CD-ROM. Press F10 to save and exit.

Select Install Nexus 1000V and go to vsh shell.


Note It may take up to 5 minutes for the VM to power on.


Step 6 Create a new password.

switch(boot)# config terminal
switch(boot-config)# admin-password new_password
switch(boot-config)# exit
 
   

Step 7 Load the mz image.

In the following example, the image filename is nexus-1000v-mz.4.0.4.SV1.1.bin:

switch(boot)# load bootflash:nexus-1000v-mz.4.0.4.SV1.1.bin
load_isanimg: entry
load_isanimg: uri_info:0x80c8460
load_isanimg: type:0x8
Uncompressing system image: bootflash:/nexus-1000v-mz.4.0.4.SV1.1.bin
 
   
Load plugins that defined in image conf: /isan/plugin_img/img.conf
Loading plugin 0: core_plugin...
 
   
User Access verification
switch login:
 
   

Step 8 Log in to the VSM CLI, using the new administrator password.

User Access Verification
n1000v login: admin
Password:
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyrights to certain works contained in this software are owned by other third parties 
and used and distributed under license. Certain components of this software are licensed 
under the GNU General Public License (GPL) version 2.0 or the GNU Lesser General Public 
License (LGPL) Version 2.1. A copy of each such license is available at
http:/www.opensource.org/licenses/gpl-2.0.php and
http:/www.opensource.org/licenses/lgpl-2.1.php
n1000v#
 
   

Step 9 Save the running configuration to the startup configuration so that the new password persists across reboots and restarts.

n1000v# copy running-config startup-config
[#######################################] 100%
n1000v#
 
   

Step 10 Using your VMware documentation, restore the VM boot settings so that it boots from the hard disk.

You have completed this procedure and restored the admin user password. If needed, you can now create a new password using the "Creating a Password when You Have Network-Admin Privileges" procedure.


Related Documentation

Cisco Nexus 1000V includes the following documents available on Cisco.com:

General Information

Cisco Nexus 1000V Release Notes, Release 4.0

Install and Upgrade

Cisco Nexus 1000V Software Installation Guide, Release 4.0

Cisco Nexus 1000V Virtual Ethernet Module Software Installation Guide, Release 4.0

Configuration Guides

Cisco Nexus 1000V License Configuration Guide, Release 4.0

Cisco Nexus 1000V Getting Started Guide, Release 4.0

Cisco Nexus 1000V Interface Configuration Guide, Release 4.0

Cisco Nexus 1000V Layer 2 Switching Configuration Guide, Release 4.0

Cisco Nexus 1000V Port Profile Configuration Guide, Release 4.0

Cisco Nexus 1000V Quality of Service Configuration Guide, Release 4.0

Cisco Nexus 1000V Security Configuration Guide, Release 4.0

Cisco Nexus 1000V System Management Configuration Guide, Release 4.0

Cisco Nexus 1000V High Availability and Redundancy Reference, Release 4.0

Reference Guides

Cisco Nexus 1000V Command Reference, Release 4.0

Cisco Nexus 1000V MIB Quick Reference

Troubleshooting and Alerts

Cisco Nexus 1000V Troubleshooting Guide, Release 4.0

Cisco Nexus 1000V Password Recovery Guide

Cisco NX-OS System Messages Reference

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.