如何從 PowerEdge 伺服器上的 VMware ESXi 取得 iDRAC IP 位址

Summary: 如何透過 VMware ESXi 主機取得 PowerEdge 14G 伺服器的 iDRAC IP 位址。

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.

Symptoms

本文提供不同的方法,可直接從 VMware ESXi 主機取得 PowerEdge 伺服器的 iDRAC IP 位址。如果您無法實體存取伺服器、前 LCD 顯示器,或是安裝 Open Manage Server Administrator 的停機時間,這些方法將很實用。  在已安裝 VIB 的 OEM 安裝上,可直接在 OpenManage Server Administrator 中檢查 iDRAC 的 IP。下列解決方案不需要安裝 VIB。

Cause

透過 VMware ESXi 主機取得 PowerEdge 14G 伺服器的 iDRAC IP 位址。

Resolution

使用 localcli 或 esxcli

在此範例中,我們使用 PowerEdge R740XD 和 VMware ESXi 6.5 來執行命令列。
  1. 開啟 VMware ESXI 系統的 SSH 服務。
  2. 使用 root 帳戶和密碼登入 SSH。
  3. 執行以下命令列,以取得 iDRAC IP 位址:
localcli hardware ipmi bmc get
 
SLN317309_en_US__1image(10033)
取得 iDRAC IP 位址

esxcli hardware ipmi bmc get
 
SLN317309_en_US__2image(10034)
iDRAC IP 會顯示在 IPv4 位址行 
 

使用 Web 型企業管理 - WBEM

ESXi 主機上的共用資訊模型 (CIM) 介面提供一種方法,可透過 Web-Based Enterprise Management (WBEM) 通訊協定,以遠端監控主機硬體的健全狀況。它以標準 HTTP(S) API 為基礎,可在主機和管理工作站之間進行安全的 SSL/TLS 防護驗證與通訊。使用您偏好的方法連線至主控台後,請執行下列命令:

1.VMware ESXi 6.0:  

enum_instances OMC_IPMIIPProtocolEndpoint root/cimv2 |grep IPv4AddressIPv4Address = 192.168.0.121
 

   在 ESXi 上執行相同命令將會傳回錯誤:

enum_instances OMC_IPMIIPProtocolEndpoint root/cimv2 |grep -i IPv4Address
error: enumInstances No data received from server

 

2.VMware ESXi 6.5:
從 ESXi 6.5 和更新版本開始,VMware 推出了名為「wbem」的新命名空間,作為 esxcli 的延伸,可控制 sfcbd 和 wsman 等服務。從 ESXi 6.5 和更新版本開始,sfcdb 和 wsman 預設為停用,因為 wbem 預設為 false。當已安裝 OEM 供應商的 VIB 時,wbem 服務會自動啟用。例如,當在 ESXi 6.5 上安裝 Dell OpenManage Systems Management 軟體時,您可能會看到 sfcbd 和 wsman 等服務會自動啟動。
 

若要在 Vmware ESXi 6.5 上啟用 wbem,請使用下列命令,然後再試一次。您現在應該可以成功看到指派給 iDRAC 伺服器的 IP 位址。
 

esxcli system wbem set -e 1 (這會啟用主機上的 wbem)
enum instances OMC IPMIIPProtocalEndpoint root/cimv2
>> IPv4AddressIPv4Address = 192.168.0.121

SLN317309_en_US__4Webm

IPv4Address = 192.168.0.121

Additional Information

Affected Products

PowerEdge R240, PowerEdge R340, PowerEdge R640, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R840, PowerEdge R940, PowerEdge R940xa, PowerEdge T140

Products

VMware ESXi 4.x, VMware ESXi 5.x, VMware ESXi 6.5.X, VMware ESXi 6.7.X, VMware ESXi 6.x
Article Properties
Article Number: 000143172
Article Type: Solution
Last Modified: 23 Nov 2024
Version:  8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.