ESXi - vim-cmd
Jump to navigation
Jump to search
Some Handy Commands
- List available VMs
vim-cmd vmsvc/getallvms
- Check the power state of a VM
vim-cmd vmsvc/power.getstate [VMID]
- VMID: Found in list from
vim-cmd vmsvc/getallvms
- VMID: Found in list from
- Power on a VM
vim-cmd vmsvc/power.on [VMID]
- VMID: Found in list from
vim-cmd vmsvc/getallvms
- VMID: Found in list from
- Power off a VM
vim-cmd vmsvc/power.shutdown [VMID]
- VMID: Found in list from
vim-cmd vmsvc/getallvms
- Requires that VM have VMware Tools installed
- VMID: Found in list from
vim-cmd vmsvc/power.off [VMID]
- VMID: Found in list from
vim-cmd vmsvc/getallvms
- Does not require that VM have VMware Tools installed
- VMID: Found in list from
- Reset a VM
vim-cmd vmsvc/power.reset [VMID]
- VMID: Found in list from
vim-cmd vmsvc/getallvms
- VMID: Found in list from
- Suspend a VM
vim-cmd vmsvc/power.suspend [VMID]
- VMID: Found in list from
vim-cmd vmsvc/getallvms
- VMID: Found in list from