Vmware CLI CommandsPosted: September 10, 2010
The world of VMware is so cool. Sometime though you need access under the covers to do various tasks.
VMWare has a hole load of command at the Linux level. Be warned these can do some nasty things so be very careful.
SSH on to the VMware server. If you don’t have SSH access download the Veam Root Access that will allows SSH access the server.
A list of commands these are for v3.5 only:
vmware-cmd is the command to runn followed by many commands, the list is the ones that I have used
vmware-cmd -l – shows all the virtual machines running and the vmx file locations
vmware-cmd /path to vmx file getstate – returns the state of the guest
vmware-cmd /path to vmx file stop – powers the guest down
vmware-cmd /path to vmx file stop hard – as stop except dumps the server
vmware-cmd /path to vmx file start
vmware-cmd /path to vmx file reset
vdf -h – will show the disk usage of the virtual guests
Commands for vsphere4 :
Will be here in a few days