Takes the password on stdin and will prompt for it if one is not provided. The prompt will not echo the password.
-a/--all: Specifies that all passwords will be changed
-h/--host: Specifies changing the root user's password on the host
-u/--nutanix: Specifies changing the nutanix user's password on an AHV host
-c/--cvm: Specifies changing the nutanix user's password on the CVM
-e/--prism_element: Specifies changing the admin user's password in Prism Elemet
-i/--ipmi: Specifies changing the ADMIN user's password in the IPMI
-r/--cluster: Run against the entire cluster
-n/--nodes: Comma separated list of virtualization host IPs
Logs are located in /home/log/messages on AOS 5.19 and below
Logs are located in /home/log/user_info on AOS 5.20 and above
The password must meet the following complexity requirements:
At least eight characters long
Must not be longer than 16 characters or IPMI will break
At least one lowercase letter
At least one uppercase letter
At least one number
At least one special character
At least four characters differ from the old password
Must not be among the last 5 passwords
Must not have more than 2 consecutive occurrences of a character
cd ~/tmp
wget https://raw.githubusercontent.com/rsoc39/nutanix-change-password/main/change_passwords.sh
bash ./change_passwords.sh
bash ./change_passwords.sh -r -a
bash ./change_passwords.sh -c
bash ./change_passwords.sh --prism_element
bash ./change_passwords.sh --nodes 192.168.5.10,192.168.5.11,192.168.5.12 -h
echo -e 'mypassword\nmypassword' | bash ./change_passwords.sh -r -i
########## ALL CHANGES AND MODIFICATIONS ARE REQUESTED TO FOLLOW THE FOLLOWING STYLING GUIDELINES ##########