vim-cmd solo/registervm path_to_vmx_file
vim-cmd vmsvc/unregister vmid
vim-cmd vmsvc/destroy vmid
esxcli vm process list
vim-cmd vmsvc/getallvms
vim-cmd vmsvc/get.snapshot vmid
vim-cmd vmsvc/snapshot.create vmid snapshot_name
vim-cmd vmsvc/snapshot.remove vmid
vim-cmd vmsvc/power.getstate vmid
vim-cmd vmsvc/get.summary vmid |grep uptimeSeconds
vim-cmd vmsvc/power.on vmid
vim-cmd vmsvc/power.shutdown vmid
vim-cmd vmsvc/power.shutdown vmid
esxcli vm process kill –w world_id
vim-cmd vmsvc/power.off vmid
vim-cmd vmsvc/power.reboot vmid
vim-cmd vmsvc/power.reset vmid
vim-cmd vmsvc/tools.upgrade vmid
vim-cmd vmsvc/get.guest vmid |grep -m 1 "ipAddress = \""
for i in $(esxcfg-nics -l | awk '{print $1}' | tail -n +2); do esxcli network nic get -n $i; done
vim-cmd hostsvc/advopt/view Syslog.Remote.Hostname | grep -i "value =" | awk -F'"' '{print $2}'
vim-cmd hostsvc/advopt/view Syslog.Remote.Port | grep "value =" | sed -e 's/^.*value = \([^ ,]*\).*$/\1/'
vim-cmd hostsvc/advopt/view Syslog.Local.DatastorePath | grep -i "value =" | awk -F'"' '{print $2}'
vim-cmd vmsvc/get.tasklist <VMID>
vim-cmd vimsvc/task_info <TaskNr>
See the number in the “vim.Task …. ” line
vsish -e get /memory/comprehensive
Comprehensive { Physical memory estimate:12454784 KB Given to VMKernel:12454784 KB Reliable memory:0 KB Discarded by VMKernel:1580 KB Mmap critical space:0 KB Mmap buddy overhead:3084 KB Kernel code region:18432 KB Kernel data and heap:14336 KB Other kernel:1421360 KB Non-kernel:120036 KB Reserved memory at low addresses:59900 KB Free:10875956 KB }