Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vmware:esxi5:cli [2024/09/27 14:23] jsvmware:esxi5:cli [2024/09/27 14:40] (current) js
Line 1: Line 1:
 ====== ESXi 5.x CLI ====== ====== ESXi 5.x CLI ======
  
-===== List Versions ===== +For a complete list of all esxcli command enter: 
-<code bash>escli system version get</code>+<code bash>esxcli esxcli command list</code>
  
 +[[https://www.virten.net/wp-content/uploads/2014/12/esxcli-550-command-reference.txt|List of cli commands from virten.net.]]
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +\\ 
 +Examples:
 +==== List Versions ====
 +<code bash>esxcli system version get</code>
  
-===== List all Datastores ===== 
-<code bash> </code> 
  
 +==== Get Hostname ====
 +<code bash>esxcli system hostname get </code>
  
  
-===== Register existing VM =====+==== List IP Interfaces ==== 
 +<code bash>esxcli network ip interface ipv4 get</code> 
 + 
 + 
 +==== List all Datastores ==== 
 +<code bash>esxcli storage filesystem list</code> 
 +or 
 +<code bash>esxcli storage vmfs extent list</code> 
 + 
 + 
 + 
 +==== Register existing VM ====
 <code bash>vim-cmd solo/registervm /vmfs/volumes/xxxxxxx/vmname/vmname.vmx</code> <code bash>vim-cmd solo/registervm /vmfs/volumes/xxxxxxx/vmname/vmname.vmx</code>
  
  
  
-===== List all VMs =====+==== List all VMs ====
 <code bash>vim-cmd vmsvc/getallvms</code> <code bash>vim-cmd vmsvc/getallvms</code>
 +or
 +<code bash>esxcli vm process list</code>
  
  
  
-===== Power On VM =====+ 
 +==== Power On VM ====
 <code bash>vim-cmd vmsvc/power.on <id></code> <code bash>vim-cmd vmsvc/power.on <id></code>
  
  
  
-===== Get Power Status =====+==== Get Power Status ====
 <code bash>vim-cmd vmsvc/power.getstate <id></code> <code bash>vim-cmd vmsvc/power.getstate <id></code>
  
  
-===== Get DNS Servers =====+==== Get DNS Servers ====
 <code bash>esxcli network ip dns server list</code> <code bash>esxcli network ip dns server list</code>
  
  
- +==== List IPMI Devices ==== 
- +<code bash>esxcli hardware ipmi sdr list</code>
-<code bash> </code>+