VMware Cloud Community
bbsdimas
Contributor
Contributor

vmware-cmd in esxi4

how i can shutdown guest os in esxi4 from console?

0 Kudos
1 Reply
lamw
Community Manager
Community Manager

ESXi does not have vmware-cmd but you can utilize the vCLI which does provide for remote version of the vmware-cmd and you'll shutdown in similar fashion as the traditional Service Console's version of vmware-cmd

/usr/bin/vmware-cmd --server <esxi_host> --username <username> --password <password> </vmfs/volumes/<some_datastore/vm.vmx> stop soft

Use vmware-cmd -l to locate the VM in question and pass in the path to its .vmx file. Remember to do a proper shutdown, VMware Tools must be installed, else you'll need to do "stop hard"

Take a look at the vCLI documentation for more examples:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos