Home » VMware » 2V0-621 v.2 » Which command would successfully power on the virtual machine?
An administrator wants to power on a virtual machine (VM) while connected to an ESXi host using SSH. The VM has the following Name and ID: VM Name = SQL001
VMID = 12345
Which command would successfully power on the virtual machine?
A. vim-cmd vmsvc/power.on 12345
B. vim-cmd vmsvc/power.on SQL001
C. vmware-vim-cmd vmsvc/power.on 12345
D. vmware-vim-cmd vmsvc/power.on SQL001
Correct Answer: A
Explanation/Reference:
ESXi 4.x, 5.x and 6.0
To power on a virtual machine from the command line:
1.List the inventory ID of the virtual machine with the command: vim-cmd vmsvc/getallvms |grep <vm name>
Note: The first column of the output shows the vmid.
2.Check the power state of the virtual machine with the command: vim-cmd vmsvc/power.getstate <vmid>
3.Power-on the virtual machine with the command:
vim-cmd vmsvc/power.on <vmid>
Reference:
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1038043