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

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "The '''esxcli''' command set is based in a "namespace" model. It's kinda weird & convoluted. = 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 -?...")
 
Line 16: Line 16:
Device manager commands
Device manager commands


* device '''add'''
* '''add'''
*: Add a device to enable a software device driver.
: Add a device to enable a software device driver.
:*: <code>esxcli device add '''-d IDENTIFIER [-i ADDRESS]'''</code>
:* <code>esxcli device add '''-d IDENTIFIER [-i ADDRESS]'''</code>
:* alias '''get'''
=== alias ===
:*: Display hardware location info for a device alias.
* '''get'''
::*: <code>esxcli device alias get '''-n ALIAS'''</code>
: Display hardware location info for a device alias.
:* alias '''list'''
:* <code>esxcli device alias get '''-n ALIAS'''</code>
:*: List device aliases.
* '''list'''
::*: <code>esxcli device alias list</code>
: List device aliases.
:* driver '''list'''
:* <code>esxcli device alias list</code>
:*: Show driver status for specific devices.
=== driver ===
::*: <code>esxcli device driver list</code>
* '''list'''
:* software '''add'''
: Show driver status for specific devices.
:*: Add a device to enable a software device driver.
:* <code>esxcli device driver list</code>
::*: <code>esxcli device software add '''-d IDENTIFIER [-i ADDRESS]'''</code>
=== software ===
:* software '''list'''
* '''add'''
:*: List software devices.
: Add a device to enable a software device driver.
::*: <code>esxcli device software list</code>
:* <code>esxcli device software add '''-d IDENTIFIER [-i ADDRESS]'''</code>
:* software '''remove'''
* '''list'''
:*: Remove a software device.
: List software devices.
::*: <code>esxcli device software remove '''-d IDENTIFIER [-i ADDRESS]'''</code>
:* <code>esxcli device software list</code>
* '''remove'''
: Remove a software device.
:* <code>esxcli device software remove '''-d IDENTIFIER [-i ADDRESS]'''</code>
 
'''IDENTIFIER'''
'''IDENTIFIER'''
: 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)
: 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)

Revision as of 20:53, 8 February 2022

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

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

Device manager commands

  • add
Add a device to enable a software device driver.
  • esxcli device add -d IDENTIFIER [-i ADDRESS]

alias

  • get
Display hardware location info for a device alias.
  • esxcli device alias get -n ALIAS
  • list
List device aliases.
  • esxcli device alias list

driver

  • list
Show driver status for specific devices.
  • esxcli device driver list

software

  • add
Add a device to enable a software device driver.
  • esxcli device software add -d IDENTIFIER [-i ADDRESS]
  • list
List software devices.
  • esxcli device software list
  • remove
Remove a software device.
  • esxcli device software remove -d IDENTIFIER [-i ADDRESS]

IDENTIFIER

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)

ADDRESS

Unique number to address this instance of the device.

ALIAS

Alias to lookup (required)

esxcli

Commands that operate on the esxcli system itself allowing users to get additional information.

  • esxcli
    • command list
      List all of the esxcli commands.
    • esxcli esxcli command list

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