VMware ESXi: Which ESXCLI commands can be used to view Host Hardware, Storage and Virtual Switch

Сводка: The following article provides information about some ESXCLI commands that can be used to gather information about the configuration of the host, for example the Host Hardware Configuration, Storage, and Virtual Switch Information. ...

Данная статья применяется к Данная статья не применяется к Эта статья не привязана к какому-либо конкретному продукту. В этой статье указаны не все версии продуктов.

Инструкции

Access to the ESXi hosts through a putty session or DCUI in order to issue the ESXCLI commands.

To view the time and date on the ESXi host:

 esxcli hardware clock get 

hardware clock get

To view the number of CPUs on the host:

Note: You must press the spacebar to scroll through the output. When done, press q to exit the less utility. 
esxcli hardware cpu list | less

hardware cpu list

To view the Storage Configuration of the vSphere Environment issue the following ESXCLI commands:

To view the number of VMFS extents that are available to the host:

esxcli storage vmfs extent list

esxcli storage vmfs extent list 
To view the SCSI host bus adapters:

esxcli storage core adapter list

core adapter list

To view the SCSI path statistics:

esxcli storage core path stats get


SCSI path statistics
To view a list of LUNs connected to the ESXi host:

esxcli storage core device list


To view the boot partitions and the datastores that are available to each host:

esxcli storage filesystem list

filesystem list

To view the virtual switch configuration of the vSphere environment issue the following ESXCLI commands: 

To view the IP address of the DNS server:
 

esxcli network ip dns server list

IP address DNS server

To view the physical NICs:

esxcli network nic list


physical NICs

To view that two standard switches are available to the host:

esxcli network vswitch standard list

 standard switche

To view the available distributed switches:

esxcli network vswitch dvs vmware list | more


distributed switches

To view the standard switch port groups:
 

esxcli network vswitch standard portgroup list

standard switch port groups

To view the VMkernel interfaces on the host:

esxcli network ip interface list | less

 VMkernel interfaces

To view the IP address and subnet mask of the VMkernel interfaces on the host:

esxcli network ip interface ipv4 get

VMkernel interfaces

To view the default gateway address for the VMkernel interfaces on the host:

esxcli network ip route ipv4 list 

VMkernel interfaces

Затронутые продукты

VMware ESXi
Свойства статьи
Номер статьи: 000204754
Тип статьи: How To
Последнее изменение: 09 Dec 2024
Версия:  3
Получите ответы на свои вопросы от других пользователей Dell
Услуги технической поддержки
Проверьте, распространяются ли на ваше устройство услуги технической поддержки.