VMware/vSphere/vimcmd

From Omnia
Revision as of 21:29, 4 May 2015 by Kenneth (talk | contribs) (→‎Managing ESXi without the VI client)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Managing ESXi without the VI client

List VMs and VMIDs:

vimcmd vmsvc/getallvms

Manage Power:

vim-cmd vmsvc/power.getstat [VMID]
vim-cmd vmsvc/power.shutdown [VMID]
vim-cmd vmsvc/power.off [VMID]
vim-cmd vmsvc/power.on [VMID]

VM Registration:

vim-cmd solo/registervm /vmfs/volumes/datastore2/DC05/DC05.vmx
vim-cmd vmsvc/unregister [VMID]

VM Messages:

vim-cmd vmsvc/message [VID]

Create VMDK:

mkfstools -i ../../datastore1/DC05/DC05.vmdk ../DC05/DC05.vmdk

Resources: