ESXi - 6.7 esxcli hardware

From Da Nerd Mage Wiki
Jump to navigation Jump to search

VMKernel hardware properties and commands for configuring hardware.

bootdevice

  • list
List the boot device order, if available, for this host.
  • esxcli hardware bootdevice list

clock

  • get
Disply the current hardware clock time.
  • esxcli hardware clock get
set
Set the hardware clock time. Any missing parameters will default to the current time.
  • esxcli hardware clock set TIME
TIME
You must specify one of year, month, day, hour, minute or second

cpu

  • list
List all of the CPUs on this host.
  • esxcli hardware cpu list

cpuid

  • get
Get subset of CPUID fields for a CPU (deprecated, use: esxcli hardware cpu cpuid raw list).
  • esxcli hardware cpu cpuid get CPUID

raw

  • list
Get all CPUID fields for a CPU.
  • esxcli hardware cpu cpuid raw list CPUID

global

  • get
Get properties that are global to all CPUs.
  • esxcli hardware cpu global get
set
Set properties that are global to all CPUs.
  • esxcli hardware cpu global set HYPERTHREADING
CPUID
 -c|--cpu=<long>       The ID of the CPU to query for CPUID data. (required)
HYPERTHREADING
 -t|--hyperthreading=<bool>
                       Enable or disable hyperthreading (required)

ipmi

bmc

  • get
Get IPMI Baseboard Management Controller (BMC) properties.
  • esxcli hardware ipmi bmc get
set
Set IPMI Baseboard Management Controller (BMC) properties. Changes take effect immediately.
  • esxcli hardware ipmi bmc set

fru

  • get
Get IPMI Field Replaceable Unit (FRU) device details.
  • esxcli hardware ipmi fru get
list
List IPMI Field Replaceable Unit (FRU) inventory.
  • esxcli hardware ipmi fru list

sdr

  • get
Get IPMI Sensor Data Repository (SDR) properties.
  • esxcli hardware ipmi sdr get
list
List IPMI Sensor Data Repository.
  • esxcli hardware ipmi sdr list

sel

  • clear
Clear IPMI System Event Log.
  • esxcli hardware ipmi sel clear
get
Get IPMI System Event Log (SEL) properties.
  • esxcli hardware ipmi sel get
list
List IPMI System Event Log.
  • esxcli hardware ipmi sel list

memory

  • get
Get information about memory.
  • esxcli hardware memory get

pci

  • list
List all of the PCI devices on this host.
  • esxcli hardware pci list

platform

  • get
Get information about the platform
  • esxcli hardware platform get

power

  • get
Display the current power policy.
  • esxcli hardware power policy get
set
Set the power policy.
  • esxcli hardware power policy set CHOICE

choices

  • list
List the power policies.
  • esxcli hardware power policy choices list
CHOICE
 -i|--id=<long>        Power policy numeric id
 -n|--name=<str>       Power policy name
 -s|--short-name=<str> Power policy short name

smartcard

certificate

  • list
Certificates from inserted smart cards.
  • esxcli hardware smartcard certificate list

info

  • get
Information about the smart card subsystem.
  • esxcli hardware smartcard info get

slot

  • list
Information about connected smart card readers.
  • esxcli hardware smartcard slot list

token

  • list
Information about inserted smart cards.
  • esxcli hardware smartcard token list

tpm

tag

  • get
Get the TPM's tag (from index 0x40000010).
  • esxcli hardware tpm tag get
set
Set the TPM's tag (at index 0x40000010).
  • esxcli hardware tpm tag set DATA
clear
Clear the TPM's tag (at index 0x40000010).
  • esxcli hardware tpm tag clear
DATA
 -d|--data=<str>       The tag data to store in the TPM (with hexadecimal byte encoding).
                       (required)

trustedboot

  • get
Information about the status of trusted boot. (TPM, DRTM status)
  • esxcli hardware trustedboot get

usb

passthrough

device

  • list
List usb devices and their passthrough status
  • esxcli hardware usb passthrough device list
disable
Disable usb passthrough
  • esxcli hardware usb passthrough device disable DEVICE
enable
Enable usb passthrough
  • esxcli hardware usb passthrough device enable DEVICE
DEVICE
 -d|--device=<str>     The device you wish to enable/disable passthrough for.

                       Please enter the information of the device in the format
                       Bus#:Dev#:vendorId:productId using hexadecimal values(as shown by the list
                       command) (required)

                       Please note that the enable 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.