Top 10 Nutanix System Administrator Commands

Organizations are adopting nutanix and growing business because they are only focused on their business not on IT-infra, because 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.

Okay, Lets focus on top 10 nutanix system administrator commands those are very very essential and mostly use by a Nutanx Administrator

No.#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

No.#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/

No.#3 Show cluster status and running services
Want to know nutanix cluster and running services status, Issue following command from any CVM

cvm$ cluster status

No.#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

No.#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

No.#6 Check controller VM (CVM), Hypervisor and IPMI IP Address of running nutanix cluster

To check controller VM (CVM) IP addressees on nutanix cluster 
cvm$ svmips
To check Hypervisor IP addresses on nutanix cluster
cvm$ hostips
To check IPMI IP addresses on nutanix cluster
cvm$ ipmiips

No.#7 Check 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
cvm$ upgrade_status
To show Hypervisor upgrade progress/status
cvm$> host_upgrade status

No.#8 Check AOS & AHV version 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

No.#9 Get 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”.

No.#10 Know your 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.

#Enjoy Nutanix with HyperHCI 🙂

One thought on “Top 10 Nutanix System Administrator Commands

Add yours

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Powered by WordPress.com.

Up ↑