ESXCLI command to power ON or OFF VMs

   ESXCLI command to power ON or OFF VMs



Find the VM ID using:

 vim-cmd vmsvc/getallvms 

Using ID get VM power state:

 vim-cmd vmsvc/power.getstate <ID>

Power ON VM:

vim-cmd vmsvc/power.on<ID>

Power OFF VM:

vim-cmd vmsvc/power.off<ID>

No comments:

Post a Comment

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...