如何恢复 Nexus 5000 交换机上丢失的网络管理员密码

Summary: 本文介绍如何恢复 Nexus 5000 交换机上丢失的网络管理员密码。

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

事实:
Cisco Nexus 5000 交换机步骤


您可以使用以下两种方法之一恢复网络管理员密码:
  • 在具有网络管理员权限的用户名的 CLI 中
  • 通过关闭后再打开交换机

方法 1:使用具有网络管理员权限的
CLI如果您可以使用具有网络管理员权限的用户名登录到交换机,请执行以下步骤:
  1. 验证您的用户名是否具有网络管理员权限。
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
  1. 如果您的用户名具有网络管理员权限,请分配新的网络管理员密码。
switch# configure terminal
switch(config)# username admin password 
switch(config)# exit
switch#
  1. 保存配置。
switch# copy running-config startup-config



方法 2:关闭关闭后再打开交换机。
如果无法在具有网络管理员权限的交换机上启动会话,则必须通过重新打开交换机电源来恢复网络管理员密码。

此过程会中断交换机上的所有流量!

您不能从 Telnet 或 SSH 会话恢复管理员密码。您必须有权访问本地控制台连接。


要通过关闭开关电源来恢复网络管理员密码,请执行以下步骤:

  1. 在主管模块的控制台端口上建立终端会话。
  2. 关闭交换机,然后再打开交换机。
  3. 当交换机开始 Cisco NX-OS 软件引导顺序以进入引导提示模式时,从控制台端口会话按 Ctrl-B 键序列。
Ctrl-B
switch(boot)#
  1. 重置网络管理员密码。
switch(boot)# configure terminal
switch(boot-config)# admin-password 
switch(boot-config)# exit
switch(boot)#
  1. 显示“bootflash:”内容以查找 Cisco NX-OS 软件映像文件。
switch(boot)# dir bootflash:
  1. 加载 Cisco NX-OS 系统软件映像。在以下示例中,系统映像文件名是 nx-os.bin:
switch(boot)# load bootflash:nx-os.bin
  1. 使用新的管理员密码登录到交换机。
switch login: admin
Password: 
  1. 重置新密码以确保它也是 SNMP 密码。
switch# configure terminal
switch(config)# username admin password 
switch(config)# exit
switch#
  1. 保存配置。
switch# copy running-config startup-config

Additional Information

相关文章:
Cisco 文章:Nexus 5000 CLI 配置指南此超链接会将您带往 Dell Technologies 之外的网站。

Affected Products

Networking, Switches
Article 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.