IDPA Procedure to update the correct ESX Host password in ACM
Summary: This procedure walks you through updating the correct ESX host password in IDPA ACM machine.
Symptoms
User can follow below process to reset ESXi default passwords:
- Connect to ESXi using ssh as root with current known password.
- Run the dcui command.
- Press F2 to do ESXi customization.
- Log in using current credentials.
- Select Configure Password to change the root password.
- Ctrl + c to exit DCUI screen.
You can log in to the ESX host and run this command: passwd root
It will ask you enter the password and confirm the same.
If the ESX password is out of sync and if it does not match on All ESX hosts, it can cause issues with Upgrades, ACM homepage showing red Exclamation and various other issues.
This KB procedure walks you through updating this password in ACM.
Cause
None
Resolution
This can be done via the 'sync_Switch_Server_ESX_Passwords.sh' tool on ACM:
Sync ESX servers password:
Change directory to location of script:
# 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>"
Example:
#./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"
Where:
ESXi host 1 is: 192.168.1.10
new password is abc123
ESXi host 2 is: 192.168.1.11
new password is abc123
Please note, if the password does not match on All ESX hosts, it can cause issues with Upgrades, ACM homepage showing red Exclamation and various other issues.
This does not change the password on the host, but will update the configuration files on ACM with new password that has already been set.
./sync_Switch_Server_ESX_Passwords.sh [-h] #for help
[-d] #for enabling debug
[-i] <SERVER_IP> #for setting server IP as key
[-p] <SERVER_PASSWORD> #for setting server password
[-W] <SWITCH_PASSWORD> #for setting switch password
[-I] <ESX_IP> #for setting esx IP as key
[-P] <ESX_PASSWORD> #for setting esx password
Additional Information
Log in to ACM as "root" user.
1: Traverse to the config directory: cd /usr/local/dataprotection/var/configmgr/server_data/config
2: Open the "InfrastructureComponents.xml" file to edit and make the appropriate changes: vi InfrastructureComponents.xml
3: Change the <password isEncrypted> flag to false: <password isEncrypted="false">
4: Enter the password in clear text format:
<ESXiHosts>
<ESXi>
<ipAddress>10.60.37.61</ipAddress>
<password isEncrypted="false">Enter_clear_text_password_here</password>
</ESXi>
</ESXiHosts>
Make the changes for all hosts and then restart the dataprotection_webapp service.
5: Run: service dataprotection_webapp restart
This will change the updated password back in encrypted format.
Note: Do not restart this service if you are in the middle of a deployment or an Upgrade process as it can cause issues.
If user wants to change the IDPA vCenter root user password then they can do so through vCenter CLI.
User can also change the vCenter root password from https://vcenterip:5480/URL as well.
Once the vCenter root password is changed, user must follow below process to sync the vCenter password in ACM:
- Copy the sync_vcenter_password.sh script to ACM.
- Change the permission of this script to executable: chmod +x sync_vcenter_password.sh
- Change the permission of this script to executable: chmod +x sync_vcenter_password.sh
- Wait for script to get complete its operation.
Updating the vCenter credentials in Avamar:
Once the vCenter root password is changed, login to Avamar UI and set the vCenter client password.
Administration -> Select vCenter domain -> right click on the client-> click edit -> change the password.