Skip to main content
Solved

NCLI command line

  • August 19, 2020
  • 5 replies
  • 8535 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>

This topic has been closed for replies.

5 replies

Sergei Ivanov
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • 108 replies
  • Answer
  • August 19, 2020

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
  • 108 replies
  • August 19, 2020

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
  • 4 replies
  • August 19, 2020

thank you

 


Forum|alt.badge.img
  • Author
  • Adventurer
  • 4 replies
  • August 19, 2020

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
  • 108 replies
  • August 20, 2020

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