Nutanix CE 2.0

Resolving Alerts after Installation in Nutanix CE 2.0, Part II

In the previous article, we discussed the steps to arrive at the main page of your Nutanix CE 2.0 installation and how to resolve alerts. In this article, we will focus on resolving the remaining alerts, specifically those related to the use of default passwords.

Default Passwords and Alerts

—————————

As previously mentioned, there is an ensemble of scripts that run periodically on the cluster, known as Nutanix Cluster Check (NCC). These scripts help identify potential issues and provide recommendations for resolution. When you first log in to your Nutanix CE 2.0 installation, you may encounter alerts related to the use of default passwords.

To resolve these alerts, we need to change the default passwords for all accounts on the cluster. We can do this using a simple command-line script that changes the password for all accounts on the cluster.

Changing Default Passwords

——————————

To change the default passwords for all accounts on the cluster, follow these steps:

1. Open a PowerShell window and connect to your CVM using SSH with the Nutanix account (using the command “ssh [email protected]”).

2. Copy the following lines of code and execute them one by one:

“`

echo -e “CHANGING ALL AHV HOST ROOT PASSWORDS.nPlease input new password: “

read -rs password1

echo “Confirm new password: “

read -rs password2

if [ ” $password1″ == ” $password2″ ]; then

for host in $(hostips); do

echo Host $host

echo $password1 | ssh root@$host “passwd –stdin root”

done

else

echo “The passwords do not match”

fi

“`

These lines of code allow you to change the default passwords for all accounts on the cluster. You will be prompted to enter new passwords for each account. If the passwords match, the command will be executed on each host in the cluster to modify the password for the corresponding account. If the passwords do not match, an error message will be displayed.

Resolving Alerts

——————

Once you have changed the default passwords for all accounts on the cluster, you can mark the alerts as resolved in the Prism Element (PE) interface. To do this, follow these steps:

1. Open the PE interface and navigate to the “Alerts” section.

2. Find the alert related to the use of default passwords and click on it to view the details.

3. In the alert details page, click on the “Resolve” button to mark the alert as resolved.

4. Repeat this process for any remaining alerts related to default passwords.

Conclusion

———-

In this article, we have covered how to resolve alerts related to the use of default passwords after installing Nutanix CE 2.0. We have seen how to change the default passwords for all accounts on the cluster using a simple command-line script and how to mark the alerts as resolved in the PE interface.

In the next article, we will focus on deploying the Prism Central component. Stay tuned!