Useful command Line Options for VMWare Management console

Useful command Line Options for VMWare Management console

Useful command Line Options:

1) List path and names of registered VM on the present host
[root@vesxsrv ~]#vmware-cmd -l
/vmfs/volume/vmfslabel/VMName/VMName.vmx
/vmfs/volume/vmfslabel/VMName2/VMName2.vmx


2) Get the power status of VM
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx getstate
getstate() = on
or
getstate() = off
getstate() = suspended
getstate() = stuck


3) Restart VM
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx reset trysoft


4) Start VM
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx start


5) Shutdown VM
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx stop trysoft
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx stop hard


6) Suspend VM
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx suspend


7) Check VM snapshot
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx hassnapshot


8) Create VM Snapshot
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx createsnapshot name description quiesce memory


9) Revert to Previous snapshot
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx revertsnapshot


10) Remove previously created snapshots
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx removesnapshots


11) Register VM
[root@vesxsrv ~]#vmware-cmd -s register /vmfs/volume/vmfslabel/VMName/VMName.vmx 


12) Unregister VM
[root@vesxsrv ~]#vmware-cmd -s unregister /vmfs/volume/vmfslabel/VMName/VMName.vmx 


13) Answer
[root@vesxsrv ~]#vmware-cmd /vmfs/volume/vmfslabel/VMName/VMName.vmx answer




FOLLOW :-  
       


0 comments :

Post a Comment