Index Server Commandline Tools from VMWare |
|
vmware-cmd Command line tool |
|
|
|
| vmware-cmd VM Management in the console |
|
vmware-cmd -l
Sample: vmware-cmd -l
List path and names of .registered VM vmx files on the present host
Very important!
Use the path with the UUID (vmfslabel) where requested in vmware-cmd use vmware-cmd -l command to retrieve the UUID |
list |
|
vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx getstate
Sample: getstat
Retrieve power state of the VM: off, on, suspended, stuck |
getstat |
|
vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx reset trysoft
Sample: reboot
Reboot the VM. First try a nice shutdown, then if necessary force a shutdown before reboot |
reboot |
|
vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx start
Sample: startPower on the VM |
start |
|
vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx stop trysoft
vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx stop hard
Sample: shutdown
Shutdown/halt the VM. First try a nice shutdown, then if necessary force a shutdown. Finally power off. |
shutdown |
|
vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx suspend
Sample: suspendSuspend the VM |
suspend |
| vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx hassnapshot
Sample: hassnapshots Query if VM has a snapshot |
snapshot |
| vmware-cmd createsnapshot name description quiesce memory
Sample: createsnapshot Quiesce will quiesce file system writes
Memory will grab the memory state (will lose pings during this) |
createsnapshot |
| vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx revertsnapshot
Sample: reverttosnapshot Revert to previous created snapshot (you loose the current VM state!) |
revertsnapshot |
| vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx removesnapshots
Sample: removesnapshot Remove previous created snapshots (you keep the current VM state!) |
removesnapshots |
| vmware-cmd -s register vmfs/volume/vmfslabel/VMName/VMName.vmx
Sample: register Register VM (add to inventory) |
register |
| vmware-cmd -s unregister vmfs/volume/vmfslabel/VMName/VMName.vmx
Sample: unregister Unregister VM (add to inventory) |
unregister |
| vmware-cmd vmfs/volume/vmfslabel/VMName/VMName.vmx answer
Sample: answer
answer pending request for userinput |
answer | |