We’ve recently had a new graduate join our IT Operations department and I was going through one of our regions Nutanix installations and I was asked what are the top 10 commands they should know. That got me thinking, so I put them wrote them down (there are more then 10) and shared them with our new grad and though I would post them here for you all also…….
ncli - Nutanix Command Line Interface for
cluster-wide settings.
acli - Acropolis Command Line Interface for VM
management (AHV).
ncc - Nutanix Cluster Check for health monitoring.
hosted – output the Nutanix hosts ID
hostips – output the host IP addresses in the cluster
host_upgrade_status – output the host upgrade status
during any host hypervisor upgrade activity
nodetool -h 0 ring – output the clusters ring status
and how many nodes are pin the Nutanix cluster ring
nodetool – h 0 info – output the node & host details
e.g. uptime
nodetool -h 0 leadership – output the master node in
the cluster
cvm_shutdown -P now – powers down the cvm your ssh’ed
into
lcm_leader – output which CVM is the LCM leader
genesis restart – restart prism on a cvm
genesis status – check prism status
acli host.list – list all AHV nodes in the cluster
ncli cluster status – checks the cluster status
cluster status | Grep -v UP – validate if CVM
processes are in the UP state
acli vm.list – list all VM’s on the cluster
acli vm.on (vm-name)
– turns on a VM
acli vm.on * - turn on all VM’s in the cluster
acli vm.get (vm -name)
gets information on the VM
acli vm.snapshot_list – lists all VM’s with a
snapshot
ncli host edit id=HOST_ID enable-maintenance-mode=true
– put a CVM into maintenance mode
ncli host edit id=HOST_ID enable-maintenance-mode=false – take a CVM
out of maintenance mode
acli host.enter_maintenance_mode HOST_IP – put a AHV host into maintenance mode
No comments:
Post a Comment