Showing posts with label Nutanix. Show all posts
Showing posts with label Nutanix. Show all posts

Tuesday, December 7, 2021

How to check Nutanix AOS Version

 Description:

How to check the current version of the Nutanix AOS installed in your cluster or on an individual node.

Solution:

For the cluster, log on to any Controller VM (CVM) using SSH and enter the below nCLI command:

nutanix@cvm$ ncli cluster version

The version is displayed in the following format: distro_name-version-stable (e.g. euphrates-5.6.1-stable).

You can also use the following nCLI command:

nutanix@cvm$ ncli cluster info

In the output of the above command, look for the "Cluster Version" field.

Log in to the Prism web console. Click the user icon on the right, and select About Nutanix.

The version displays in the following format: Version number (e.g. Version 5.6).

For versions 4.0 and later, the displayed output includes license information.

For node, log in to the node for which you need to find the AOS version.

You can use one of the following commands to check the version installed:

nutanix@cvm$ cat /etc/nutanix/release_version

nutanix@cvm$ tail -1 /home/nutanix/config/upgrade.history

The version will display in the following format: el6-release-distro_name-number-stable-md_hash (e.g. el7.3-release-euphrates-5.5.9.1-stable-a528xxxxxx - LTS).

The (optional) abbreviation “LTS” designates whether the version release is a Long Term Support (LTS) Release. If there is no LTS designation, then the release is a Short Term Support (STS) Release.

Note: You can also check the version before adding a node to an existing cluster.

Checking which nodes is the prism leader in Nutanix

Description: 

  • All nodes in the cluster will run the Prism service, however only one in the cluster will be the Prism Leader. 
  • The node which held the Prism Leader role had additional PIDs associated with the Prism service as compared to the other nodes. Running 'cluster status' could be used to verify which node had more Prism PIDs. 

Solution: 

  • To determine which node is currently the Prism Leader, run below command from any CVM in the cluster. 
  • Find the node with 'Bootstrap' entry in the output and that will be Prism Leader. 

nutanix@cvm$ allssh jps 
Executing jps on the cluster
================== x.x.2.4 =================
18289 Bootstrap
7954 HyperintMain
17001 Jps
5162 QuorumPeerMain

Tuesday, July 28, 2020

Most common Nutanix commands

Function
Command
Check cluster status cluster status
Check CVM IP addresses svmips
Check host IP addresses hostips
Check IPMI IP addresses ipmiips
Run NCC health check ncc health_checks run_all
Shutdown CVM cvm_shutdown -P now
Check status of the CVM metadata ring nodetool -h 0 ring
Check status of the CVM machines cluster status | grep -v UP   
Discover new cluster nodes ncli cluster discover-nodes