見出し画像

ESXi上からracadmコマンドを使ってiDRACの情報を拾う

質問を受けたので手元の環境で試した時の備忘録。

ESXiのバージョンは8.0u2
iDRACのFirmwareバージョンは6.10

  • ESXiがiDRACポートとOS内部から通信できるようにするため、iDRAC Service Moduleをダウンロードしてインストールする

  • ESXiからracadmコマンドを実行できるようにiDRAC Toolをダウンロードしてインストールする

  • 1及び2で取得したファイルをESXi上のデータストアに保管

  • ESXiにsshでログイン

  • 試しにracadmコマンドを打ってみる。racadmはインストールしていないのでracadmコマンドが見つからない。

[root@ESX:~] racadm getsysinfo
-sh: racadm: not found
  • 3でアップロードしたファイルを確認する

[root@ESX:~] cd /vmfs/volumes/datastore/tmp/
[root@ESX:/vmfs/volumes/5cade42b-c8b3dfpe-e2eb-2f6e396a0730/tmp] ls
Dell-iDRACTools-Web-ESXi.VIB-11.1.0.0-5294_A00.zip
ISM-Dell-Web-5.4.0.0-3644.VIB-ESX8i-Live_A00.zip
  • iDRAC Toolをインストールする

[root@ESX:/vmfs/volumes/5cade42b-c8b3dfpe-e2eb-2f6e396a0730/tmp]] esxcli software vib install -d /vmfs/volumes/datastore1/tmp/Dell-iDRACTools-Web-SXi.VIB-11.1.0.0-5294_A00.zip
Installation Result
   Message: Operation finished successfully.
   VIBs Installed: DEL_bootbank_racadm_11.1.0.0.5294-DEL.700.0.0.15843807
   VIBs Removed:
   VIBs Skipped:
   Reboot Required: false
   DPU Results:
  • iDRAC Service Moduleをインストールする

  • これでESX上のUSB NICが構成されてIP(169.254.1.2/24)が付与される。ここからiDRACに内部インターフェース(169.254.1.1/24)経由でアクセスできるようになる


[root@ESX:/vmfs/volumes/5cade42b-c8b3dfpe-e2eb-2f6e396a0730/tmp] esxcli software vib install -d /vmfs/volumes/datastore1/tmp/ISM-Dell-Web-5.4.0.0-3644.VIB-ESX8i-Live_A00.zip 
Installation Result
   Message: Operation finished successfully.
   VIBs Installed: DEL_bootbank_dellism_5.4.0.0.3644-1OEM.800.1.0.20613240
   VIBs Removed:
   VIBs Skipped:
   Reboot Required: false
   DPU Results:
  • pingを打って、内部インターフェース経由でiDRACから応答があるかを確認

[root@ESX:/vmfs/volumes/5cade42b-c8b3dfpe-e2eb-2f6e396a0730/tmp] ping 169.254.1.1
PING 169.254.1.1 (169.254.1.1): 56 data bytes
64 bytes from 169.254.1.1: icmp_seq=0 ttl=64 time=1.359 ms
64 bytes from 169.254.1.1: icmp_seq=1 ttl=64 time=0.622 ms
64 bytes from 169.254.1.1: icmp_seq=2 ttl=64 time=0.592 ms

--- 169.254.1.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.592/0.858/1.359 ms
  • racadmコマンドで内部インターフェース経由でシステム情報を拾えることを確認

[root@ESX:/vmfs/volumes/5cade42b-c8b3dfpe-e2eb-2f6e396a0730/tmp] racadm -r 169.254.1.1 -u root -p calvin getsysinfo
Security Alert: Certificate is invalid - self-signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.

RAC Information:
RAC Date/Time           = Sun Jun 14 06:34:19 1998

Firmware Version        = x.xx.xx.xx
Firmware Build          = 03
Last Firmware Update    = 05/18/2024 09:16:29
Hardware Version        = 0.01
MAC Address             = 58:a5:1a:5e:87:92
SVC Tag                 = xxxxxxx

Common settings:
Register DNS RAC Name   = 0
DNS RAC Name            = iDRAC-xxxxxxx
Current DNS Domain      =
Domain Name from DHCP   = Enabled

IPv4 settings:
Enabled                 = 1
Current IP Address      = xx.xx.xx.xx
Current IP Gateway      = xx.xx.xx.xx
Current IP Netmask      = xx.xx.xx.xx
DHCP Enabled            = 0
Current DNS Server 1    = xx.xx.xx.xx
Current DNS Server 2    = 0.0.0.0
DNS Servers from DHCP   = Enabled

IPv6 settings:
Enabled                 = 1
Current IP Address 1    = ::
Current IP Gateway      = ::
Autoconfig              = 1
Link Local IP Address   = fe80::7c:2852:79dc:c77b/64
Current IP Address 2    = ::
Current IP Address 3    = ::
Current IP Address 4    = ::
Current IP Address 5    = ::
Current IP Address 6    = ::
Current IP Address 7    = ::
Current IP Address 8    = ::
Current IP Address 9    = ::
Current IP Address 10   = ::
Current IP Address 11   = ::
Current IP Address 12   = ::
Current IP Address 13   = ::
Current IP Address 14   = ::
Current IP Address 15   = ::
DNS Servers from DHCPv6 = Enabled
Current DNS Server 1    = ::
Current DNS Server 2    = ::

System Information:
System Model            = PowerEdge R740
System Revision         = I
System BIOS Version     = x.xx.xx
Service Tag             = xxxxxxx
Express Svc Code        = xxxxxxxxx
Host Name               = ESX
OS Name                 = Dell-VMware ESXi
OS Version              = 8.0 Update 2 Build-22380479 (A00)
Power Status            = ON
Fresh Air Capable       = Yes
RollupStatus            = Error

Watchdog Information:
Recovery Action         = None
Present countdown value =  seconds
Initial countdown value =  seconds

System Thermal Information:
EstimatedSystemAirflow  =  23 CFM
EstimatedExhaustTemperature =  38 Degrees Centigrade

Embedded NIC MAC Addresses:
NIC.Integrated.1-2-1    Ethernet                = 24:6E:91:A0:7F:31
NIC.Integrated.1-4-1    Ethernet                = 24:6E:91:A0:7F:33
NIC.Integrated.1-3-1    Ethernet                = 24:6E:91:A0:7F:32
NIC.Integrated.1-1-1    Ethernet                = 24:6E:91:A0:7F:30

いいなと思ったら応援しよう!