如何在 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.