ESXi - vim-cmd
Revision as of 14:09, 8 February 2022 by Tinker (talk | contribs) (Created page with "= Some Handy Commands = *List available VMs **<code>vim-cmd vmsvc/getallvms</code> *Check the power state of a VM **<code>vim-cmd vmsvc/power.getstate [VMID]</code> ***'''VMID:''' Found in list from <code>vim-cmd vmsvc/getallvms</code> *Power on a VM **<code>vim-cmd vmsvc/power.on [VMID]</code> ***'''VMID:''' Found in list from <code>vim-cmd vmsvc/getallvms</code> *Power off a VM **<code>vim-cmd vmsvc/power.shutdown [VMID]</code> ***'''VMID:''' Found in list from <code>...")
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