|
Á¦ ¸ñ : IPMI over LAN(IPMI ³×Æ®¿÷ Á¢¼Ó) Æ®·¯ºí½´ÆÃ
ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
ÀÛ¼ºÀÏ : 2014.11.28(±Ý)
IPMI ³×Æ®¿÷ ¼³Á¤(IPMI over LAN)À» Çߴµ¥, 1) IPMI IP·Î pingÀÌ ¾ÈµÇ°Å³ª 2) pingÀº µÇ´Âµ¥ ÀÀ´äÀÌ ¾ø´Ù¸é ´ÙÀ½°ú °°Àº °ÍÀ» È®ÀÎÇغÁ¾ß ÇÑ´Ù.
|
# ipmitool -I lan -H 10.10.20.120 -U root fru
Password: <--- ºñ¹Ð¹øÈ£ ÀÔ·Â ÈÄ ¿øÇÏ´Â °á°ú°¡ ³ª¿ÀÁö ¾Ê´Â´Ù¸é?
| |
1. ±âº»ÀûÀ¸·Î È®ÀÎÇÒ °Í
1) IPMIÀÇ IP, Netmask, G/W IP µîÀ» È®ÀÎÇÑ´Ù.
ipmitool -vv ¿É¼ÇÀ¸·Î »ó¼¼ÇÑ °á°ú¸¦ º¼ ¼ö ÀÖ´Ù.
|
# ipmitool -vv -I lan -H 10.10.20.120 -U root power status
Password:
FRU Device Description : Builtin FRU Device (ID 0)
ipmi_lan_send_cmd:opened=[0], open=[4525612]
IPMI LAN host 10.10.20.120 port 623
Sending IPMI/RMCP presence ping packet <-- ÆÐŶÀ» º¸³ÂÀ¸³ª ÀÀ´ä(response packet)ÀÌ ¾øÀ½. ¿¬°á ÀÚü°¡ ¾ÈµÊ
ipmi_lan_send_cmd:opened=[1], open=[4525612]
^C
| |
¼³Á¤ È®ÀÎ ÈÄ ¸ÂÁö ¾ÊÀ¸¸é ¼ÂÆÃÇÑ´Ù.
|
# ipmitool lan print 1
IP Address Source : Static Address
IP Address : 10.10.20.120
Subnet Mask : 255.255.255.0
... »ý·« ...
Default Gateway IP : 10.10.20.1
| |
2) ¹æȺ®¿¡¼ UDP 623Æ÷Æ®¸¦ Â÷´ÜÇ߰ųª IPMI IP´ë¿ªÀÌ Â÷´ÜµÇ¾î ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.
3) LAN access °¡´ÉÇÏ°Ô µÇ¾î ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.
access°¡ disableµÇ¾î ÀÖ´Ù¸é ´ÙÀ½°ú °°ÀÌ ³ª¿Â´Ù.
|
# ipmitool -vv -I lan -H 10.10.20.120 -U root power status
Password:
ipmi_lan_send_cmd:opened=[0], open=[4525612]
IPMI LAN host 10.10.20.120 port 623
Sending IPMI/RMCP presence ping packet
Received IPMI/RMCP response packet: <-- ÆÐŶ ÀÚü´Â Á¤»óÀûÀ¸·Î ÁÖ°í ¹ÞÀ½. Áï, ³×Æ®¿÷ ¼³Á¤Àº Á¤»ó.
IPMI Supported
... »ý·« ...
ipmi_lan_send_cmd:opened=[1], open=[4525612]
No response from remote controller
Get Auth Capabilities command failed
... »ý·« ...
Error: Unable to establish LAN session
Failed to open LAN interface
Unable to get Chassis Power Status
| |
access onÀ¸·Î ¼³Á¤ÇÑ´Ù.
|
# ipmitool channel info 1
Channel 0x1 info:
... »ý·« ...
Volatile(active) Settings
Alerting : disabled
Per-message Auth : disabled
User Level Auth : enabled
Access Mode : disabled <-- access off »óÅÂÀÓ. onÀÏ ¶§´Â always availableÀ¸·Î Ç¥½ÃµÈ´Ù.
Non-Volatile Settings
Alerting : disabled
Per-message Auth : disabled
User Level Auth : enabled
Access Mode : disabled <-- access off »óÅÂÀÓ
# ipmitool lan set 1 access on <-- access onÀ¸·Î Àüȯ
| |
4) Invalid useri nameÀ̶ó°í ³ª¿Â´Ù.
|
# ipmitool -I lan -H 10.10.20.120 -U root power status
Password:
Invalid user name
Error: Unable to establish LAN session
Unable to get Chassis Power Status
| |
ÇØ´ç user ID°¡ ¾ø°Å³ª user°¡ disableµÇ¾î ÀÖ´Ù.
|
# ipmitool user list 1 <-- user ¸ñ·Ï È®ÀÎ
# ipmitool user summary 1 <-- enable µÈ À¯Àú ¼ö È®ÀÎ. ¸¸¾à 0À̶ó¸é ¸ðµç À¯Àú°¡ disableµÇ¾î ÀÖÀ½.
# ipmi.sh user enable 2 <-- ÇØ´ç user(ID 2¹ø)¸¦ enableÇÑ´Ù.
| |
2. IPMI¿ë ÀÎÅÍÆäÀ̽º(interface) º¯°æ
±âº»ÀûÀ¸·Î ù¹ø° ³×Æ®¿÷ ÀÎÅÍÆäÀ̽º·Î IPMI Åë½ÅÀ» Çϴµ¥, ¼³Á¤ º¯°æÀ» ÅëÇØ 2¹ø° µî ´Ù¸¥ ÀÎÅÍÆäÀ̽º·Î Åë½ÅÀ» ÇÒ ¼ö ÀÖ´Ù.
Dell ¼¹ö¸¦ ±âÁØÀ¸·Î ¼³¸íÇÑ´Ù. ´Ù¸¥ ¼¹öÀÇ °æ¿ì´Â freeipmiÅøÀÇl ipmi-oem¸í·ÉÀ¸·Î ÁöÁ¤ °¡´ÉÇÒ °Í(½ÇÁ¦ ´Ù¸¥ ¼¹ö¿¡¼ ¼ÂÆÃÇغ¸Áö ¾Ê¾Æ¼ Á¤È®ÇÏÁö´Â ¾ÊÀ½)À¸·Î º¸ÀδÙ.
1) Dell 1950
|
# ipmitool delloem lan get
shared
# ipmitool delloem lan get active
Error in getting Active LOM Status (Invalid command)
# ipmitool delloem lan set "shared with failover lom2" <-- LOM2, Áï 2¹ø° NIC·Î failover°¡´ÉÇÏ°Ô ¼³Á¤
configured successfully
# ipmitool delloem lan get
shared with failover lom2
| |
ipmitool delloem lan get ¸í·É¸¸ ³»¸®¸é, ¼³Á¤ °¡´ÉÇÑ mode(¿¹ : shared, shared with failover lom2, shared with Failover all loms)¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù.
2) Dell R610 (¼³Á¤ º¯°æÀº À§¿Í µ¿ÀÏÇÑ ¹æ¹ýÀ¸·Î)
|
# ipmitool delloem lan get
shared
# ipmitool delloem lan get active <-- ÀÌ °ªÀº º¯°æ ºÒ°¡. read only.
LOM1
| |
Âü°í·Î freeipmiÀÇ ipmi-oem ¸í·ÉÀ¸·Î È®ÀÎÇÑ ¿¹ÀÌ´Ù. ¼³Á¤ º¯°æÀº set-nic-selection ¿É¼ÇÀ¸·Î.
|
# ipmi-oem Dell get-nic-selection
shared
# ipmi-oem Dell get-active-lom-status
LOM 1
| |
3) Dell R620 (¼³Á¤ º¯°æÀº À§¿Í µ¿ÀÏÇÑ ¹æ¹ýÀ¸·Î)
|
# ipmitool delloem lan get
Shared LOM : shared with lom1
Failover LOM : None
# ipmitool delloem lan get active
LOM1
| |
3. Dell R610 ¼¹ö¿¡¼ IPMI Åë½ÅÀÌ ¾ÈµÉ °æ¿ì
2011³â 3¿ù¿¡ ±¸¸ÅÇÑ Dell R610¼¹ö¿¡¼´Â ¸ðµÎ(?) NoneÀ¸·Î µÇ¾î ÀÖ¾ú´Ù. iDRAC6 Æß¿þ¾î ¹öÀüÀº 1.70.21.
|
# ipmitool delloem lan get
shared
# ipmitool delloem lan get active
None
# ipmitoolmc info|grep sion
Device Revision : 0
Firmware Revision : 1.70
IPMI Version : 2.0
| |
À̶§ ¸¸µé¾îÁø ¼¹ö´Â ¾Æ¸¶ ¼³Á¤À» Àß ¸øÇÏ°í Ãâ½ÃÇÑ °Í °°´Ù. ¸î °³¿ù Â÷ÀÌ·Î ±¸¸ÅÇÑ °°Àº ¸ðµ¨ ¼¹ö´Â ÀüÇô ÀÌ·± ¹®Á¦°¡ ¾ø¾ú´Ù.
NONEÀ¸·Î ³ª¿À´Â °ÍÀº NIC¿¡ Management Firmware ¼³Á¤ÀÌ diableµÇ¾î Àֱ⠶§¹®Àε¥, FreeBSDÀÇ ºÎÆ÷α׿¡¼ NIC °ü·Ã ºÎºÐÀ» º¸¸é È®ÀÎÇÒ ¼ö ÀÖ´Ù. CentOS¿¡¼´Â Flag°ªÀ» È®ÀÎÇÒ ¼ö ¾ø¾ú´Ù.
1) IPMI over LAN µÇ´Â ¼¹öÀÇ /var/run/dmesg.boot (FreeBSD ȯ°æ)
bce0: mem 0xd6000000-0xd7ffffff irq 36 at device 0.0 on pci1
bce0: ASIC (0x57092003); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.2.3); Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|MFW); MFW (NCSI 2.0.11)
2) IPMI over LAN ¾ÈµÇ´Â ¼¹ö (FreeBSD ȯ°æ, Flags¿¡ MFW°¡ ¾øÀ½)
bce0: mem 0xd6000000-0xd7ffffff irq 36 at device 0.0 on pci1
bce0: ASIC (0x57092003); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.2.3); Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI)
¼³Á¤º¯°æÀº DOS À¯Æ¿À» »ç¿ëÇØ¾ß ÇϹǷΠºÎÆÃÀÌ ¹Ýµå½Ã ÇÊ¿äÇÏ´Ù.
1) Dell »çÀÌÆ®¿¡¼ Broadcom NetXtreme I and NetXtreme II DOS Utilities À» ¹Þ´Â´Ù.
http://www.dell.com/support/home/us/en/04/Drivers/DriversDetails?driverId=29DKK
2) Bcom_LAN_14.2.x_DOSUtilities_A03.exe ¾ÐÃàÀ» Ǭ´Ù.
3) Userdiag/NetXtremeII/uxdiag.exe ÆÄÀÏÀ» USB(FAT32 ÆÄƼ¼Ç)¿¡ º¹»çÇÑ´Ù.
4) DOS ºÎÆ®µð½ºÅ© ISO¸¦ ¹Þ¾Æ¼ CD¸¦ ±Á´Â´Ù.
http://www.allbootdisks.com/download/iso.html
5) CD¸¦ ³Ö°í, USB¸¦ ²ÈÀº ´ÙÀ½¿¡ ºÎÆÃÀ» ÇÑ´Ù.
DOS·Î ºÎÆÃÀÌ µÉÅÙµ¥, C: µå¶óÀ̺ê(USB)¿¡ uxdiag.exe ÆÄÀÏÀÌ ÀÖÀ» °ÍÀÌ´Ù.
µð¹ÙÀ̽º Á¤º¸¸¦ È®ÀÎÇÑ´Ù.
|
C:\>uxdiag -ver
uxdiag -- Broadcom NetXtreme II diagnostics version 5.2.2
Copyright (c) 2001-2009 Broadcom Corporation, all rights reserved.
C: Brd:Rv Bus PCI Spd Base IRQ MAC FmwVer Configuration
1:5709C:C0 01:00:00 PCIE-4 2.5 0xD600 15 ....B5....02 5.2.3 auto
2:5709C:C0 01:00:01 PCIE-4 2.5 0xD800 14 ....B5....04 5.2.3 auto
3:5709C:C0 02:00:00 PCIE-4 2.5 0xDA00 15 ....B5....06 5.2.3 auto
4:5709C:C0 02:00:01 PCIE-4 2.5 0xDC00 14 ....B5....08 5.2.3 auto
| |
Management FirmwareÀ» enable½ÃŲ´Ù. -t abcd¿É¼ÇÀº abcd ±×·ì¿¡ ´ëÇØ test(Áï, diag)¾øÀÌ ¼³Á¤¸¸ º¯°æÇϵµ·Ï ÇØÁØ´Ù. ¸¸¾à -t ¿É¼Ç¾øÀÌ ½ÇÇàÇϸé diagÇÏ´À¶ó ½Ã°£ÀÌ ¿À·¡°É¸°´Ù.
|
C:\>uxdiag -t abcd -mfw 1
... »ý·« ...
C:\>uxdiag -ver
C: Brd:Rv Bus PCI Spd Base IRQ MAC FmwVer Configuration
1:5709C:C0 01:00:00 PCIE-4 2.5 0xD600 15 ....B5....02 5.2.3 MF,auto <-- ¼³Á¤ º¯°æµÈ °ÍÀ» È®ÀÎ
2:5709C:C0 01:00:01 PCIE-4 2.5 0xD800 14 ....B5....04 5.2.3 MF,auto
3:5709C:C0 02:00:00 PCIE-4 2.5 0xDA00 15 ....B5....06 5.2.3 MF,auto
4:5709C:C0 02:00:01 PCIE-4 2.5 0xDC00 14 ....B5....08 5.2.3 MF,auto
| |
4. Âü°íÀÚ·á
* Re: IPMI Over LAN not working (Dell Server ¹®Á¦ °ü·Ã)
http://permalink.gmane.org/gmane.linux.hardware.dell.poweredge/42033
|