在 ACM 中更新正確 ESX 主機密碼的 IDPA 程序

Summary: 此程序會引導您在 IDPA ACM 機器中更新正確的 ESX 主機密碼。

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.

Symptoms

首先,應驗證所有 ESX 主機上的「root」使用者密碼。

使用者可以依照以下程序重設 ESXi 預設密碼:

  1. 使用 ssh 以根與目前已知密碼連線至 ESXi。
  2. 執行 dcui 命令。
  3. 按 F2 進行 ESXi 自訂。
  4. 使用目前的登入資料登入。
  5. 選取設定密碼以變更根密碼。
  6. Ctrl + c 以結束 DCUI 畫面。
密碼也可以使用「passwd root」命令手動變更。

您可以登入 ESX 主機並執行此命令:passwd root

它會要求您輸入密碼並確認。

如果 ESX 密碼未同步且與所有 ESX 主機上的密碼不相符,可能會導致升級問題、ACM 首頁顯示紅色驚嘆號和其他各種問題。

此 KB 程序會引導您在 ACM 中更新此密碼。

Cause

Resolution

確認 ESX 主機的密碼後 請在「InfrastructureComponents.xml」
中進行適當的變更這可以透過
ACM 上的「sync_Switch_Server_ESX_Passwords.sh」工具完成:

同步 ESX 伺服器密碼:

將目錄變更為指令檔的位置:


# cd /usr/local/dataprotection/customscripts/tools 

#./sync_Switch_Server_ESX_Passwords.sh -d -I <ESX-1-ip-address> -P “<password>” -I <ESX-2-ip-address> -P “<password>” -I <ESX-3-ip-address> -P “<password>”

範例:

#./sync_Switch_Server_ESX_Passwords.sh -d -I 192.168.1.10 -P “abc123” -I 192.168.1.11 -P “abc123” -I 192.168.1.12 -P “abc123”

 

其中:
ESXi 主機 1 為:192.168.1.10
新密碼為 ABC123

ESXi 主機 2 為:192.168.1.11
新密碼為 ABC123

請注意,如果所有 ESX 主機上的密碼不相符,可能會導致升級問題、ACM 首頁顯示紅色驚嘆號和其他各種問題。

這不會變更主機上的密碼,但會使用已設定的新密碼更新 ACM 上的組態檔案。

 

./sync_Switch_Server_ESX_Passwords.sh [-h] #for 說明

                                      [-d] #for 啟用除錯

                                      [-i] <> SERVER_IP #for 設定伺服器 IP 為金鑰

                                      [-p] <> SERVER_PASSWORD #for 設定伺服器密碼                               

                                      [-W] <> SWITCH_PASSWORD #for 設定交換器密碼

                                      [-I] <> ESX_IP #for 將 esx IP 設定為金鑰

                                      [-P] <> ESX_PASSWORD #for 設定 ESX 密碼
 

Additional Information

若要在 ACM 中手動更新新的 ESXi 密碼:

以「root」使用者身分登入 ACM。

1: 前往組態目錄:cd /usr/local/dataprotection/var/configmgr/server_data/config

2:開啟「InfrastructureComponents.xml」檔案進行編輯並進行適當的變更:vi InfrastructureComponents.xml
3:將 <密碼 isEncrypted> 旗標變更為 false:  <password isEncrypted=“false”>
4:以明碼格式輸入密碼:
    <ESXiHosts>
        <ESXi>
            <ipAddress>10.60.37.61</ipAddress>
            <password isEncrypted=“false”>Enter_clear_text_password_here</password>
        </ESXi>
    </ESXiHosts>

對所有主機進行變更,然後將 dataprotection_webapp 服務重新開機。

5: 執行: 服務dataprotection_webapp重新啟動
這會以加密格式將更新的密碼變更回來。

便條:如果您正在部署或升級程序,請勿重新啟動此服務,因為這可能會導致問題。

此外,我們也可以在此檔案中更新目前的 vCenter 密碼,然後執行 vCenter 密碼同步指令檔,以更新componentcredentials.xml內正確的 vCenter 密碼。

如果使用者想要變更 IDPA vCenter 根使用者密碼,則可以透過 vCenter CLI 進行。
使用者也可以從 https://vcenterip:5480/ URL 變更 vCenter 根密碼。
變更 vCenter 根密碼後,使用者必須依照以下程序,在 ACM 中同步 vCenter 密碼:

  1. 將 sync_vcenter_password.sh 指令檔複製到 ACM。
  2. 將此指令檔的權限變更為可執行檔: chmod +x sync_vcenter_password.sh
  3. 將此指令檔的權限變更為可執行檔: chmod +x sync_vcenter_password.sh
  4. 等待指令檔完成其操作。
注意:如果 vcenter 密碼已變更,也應在 Avamar 中更新,以避免內部 IDPA 備份發生問題。
 

更新 Avamar 中的 vCenter 登入資料:

變更 vCenter 根密碼後,請登入 Avamar UI 並設定 vCenter 用戶端密碼。
管理 -> 選取 vCenter 網域 -> 在用戶端上按一下滑鼠右鍵 -> 按一下「編輯」 -> 變更密碼。

Affected Products

Integrated Data Protection Appliance Family

Products

PowerProtect Data Protection Software, Integrated Data Protection Appliance Family, Integrated Data Protection Appliance Software
Article Properties
Article Number: 000168145
Article Type: Solution
Last Modified: 11 Feb 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.