哪些 ESXCLI 命令可用來檢視主機硬體組態、儲存裝置資訊和虛擬交換器資訊

Summary: 下列文章假裝提供某些 ESXCLI 命令的相關資訊,這些命令可用來收集特定 ESXi 元件中的組態相關資訊,例如主機硬體組態、儲存裝置資訊和虛擬交換器資訊等。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

您應該透過 putty 工作階段或 DCUI 存取 ESXi 主機,才能發出 ESXCLI 命令。
若要檢視 vSphere 環境的硬體組態,請使用下列 ESXCLI 命令來檢視 ESXi 主機上的時間和日期:
 

 esxcli hardware clock get 

硬體時脈取得

檢視主機上的 CPU 數目。您必須按下空白鍵才能捲動輸出。完成後,按 q 退出實用程式。 

esxcli hardware cpu list | less

硬體 CPU 清單

在此範例中,我們搜尋了 vmnic2。

若要檢視 vSphere 環境的儲存組態,請發出下列 ESXCLI 命令:

若要檢視主機可用的 VMFS 範圍數量:

esxcli storage vmfs extent list

ESXCLI 命令
若要檢視 SCSI 主機匯流排配接卡。

esxcli storage core adapter list

核心配接卡清單

若要檢視 SCSI 路徑統計資料。

esxcli storage core path stats get


SCSI 路徑統計資料
檢視目前連線至 ESXi 主機的 LUN 清單。

esxcli storage core device list


查看引導分區和每個主機可用的數據存儲。 

esxcli storage filesystem list

檔案系統清單

若要檢視 vSphere 環境的虛擬交換器組態,請發出下列 ESXCLI 命令:

若要檢視 DNS 伺服器的 IP 位址。 
 

esxcli network ip dns server list

IP 位址 DNS 伺服器

若要檢視實體 NIC

esxcli network nic list


實體 NIC

檢視主機有兩個標準交換器可供使用。

esxcli network vswitch standard list

 標準交換器

可檢視可用的分散式交換器。

esxcli network vswitch dvs vmware list | more


分散式交換器

檢視標準交換器連接埠群組。
 

esxcli network vswitch standard portgroup list

標準交換器連接埠群組

檢視主機上的 VMkernel 介面。

esxcli network ip interface list | less

 VMkernel 介面

檢視主機上 VMkernel 介面的 IP 位址和子網路遮罩。

esxcli network ip interface ipv4 get

VMkernel 介面

檢視主機上 VMkernel 介面的預設閘道位址。
 

esxcli network ip route ipv4 list 

VMkernel 介面

Affected Products

VMware ESXi
Article Properties
Article Number: 000204754
Article Type: How To
Last Modified: 09 Dec 2024
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.