VMWARE CLI question how can I start a vm from a command line with putty

If I just have putty to connect to the ESXI server ,  how can I start a VM within the command line ?

what is the exact syntax?

i have slow internet here and cant google stuff fast , and could use the help


THANKS!!
LVL 1
NAMEWITHELD12Asked:
Who is Participating?
 
AbhilashConnect With a Mentor BloggerCommented:
You can run this using SSH

To power on a virtual machine from the command line:
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.

Check the power state of the virtual machine with the command:

vim-cmd vmsvc/power.getstate <vmid>

Power-on the virtual machine with the command:

vim-cmd vmsvc/power.on <vmid>
0
 
NAMEWITHELD12Author Commented:
wow , thanks that completely solved the issue , you really saved me alot of time thanks!!!
0
All Courses

From novice to tech pro — start learning today.