Organizations are adopting Nutanix and growing their business because they are only focused on their business not on IT-infra. IT-infra is taking care by the Nutanix to manage the Nutanix cluster infra from prism is very easy as child cake so enjoy Nutanix.
Nutanix Top 10 Commands
Lets focus on Nutanix top 10 system administrator commands those are very very essential and mostly use by a Nutanx Administrator.
Command 1 – Build a new nutanix cluster with at least 3 nodes
If you are planning to create new nutanix cluster required at least three nodes for RF-2 cluster – Make sure that all the CVMs, Nodes and IPMI IP addresses are reachable or ping able to each other.
Issue following commands of any controller VM (CVM)
cvm$> cluster -s cvm1_ip_addr,cvm2_ip_addr,cvm3_ip_addr create
Exanpme cluster -s 192.168.10.1,192.168.10.2,192.168.10.3 create
Note: Each CVM IP adddress separeted by comma (,) without space
OR can do same thing to add extra prefix parameters in above command
cvm$> cluster –cluster_name= --cluster_external_ip= --dns_servers= --ntp_servers= --redundancy_factor=2 -s cvm1_IP_addr,cvm2_IP_addr,cvm3_IP_addr, So on.. create
Note: –redundancy_factor parameter has to values 2 and 3
To use –redundancy_factor 2 need at least 3 nodes for build the nutanix cluster, RF-2 keeps one additional copy of master data, if one nodes goes down or in maintenance mode no impact on nutanix cluster
To use –redundancy_factor 3 need atleast 5 nodes for build the nutanix cluster, RF-3 keeps two additional copy of master data, if two nodes goes down or in maintenance mode no impact on nutanix cluster
Command 2 – Start & Stop Nutanix cluster
Planning for any hardware maintenance or relocation of the nutanix nodes need to stop the nutanix cluster for sometime and start again to begin production
To Start Nutanix cluster following command
cvm$ cluster start
To Stop Nutanix cluster following command
cvm$ cluster stop
See nutanix start and stop cluster detailed procedure in refer post link https://hyperhci.com/2019/04/21/how-to-shutdown-nutanix-ahv-cluster-and-start-again/
Command 3 – Show Nutanix cluster status and running services
Want to know nutanix cluster and running services status, Issue following command from any CVM
cvm$ cluster status
Command 4 – Set timezone on Nutanix running cluster
It is very important to set timezone after built Nutanix cluster as your country
cvm$ ncli cluster set-timezone timezone=choose_timezone
Example cvm$ ncli cluster set-timezone timezone=Asia/Kolkata or America/Los_Angeles etc. See worldwide timezone list here https://raw.githubusercontent.com/maxmind/geoip-api-c/master/timezone/timezone.txt
Command 5 – Run Nutanix cluster health check
Need to check nutanix running cluster health status to verify the nutanix health report via email and text document issue following command from any CVM
cvm$ ncc health_checks run_all
Command 6 – Check Nutanix controller VM (CVM), Hypervisor and IPMI IP Address
To check Nutanix controller VM (CVM) IP addressees on nutanix cluster
To check Hypervisor IP addresses on nutanix cluster
To check IPMI IP addresses on nutanix cluster
Command 7 – Check Nutanix AOS and Hypervisor upgrade progress / status
If want to check upgrade progress through command line and what is going on in back end, hit following command from any CVM
To show AOS upgrade progress/status
To show Hypervisor upgrade progress/status
cvm$> host_upgrade status
Command 8 – Check / Get Nutanix AOS & AHV version
Get it through command line ( Through Prism web console GUI refer.. https://hyperhci.com/2019/04/22/check-nutanix-cluster-aos-ahv-ncc-version-from-prism/ )
To show AOS version issue following command
cvm$ cat /etc/nutanix/release_version #Run on particular node
cvm$ allssh cat /etc/nutanix/release_version #Run on entire cluster for all node's CVM
To show AHV version on particular node issue following command
AHV_Host# cat /etc/nutanix-release #Run on particular AHV node/host
To show entire cluster AHV version run following command on any CVM of the nutanix cluster
cvmt$ hostssh cat /etc/nutanix-release
Command 9 – Get Nutanix cluster information
Get Nutanix cluster information like cluster name, cluster UUID, cluster IP address and timezone etc run below command from any CVM
cvm$ ncli cluster info
This is last but not the least command from “nutanix commands pitara”.
Command 10 – Know your Nutanix node’s hardware specification
Get Nutanix node hardware specification like Memory, CPU, Network card, Power supply units, Storage info (HDD,SSD) etc. go through mentioned command
cvm$ allssh ncc hardware_info show_hardware_info
I hope you will rock with above commands and feel special learning experience.
Thanks to being with HyperHCI Tech Blog to stay tuned with latest and trending technology updates.!
Written by HyperHCI Admin
1 thought on “Top 10 Nutanix System Administrator Commands”
Comments are closed.
Very Useful commands.