Difference between revisions of "ESXi - 6.7 esxcli Command List"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''esxcli''' command set is based in a "namespace" model. It's kinda weird & convoluted.
The '''esxcli''' command set is based in a "namespace" model. It's kinda weird & convoluted.


The good news:  This command set seems to cover nearly everything the WebUI does.  Which means that you can do these things without hunting through a GUI. (You just get to hunt through this documentation instead... :{{!}} )
= Usage =
= Usage =
  Usage: esxcli [options] {namespace}+ {cmd} [cmd options]
  Usage: esxcli [options] {namespace}+ {cmd} [cmd options]
Line 13: Line 14:


= The NameSpaces =
= The NameSpaces =
== device ==
Device manager commands
---
[[ESXi - 6.7 esxcli device|device]]
---


* '''add'''
* [[ESXi - 6.7 esxcli device{{!}}device]]
: Add a device to enable a software device driver.
::Device manager commands
:* <code>esxcli device add '''-d IDENTIFIER [-i ADDRESS]'''</code>
* [[ESXi - 6.7 esxcli esxcli{{!}}esxcli]]
=== alias ===
::Commands that operate on the esxcli system itself allowing users to get additional information.
* '''get'''
* [[ESXi - 6.7 esxcli fcoe{{!}}fcoe]]
: Display hardware location info for a device alias.
::VMware Fibre Channel over Ethernet (FCoE) commands.
:* <code>esxcli device alias get '''-n ALIAS'''</code>
* [[ESXi - 6.7 esxcli graphics{{!}}graphics]]
* '''list'''
::VMware graphics commands.
: List device aliases.
* [[ESXi - 6.7 esxcli hardware{{!}}hardware]]
:* <code>esxcli device alias list</code>
::VMKernel hardware properties and commands for configuring hardware.
=== driver ===
* [[ESXi - 6.7 iscsi{{!}}iscsi]]
* '''list'''
::VMware Internet Small Computer Systems Interface (iSCSI) commands.
: Show driver status for specific devices.
* [[ESXi - 6.7 network{{!}}network]]
:* <code>esxcli device driver list</code>
::Operations that pertain to the maintenance of networking on an ESX host. This includes a wide variety of commands to manipulate virtual networking components (vswitch, portgroup, etc) as well as local host IP, DNS and general host networking settings.
=== software ===
* [[ESXi - 6.7 nvme{{!}}nvme]]
* '''add'''
::VMware NVMe driver esxcli extensions
: Add a device to enable a software device driver.
* [[ESXi - 6.7 rdma{{!}}rdma]]
:* <code>esxcli device software add '''-d IDENTIFIER [-i ADDRESS]'''</code>
::Operations that pertain to remote direct memory access (RDMA) protocol stack on an ESX host.
* '''list'''
* [[ESXi - 6.7 sched{{!}}sched]]
: List software devices.
::VMKernel system properties and commands for configuring scheduling related functionality.
:* <code>esxcli device software list</code>
::(Really...  If you say so...  Don't look like that to me...)
* '''remove'''
* [[ESXi - 6.7 software{{!}}software]]
: Remove a software device.
::Manage the ESXi software image and packages
:* <code>esxcli device software remove '''-d IDENTIFIER [-i ADDRESS]'''</code>
* [[ESXi - 6.7 storage{{!}}storage]]
 
::VMware storage commands.
'''IDENTIFIER'''
* [[ESXi - 6.7 system{{!}}system]]
: Device identifier from the device specification for the software device driver. Valid input is in reverse domain name format (e.g. com.company.device...). (required)
::VMKernel system properties and commands for configuring properties of the kernel core system and related system services.
'''ADDRESS'''
* [[ESXi - 6.7 vm{{!}}vm]]
: Unique number to address this instance of the device.
::A small number of operations that allow a user to Control Virtual Machine operations.
'''ALIAS'''
* [[ESXi - 6.7 vsan{{!}}vsan]]
: Alias to lookup (required)
::VMware vSAN commands
 
[[Category:ESXi]]
== esxcli ==
[[Category:WIP]]
Commands that operate on the esxcli system itself allowing users to get additional information.
* esxcli
** command '''list'''
**: List all of the esxcli commands.
:**: <code>esxcli esxcli command list</code>
 
== fcoe ==
VMware FCOE commands.
== graphics ==
VMware graphics commands.
== hardware ==
VMKernel hardware properties and commands for configuring hardware.
== iscsi ==
VMware iSCSI commands.
== network ==
Operations that pertain to the maintenance of networking on an ESX host. This includes a wide variety of commands to manipulate virtual networking components (vswitch, portgroup, etc) as well as local host IP, DNS and general host networking settings.
== nvme ==
VMware NVMe driver esxcli extensions
== rdma ==
Operations that pertain to remote direct memory access (RDMA) protocol stack on an ESX host.
== sched ==
VMKernel system properties and commands for configuring scheduling related functionality.
== software ==
Manage the ESXi software image and packages
== storage ==
VMware storage commands.
== system ==
VMKernel system properties and commands for configuring properties of the kernel core system and related system services.
== vm ==
A small number of operations that allow a user to Control Virtual Machine operations.
== vsan ==
VMware vSAN commands

Latest revision as of 19:11, 10 February 2022

The esxcli command set is based in a "namespace" model. It's kinda weird & convoluted.

The good news:  This command set seems to cover nearly everything the WebUI does.  Which means that you can do these things without hunting through a GUI. (You just get to hunt through this documentation instead... :| )

Usage

Usage: esxcli [options] {namespace}+ {cmd} [cmd options]

Options:
  --formatter=FORMATTER
                        Override the formatter to use for a given command. Available formatter:
                        keyvalue, csv, xml
  --debug               Enable debug or internal use options
  --version             Display version information for the script
  -?, --help            Display usage information for the script

The NameSpaces

Device manager commands
Commands that operate on the esxcli system itself allowing users to get additional information.
VMware Fibre Channel over Ethernet (FCoE) commands.
VMware graphics commands.
VMKernel hardware properties and commands for configuring hardware.
VMware Internet Small Computer Systems Interface (iSCSI) commands.
Operations that pertain to the maintenance of networking on an ESX host. This includes a wide variety of commands to manipulate virtual networking components (vswitch, portgroup, etc) as well as local host IP, DNS and general host networking settings.
VMware NVMe driver esxcli extensions
Operations that pertain to remote direct memory access (RDMA) protocol stack on an ESX host.
VMKernel system properties and commands for configuring scheduling related functionality.
(Really... If you say so... Don't look like that to me...)
Manage the ESXi software image and packages
VMware storage commands.
VMKernel system properties and commands for configuring properties of the kernel core system and related system services.
A small number of operations that allow a user to Control Virtual Machine operations.
VMware vSAN commands