Nutanix cluster AHV / CVM top 10 commands to check the Nutanix Acropolis Nodes host ip, host id, performance, token ring in the cluster, Nutanix nodes / host detailed information, Remove all existing snapshots on the host, Get the master / Leader Node of the Nutanix cluster, AOS release type LTS or STS etc. Lets explore the Nutanix top commands list is here.
1. Check Nutanix host’s Hostid
To check the Nutanix host id need to run following command on any Nutanix CVM on the cluster.
cvm$ hostid
Read also: Google Nutanix Cloud Platform – GNCP Vs GCP ?
2. Get all Host’s IP Address of the Nutanix cluster
To check the Nutanix all host’s IP Address of the Nutanix cluster to run following command on the cluster.
cvm$ hostips
Read also: Nutanix AHV – Boot VM in BIOS UEFI Mode
3. Get the host upgrading status
If you are upgrading the host’s hypervisor i.e Nutanix AHV, VMware ESXi or Hyper-v and want to check the status of upgrade with detailed information.
Please run following command on any Nutanix CVM on the cluster
cvm$ host_upgrade_status
Read also: What is Nutanix Webhook Explained
4. Get Nutanix cluster token ring
You can check the Nutanix cluster’s ring status and how many nodes are the part of the Nutanix ring.
just need to run follwing command on any Nutanix CVM on the cluster
cvm$ nodetool -h 0 ring
Read also: Nutanix Prism Supports Top 5 Web Browsers
5. Get Nutanix nodes / host detailed information
You can get the nodes / hosts detailed information like uptime, load, gossip protocol is active or not.
Just run following command on any Nutanix CVM on the Nutanix cluster
cvm$ nodetool -h 0 info
Output will be like this:
nutanix@NTNX-1xxxxxxx-A-CVM:10.0.0.19:~$ nodetool -h 0 info Node doesn't have token yet Gossip active : true Load : 1.93 GB Generation No : 70 Uptime (seconds) : 856 Schema version : 0 Heap Memory (MB) : 2139.46 / 2969.63 nutanix@NTNX-xxxxxxxxxx-A-CVM:10.0.0.19:~$
Read also: Nutanix Prism Central : Pro Vs Starter Features
6. Remove all existing snapshots on the host
If you taken the lots of the snapshot of the VMs and want to remove it without any hassle. Just run following command on any Nutanix CVM.
cvm$ nodetool -h 0 clearsnapshot
Read also: Nutanix Inefficient VM : Bully, Zombie, Constrained, Over-provisioned VM’s Trouble-shooting
7. Get the master / Leader Node of the Nutanix cluster
You can who is the Master / Leader nodes of the Nutanix cluster
Just run following command on any Nutanix CVM to Print information on the token ring and the leader nodes:
cvm$ nodetool -h 0 leadership
Output will be like this:
nutanix@NTNX-1xxxxxxxxxxx-A-CVM:10.0.0.19:~$ nodetool -h 0 leadership
Address Status State Load Owns Token Leader LocalReadOnlyReadMode
kV000000PpOWNeHGQLDlIqkk95hXgLmf8BkKmyUW55u8P96f4WPHTWAqWr2j
10.0.0.22 Up Normal 2.05 GB 25.00% 00000000UBFOruvx0EpIcP05UkXSvslgjKACiBg2KGawOkQHxEFKlrUhfPcJ 10.0.0.22 N
10.0.0.19 Up Normal 1.93 GB 25.00% FV000000ir0WtqKAq8rLa8XtRVb4yOx1OzkvLgpa4CZenLmcBHsrmVsRmGby 10.0.0.19 Y
10.0.0.21 Up Normal 1.38 GB 50.00% kV000000PpOWNeHGQLDlIqkk95hXgLmf8BkKmyUW55u8P96f4WPHTWAqWr2j 10.0.0.21 N
nutanix@NTNX-1xxxxxxxxxxx-A-CVM:10.0.0.19:~$
Read also: Change Nutanix Prism Element and Prism Central Password
8. Get performance stats for Cassandra
Nutanix cluster maintain the Cassandra database to maintain the Nutanix metadata of the VMs data.
cvm$ nodetool -h 0 perfstats
Output will be like this:
nutanix@NTNX-1xxxxxxxx-A-CVM:10.0.0.19:~$ nodetool -h 0 perfstats Perf Stats ProtoToThriftRpcReadLatencyMicros 831.100 ProtoToThriftRpcWriteLatencyMicros 612.000 ProtoToThriftRpcRangeScanLatencyMicros NaN ReadLatencyAtPaxosLeaderReaderMicros 135.471 ScanLatencyAtPaxosRangeScannerMicros 0.000 WriteLatencyAtPaxosLeaderWriterMicros NaN WriteLatencyAtReplicaWriteOpMicros NaN OutstandingReqsAtPaxosLeaderReader 0 OutstandingReqsAtPaxosRangeScanner 0 OutstandingReqsAtPaxosLeaderWriter 0 OutstandingReqsAtPaxosReplicaWriteOp 0 OutstandingReqsFromReadsAtPaxosLeaderWriter 0 Commitlog Sync Latency Stats /home/nutanix/data/stargate-storage/disks/BTHC528102N9800NGN/metadata/cassandra/commitlog NaN /home/nutanix/data/stargate-storage/disks/BTHC520103KV800NGN/metadata/cassandra/commitlog 150.000 nutanix@NTNX-1xxxxxxxxx-A-CVM:10.0.0.19:~$
Read aslo: What is Nutanix Prism ?
9. Nutanix AOS Upgrade History
You can also view the upgrade.history file. LTS is shown for LTS releases. For STS releases, just the version string is displayed.
Run following command through any CVM on the cluster
nutanix@cvm$ cat /home/nutanix/config/upgrade.history
10. Determine Nutanix AOS release type LTS or STS
o determine your cluster’s current release type (LTS or STS) from the nCLI command line.
- Is LTS: true indicates an LTS release.
- Is LTS: false indicates an STS release.
cvm$ ncli --version
Output would be like this:
cvm$ ncli --version ncli Version : euphrates-X.xx-stable Changeset ID : 81dd3b Changeset Date : 2019-08-06 10:12:52 -0700 Is LTS : true
Read also: What is Nutanix Degraded Node forwarding state
I hope, you enjoyed the Nutanix cluster AHV / CVM top 10 commands.
Thanks to being with HyperHCI Tech Blog to stay tuned and learn latest and trending technology.!
If you have Nutanix useful commands, just mention in comment section to help other Nutanix geeks.