VMware/vSphere/vimcmd

From Omnia
(Redirected from Vimcmd)
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: