ESXi - vim-cmd

From Da Nerd Mage Wiki
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>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
  • Power on a VM
    • vim-cmd vmsvc/power.on [VMID]
      • VMID: Found in list from vim-cmd vmsvc/getallvms
  • 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
    • vim-cmd vmsvc/power.off [VMID]
      • VMID: Found in list from vim-cmd vmsvc/getallvms
      • Does not require that VM have VMware Tools installed
  • Reset a VM
    • vim-cmd vmsvc/power.reset [VMID]
      • VMID: Found in list from vim-cmd vmsvc/getallvms
  • Suspend a VM
    • vim-cmd vmsvc/power.suspend [VMID]
      • VMID: Found in list from vim-cmd vmsvc/getallvms