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!

2 thoughts on “Nutanix : Tip of the Week #1”

Leave a Reply

Your email address will not be published. Required fields are marked *