Command Line startup shutdown of VMs

SSH to ESXi  

vim-cmd vmsvc/getallvms

vim-cmd vmsvc/power.getstate <vmid>

vim-cmd vmsvc/power.on <vmid>

or

vim-cmd vmsvc/power.shutdown <vmid>

and if that doesn’t work (e.g. not VMware tools) then

vim-cmd vmsvc/power.off <vmid>

 

You need to have enabled ESXi Shell and SSH server (config, software, Security Profile properties) 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: