Skip to main content
Solved

NCLI command line

  • Aug 19, 2020 4:24 PM UTC
  • 5 replies
  • 9095 views

Forum|alt.badge.img

What are the commands to shutdown and delete guest VMs?

Best answer by Sergei Ivanov

It cannot be done with ncli, but can be done with acli:

To do a graceful guest shutdown: acli vm.guest_shutdown <vm_name> (requires NGT on the VM)

To power off a VM: acli vm.off <vm_name>

To delete a VM: acli vm.delete <vm_name>

View original
This topic has been closed for replies.

5 replies

Sergei Ivanov
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • Answer
  • Aug 19, 2020 4:29 PM UTC

It cannot be done with ncli, but can be done with acli:

To do a graceful guest shutdown: acli vm.guest_shutdown <vm_name> (requires NGT on the VM)

To power off a VM: acli vm.off <vm_name>

To delete a VM: acli vm.delete <vm_name>


Sergei Ivanov
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • Aug 19, 2020 4:35 PM UTC

You can explore the acli commands by typing “acli” and clicking Enter, then you can click Tab twice and it will give you all the possible options of the commands. Then, for example, if you type in the acli prompt “vm.” and hit tab twice again it will show you all the possible commands for VM.


Forum|alt.badge.img
  • Author
  • Adventurer
  • Aug 19, 2020 6:37 PM UTC

thank you

 


Forum|alt.badge.img
  • Author
  • Adventurer
  • Aug 19, 2020 6:38 PM UTC

Instead of a name, can I use the UUID of the VM?

 

What does NGT stand for?


Sergei Ivanov
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • Aug 20, 2020 8:01 AM UTC

Yes, UUID can be also used.

NGT stands for Nutanix Guest Tools. You can read about it here: https://portal.nutanix.com/page/documents/details?targetId=Web-Console-Guide-Prism-v5_17:man-nutanix-guest-tool-c.html