Nutanix : Tip of the Week #1
This post is the first of a weekly series of short articles on Nutanix, providing hopefully useful tips.
If you need to change passwords on your Nutanix cluster (Host, IPMI and CVM) you can use these below scripts to do it quickly.
Change password on all CVM:
for i in
svmips
;do echo “–$i–“;ssh nutanix@$i ‘echo -e “NewPassword\nNewPassword” | sudo passwd nutanix’;done
Change password on all Host:
for i in
hostips
;do echo “–$i–“;ssh root@$i ‘echo -e “NewPassword\nNewPassword” | passwd root’;done
Change IPMI password on all host ESXi:
for i in
hostips
;do echo “–$i–“;ssh root@$i ‘echo -e “NewPassword\nNewPassword” | ./ipmitool user set password 2’;done
Change IPMI password on all host AHV:
for i in
hostips
;do echo “–$i–“;ssh root@$i ‘echo -e “NewPassword\nNewPassword” | ipmitool user set password 2’;done
Change prism admin account password:
ncli user reset-password user-name=”admin” password=”NewPassword”
All command needs to be performing from a CVM part of Nutanix cluster
We hope you like it!
Hello,
Regarding https://next.nutanix.com/installation-configuration-23/modifying-passwords-in-nutanix-environment-33538 the CVM password is sync accross all CVM no need to do that
Raphaël
Nice post! You have written useful and practical information. Take a look at my web blog FQ4 I’m sure you’ll find supplementry information about Thai-Massage you can gain new insights from.