ESXCLI Commands

ESXCLI Commands

esxcli hardware Commands

Command Description Options Help
hardware bootdevice list List the boot device order, if available, for this host.
--help
Show the help message.
hardware clock get Display the current hardware clock time.
--help
Show the help message.
hardware clock set Set the hardware clock time. Any missing parameters will default to the current time.
--day | -d
Day
--hour | -H
Hour
--min | -m
Minute
--month | -M
Month
--sec | -s
Second
--year | -y
Year
--help
Show the help message.
hardware cpu list List all of the CPUs on this host.
--help
Show the help message.
hardware cpu cpuid get Get subset of CPUID fields for a CPU (deprecated, use: esxcli hardware cpu cpuid raw list).
--cpu | -c
The ID of the CPU to query for CPUID data. (required)
--help
Show the help message.
hardware cpu cpuid raw list Get all CPUID fields for a CPU.
--cpu | -c
The ID of the CPU to query for all CPUID data. (required)
--help
Show the help message.
hardware cpu global get Get properties that are global to all CPUs.
--help
Show the help message.
hardware cpu global set Set properties that are global to all CPUs.
--hyperthreading | -t
Enable or disable hyperthreading (required)
--help
Show the help message.
hardware ipmi bmc get Get IPMI Baseboard Management Controller (BMC) properties.
--help
Show the help message.
hardware ipmi bmc set Set IPMI Baseboard Management Controller (BMC) properties. Changes take effect immediately.
--os-hostname | -H
OS hostname that BMC will report.
--os-name | -n
OS name that BMC will report.
--os-version | -v
OS system version that BMC will report.
--help
Show the help message.
hardware ipmi fru get Get IPMI Field Replaceable Unit (FRU) device details.
--ignore-missing | -i
Do not fail command if ipmi device is not present
--include-all-sensors | -a
Include all SDR entries including those for entities that do not exist, or have no health state.
--include-pretty-raw | -p
Include a hex dump where each byte is separated by a space and its value is presented with two hexidecimal characters using a leading zero if needed
--include-raw | -r
Include a hex dump where the value of each byte is presented as hexidecimal characters joined without spaces
--node | -n
Specify which IPMI device (0..3) to query, defaults to 'all' for all ipmi nodes
--help
Show the help message.
hardware ipmi fru list List IPMI Field Replaceable Unit (FRU) inventory.
--ignore-missing | -i
Do not fail command if ipmi device is not present
--include-all-sensors | -a
Include all SDR entries including those for entities that do not exist, or have no health state.
--include-pretty-raw | -p
Include a hex dump where each byte is separated by a space and its value is presented with two hexidecimal characters using a leading zero if needed
--include-raw | -r
Include a hex dump where the value of each byte is presented as hexidecimal characters joined without spaces
--node | -n
Specify which IPMI device (0..3) to query, defaults to 'all' for all ipmi nodes
--help
Show the help message.
hardware ipmi sdr get Get IPMI Sensor Data Repository (SDR) properties.
--ignore-missing | -i
Do not fail command if ipmi device is not present
--include-all-sensors | -a
Include all SDR entries including those for entities that do not exist, or have no health state.
--include-pretty-raw | -p
Include a hex dump where each byte is separated by a space and its value is presented with two hexidecimal characters using a leading zero if needed
--include-raw | -r
Include a hex dump where the value of each byte is presented as hexidecimal characters joined without spaces
--node | -n
Specify which IPMI device (0..3) to query, defaults to 'all' for all ipmi nodes
--help
Show the help message.
hardware ipmi sdr list List IPMI Sensor Data Repository.
--formatter | -f
Override the formatter to use for a given command. Available formatter: simple ,table.
--ignore-missing | -i
Do not fail command if ipmi device is not present
--include-all-sensors | -a
Include all SDR entries including those for entities that do not exist, or have no health state.
--include-pretty-raw | -p
Include a hex dump where each byte is separated by a space and its value is presented with two hexidecimal characters using a leading zero if needed
--include-raw | -r
Include a hex dump where the value of each byte is presented as hexidecimal characters joined without spaces
--node | -n
Specify which IPMI device (0..3) to query, defaults to 'all' for all ipmi nodes
--help
Show the help message.
hardware ipmi sel clear Clear IPMI System Event Log.
--ignore-missing | -i
Do not fail command if ipmi device is not present
--include-all-sensors | -a
Include all SDR entries including those for entities that do not exist, or have no health state.
--include-pretty-raw | -p
Include a hex dump where each byte is separated by a space and its value is presented with two hexidecimal characters using a leading zero if needed
--include-raw | -r
Include a hex dump where the value of each byte is presented as hexidecimal characters joined without spaces
--node | -n
Specify which IPMI device (0..3) to query, defaults to 'all' for all ipmi nodes
--help
Show the help message.
hardware ipmi sel get Get IPMI System Event Log (SEL) properties.
--ignore-missing | -i
Do not fail command if ipmi device is not present
--include-all-sensors | -a
Include all SDR entries including those for entities that do not exist, or have no health state.
--include-pretty-raw | -p
Include a hex dump where each byte is separated by a space and its value is presented with two hexidecimal characters using a leading zero if needed
--include-raw | -r
Include a hex dump where the value of each byte is presented as hexidecimal characters joined without spaces
--node | -n
Specify which IPMI device (0..3) to query, defaults to 'all' for all ipmi nodes
--help
Show the help message.
hardware ipmi sel list List IPMI System Event Log.
--ignore-missing | -i
Do not fail command if ipmi device is not present
--include-all-sensors | -a
Include all SDR entries including those for entities that do not exist, or have no health state.
--include-pretty-raw | -p
Include a hex dump where each byte is separated by a space and its value is presented with two hexidecimal characters using a leading zero if needed
--include-raw | -r
Include a hex dump where the value of each byte is presented as hexidecimal characters joined without spaces
--node | -n
Specify which IPMI device (0..3) to query, defaults to 'all' for all ipmi nodes
--help
Show the help message.
hardware memory get Get information about memory.
--help
Show the help message.
hardware pci list List all of the PCI devices on this host.
--class | -c
Filter the PCI devices based on their hexadecimal Class ID
--mask | -m
Mask the filter provided by the class flag
--help
Show the help message.
hardware pci pcipassthru list Display PCI device passthru configuration.
--help
Show the help message.
hardware pci pcipassthru set Configure PCI device for passthrough.
--apply-now | -a
If this flag is present, the change takes effect immediately; otherwise the change takes effect after a host reboot. This flag causes the device to be unbound from its native driver andbound to the VMkernel's PCI passthrough driver(or vice-versa depending on the setting of the --enable parameter).
--device-id | -d
The bus ID of the PCI device (e.g., 0000:0a:00.1). (required)
--enable | -e
Enable or disable passthrough of the device. (required)
--help
Show the help message.
hardware platform get Get information about the platform
--help
Show the help message.
hardware power policy get Display the current power policy.
--help
Show the help message.
hardware power policy set Set the power policy.
--id | -i
Power policy numeric id
--name | -n
Power policy name
--short-name | -s
Power policy short name
--help
Show the help message.
hardware power policy choices list List the power policies.
--help
Show the help message.
hardware smartcard certificate list Certificates from inserted smart cards.
--slot | -s
List certificates from only the token in the given slot.
--help
Show the help message.
hardware smartcard info get Information about the smart card subsystem.
--help
Show the help message.
hardware smartcard slot list Information about connected smart card readers.
--help
Show the help message.
hardware smartcard token list Information about inserted smart cards.
--slot | -s
List tokens only for the given slot.
--help
Show the help message.
hardware tpm tag clear Clear the TPM's tag.
--help
Show the help message.
hardware tpm tag get Get the TPM's tag.
--help
Show the help message.
hardware tpm tag set Set the TPM's tag.
--data | -d
The tag data to store in the TPM in hexadecimal byte encoding. Format: a string matching the regular expression [0-9a-fA-F]{1,1024}. (required)
--help
Show the help message.
hardware trustedboot get Information about the status of trusted boot. (TPM, DRTM status)
--help
Show the help message.
hardware usb passthrough device disable Disable usb passthrough
--device | -d
The device you wish to disable passthrough for. Please enter the Bus#,Dev#,vendorId and productId of the device in the format Bus#:Dev#:vendorId:productId using hexadecimal values(as shown by the list command) (required)
--help
Show the help message.
hardware usb passthrough device enable Enable usb passthrough
--device | -d
The device you wish to enable passthrough for. Please note that this command only makes the device eligible for passthrough. The device can be connected to the VM only if usbarbitrator is running. See /etc/init.d/usbarbitrator status to check the status of the usbarbitrator. Please enter the information of the device in the format Bus#:Dev#:vendorId:productId using hexadecimal values(as shown by the list command) (required)
--help
Show the help message.
hardware usb passthrough device list List usb devices and their passthrough status
--help
Show the help message.