If a host cannot be managed via vCenter or from vSphere client, you can still use the CLI (on the host itself or via network using SSH or vSphere CLI/RCLI) to partially manage the VMs on the host.
For this to work you must have already enabled the local console, Tech Support Mode and/or SSH access:
Once logged in, you can use these commands to control the VMs. Note that there are differences between ESX and ESXi.
Command | ESXi | ESX |
---|---|---|
List the registered VMs | vmware-vim-cmd vmsvc/getallvms | vmware-cmd -l |
Get power state of VM | vmware-vim-cmd vmsvc/power.getstate vmid | vmware-cmd path-to-VMX-file getstate |
Power on a VM | vmware-vim-cmd vmsvc/power.on vmid | vmware-cmd path-to-VMX-file start |
« ‹ | January 2025 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |