차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| ipmi_셋팅과_이용 [2021/07/13 08:35] – 만듦 koov | ipmi_셋팅과_이용 [2021/07/13 08:39] (현재) – koov | ||
|---|---|---|---|
| 줄 9: | 줄 9: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # dmidecode | grep -A10 IPMI | + | $ dmidecode | grep -A10 IPMI |
| </ | </ | ||
| </ | </ | ||
| 줄 18: | 줄 18: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # yum install ipmitool OpenIPMI | + | $ yum install ipmitool OpenIPMI |
| - | # ipmitool lan print 1 <-- IPMI 커널 모듈을 로딩하지 않아서 그렇다. | + | $ ipmitool lan print 1 # <-- IPMI 커널 모듈을 로딩하지 않아서 그렇다. |
| Could not open device at /dev/ipmi0 or /dev/ipmi/0 or / | Could not open device at /dev/ipmi0 or /dev/ipmi/0 or / | ||
| </ | </ | ||
| 줄 27: | 줄 27: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # service ipmi start | + | $ service ipmi start |
| - | # lsmod |grep ipmi | + | $ lsmod |grep ipmi |
| ipmi_devintf | ipmi_devintf | ||
| acpi_ipmi | acpi_ipmi | ||
| 줄 40: | 줄 40: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # pkg install ipmitool | + | $ pkg install ipmitool |
| - | # kldload ipmi | + | $ kldload ipmi |
| - | # kldstat | grep ipmi | + | $ kldstat | grep ipmi |
| 3 1 0xffffffff80fdc000 f970 | 3 1 0xffffffff80fdc000 f970 | ||
| </ | </ | ||
| 줄 62: | 줄 62: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool sel list | + | $ ipmitool sel list |
| 1 | 06/20/2012 | 21:32:52 | Event Logging Disabled #0x72 | Log area reset/ | 1 | 06/20/2012 | 21:32:52 | Event Logging Disabled #0x72 | Log area reset/ | ||
| 2 | 07/18/2012 | 14:19:01 | Power Supply #0x63 | Power Supply AC lost | Asserted | 2 | 07/18/2012 | 14:19:01 | Power Supply #0x63 | Power Supply AC lost | Asserted | ||
| 줄 74: | 줄 74: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool fru | + | $ ipmitool fru |
| ... 생략 ... | ... 생략 ... | ||
| FRU Device Description : iDRAC7 | FRU Device Description : iDRAC7 | ||
| 줄 99: | 줄 99: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool sensor | + | $ ipmitool sensor |
| ... 생략 ... | ... 생략 ... | ||
| FAN MOD 1A RPM | 4320.000 | FAN MOD 1A RPM | 4320.000 | ||
| 줄 113: | 줄 113: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool sdr | + | $ ipmitool sdr |
| ... 생략 ... | ... 생략 ... | ||
| Current 1 | 0.40 Amps | ok | Current 1 | 0.40 Amps | ok | ||
| 줄 121: | 줄 121: | ||
| PS Redundancy | PS Redundancy | ||
| ... 생략 ... | ... 생략 ... | ||
| - | # ipmitool sdr type | + | $ ipmitool sdr type |
| - | # ipmitool sdr type fan | + | $ ipmitool sdr type fan |
| Fan1A RPM | 30h | ok | 7.1 | 2400 RPM | Fan1A RPM | 30h | ok | 7.1 | 2400 RPM | ||
| Fan2A RPM | 32h | ok | 7.1 | 2280 RPM | Fan2A RPM | 32h | ok | 7.1 | 2280 RPM | ||
| 줄 138: | 줄 138: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool power status | + | $ ipmitool power status |
| Chassis Power is on | Chassis Power is on | ||
| </ | </ | ||
| 줄 150: | 줄 150: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool chassis bootdev | + | $ ipmitool chassis bootdev |
| bootdev [clear-cmos=yes|no] | bootdev [clear-cmos=yes|no] | ||
| bootdev [options=help, | bootdev [options=help, | ||
| 줄 161: | 줄 161: | ||
| bios : Force boot into BIOS Setup | bios : Force boot into BIOS Setup | ||
| floppy: Force boot from Floppy/ | floppy: Force boot from Floppy/ | ||
| - | # | + | |
| - | # ipmitool chassis bootdev cdrom # <-- CD/DVD 부팅되도록 한다. | + | $ ipmitool chassis bootdev cdrom # <-- CD/DVD 부팅되도록 한다. |
| Set Boot Device to cdrom | Set Boot Device to cdrom | ||
| - | # ipmitool chassis bootparam get 5 | + | $ ipmitool chassis bootparam get 5 |
| Boot parameter version: 1 | Boot parameter version: 1 | ||
| Boot parameter 5 is valid/ | Boot parameter 5 is valid/ | ||
| 줄 176: | 줄 176: | ||
| - BIOS verbosity : Console redirection occurs per BIOS configuration setting (default) | - BIOS verbosity : Console redirection occurs per BIOS configuration setting (default) | ||
| - BIOS Mux Control Override : BIOS uses recommended setting of the mux at the end of POST | - BIOS Mux Control Override : BIOS uses recommended setting of the mux at the end of POST | ||
| - | # | + | |
| - | # ipmitool chassis bootdev bios <-- 부팅할 때 BIOS 셋업화면으로 들어간다. | + | $ ipmitool chassis bootdev bios # <-- 부팅할 때 BIOS 셋업화면으로 들어간다. |
| Set Boot Device to bios | Set Boot Device to bios | ||
| - | # ipmitool chassis bootparam set bootflag force_bios <-- 또는 chassis bootparam 설정으로도 동일한 | + | |
| + | $ ipmitool chassis bootparam set bootflag force_bios | ||
| Set Boot Device to force_bios | Set Boot Device to force_bios | ||
| </ | </ | ||
| 줄 188: | 줄 189: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool chassis bootdev none options=help | + | $ ipmitool chassis bootdev none options=help |
| - | # ipmitool chassis bootdev cdrom options=persistent | + | $ ipmitool chassis bootdev cdrom options=persistent |
| - | # ipmitool chassis bootparam get 5 | + | $ ipmitool chassis bootparam get 5 |
| ... 생략 ... | ... 생략 ... | ||
| Boot Flags : | Boot Flags : | ||
| - Boot Flag Valid | - Boot Flag Valid | ||
| - | - Options apply to all future boots | + | - Options apply to all future boots # <-- 변경 유지 |
| ... 생략 ... | ... 생략 ... | ||
| </ | </ | ||
| 줄 208: | 줄 209: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool delloem mac | + | $ ipmitool delloem mac |
| System LOMs | System LOMs | ||
| 줄 219: | 줄 220: | ||
| iDRAC7 MAC Address ??:??: | iDRAC7 MAC Address ??:??: | ||
| - | # ipmitool delloem powermonitor | + | |
| + | $ ipmitool delloem powermonitor | ||
| Power Tracking Statistics | Power Tracking Statistics | ||
| Statistic | Statistic | ||
| 줄 233: | 줄 235: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmi-oem dell get-power-consumption-data <-- ipmitool delloem powermonitor와 동일한 명령 | + | $ ipmi-oem dell get-power-consumption-data |
| Cumulative Energy Start Time : 03/31/11 - 16:05:44 | Cumulative Energy Start Time : 03/31/11 - 16:05:44 | ||
| Cumulative Energy | Cumulative Energy | ||
| 줄 251: | 줄 253: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool lan set 1 ipsrc static | + | $ ipmitool lan set 1 ipsrc static |
| - | # ipmitool lan set 1 ipaddr | + | $ ipmitool lan set 1 ipaddr |
| - | # ipmitool lan set 1 netmask | + | $ ipmitool lan set 1 netmask |
| - | # ipmitool lan set 1 defgw ipaddr | + | $ ipmitool lan set 1 defgw ipaddr |
| - | # ipmitool lan set 1 access on | + | $ ipmitool lan set 1 access on |
| </ | </ | ||
| </ | </ | ||
| 줄 270: | 줄 272: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool lan print 1 | + | $ ipmitool lan print 1 |
| Set in Progress | Set in Progress | ||
| Auth Type Support | Auth Type Support | ||
| 줄 278: | 줄 280: | ||
| : Admin : MD2 MD5 | : Admin : MD2 MD5 | ||
| : OEM : | : OEM : | ||
| - | IP Address Source | + | IP Address Source |
| - | IP Address | + | IP Address |
| Subnet Mask : 255.255.255.0 | Subnet Mask : 255.255.255.0 | ||
| MAC Address | MAC Address | ||
| 줄 288: | 줄 290: | ||
| Default Gateway MAC : 00: | Default Gateway MAC : 00: | ||
| ... 생략 ... | ... 생략 ... | ||
| - | # ipmitool lan set 1 ipsrc static | + | |
| - | # ipmitool lan set 1 ipaddr 10.10.20.120 | + | $ ipmitool lan set 1 ipsrc static |
| + | $ ipmitool lan set 1 ipaddr 10.10.20.120 | ||
| Setting LAN IP Address to 10.10.20.120 | Setting LAN IP Address to 10.10.20.120 | ||
| - | # ipmitool lan set 1 netmask 255.255.255.0 | + | |
| + | $ ipmitool lan set 1 netmask 255.255.255.0 | ||
| Setting LAN Subnet Mask to 255.255.255.0 | Setting LAN Subnet Mask to 255.255.255.0 | ||
| - | # ipmitool lan set 1 defgw ipaddr 10.10.20.1 | + | |
| + | $ ipmitool lan set 1 defgw ipaddr 10.10.20.1 | ||
| Setting LAN Default Gateway IP to 10.10.20.1 | Setting LAN Default Gateway IP to 10.10.20.1 | ||
| - | # ipmitool lan set 1 access on | + | |
| - | # | + | $ ipmitool lan set 1 access on |
| - | # ipmitool lan print 1 | + | |
| + | $ ipmitool lan print 1 | ||
| Set in Progress | Set in Progress | ||
| Auth Type Support | Auth Type Support | ||
| 줄 306: | 줄 312: | ||
| : OEM : | : OEM : | ||
| IP Address Source | IP Address Source | ||
| - | IP Address | + | IP Address |
| Subnet Mask : 255.255.255.0 | Subnet Mask : 255.255.255.0 | ||
| MAC Address | MAC Address | ||
| 줄 312: | 줄 318: | ||
| IP Header | IP Header | ||
| BMC ARP Control | BMC ARP Control | ||
| - | Default Gateway IP : 10.10.20.1 | + | Default Gateway IP : 10.10.20.1 |
| Default Gateway MAC : 00: | Default Gateway MAC : 00: | ||
| ... 생략 ... | ... 생략 ... | ||
| 줄 326: | 줄 332: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool user list 1 | + | $ ipmitool user list 1 |
| ID Name | ID Name | ||
| 2 | 2 | ||
| - | # ipmitool user set password 2 <-- 숫자 2는 위의 ID필드에 표시된 유저 ID를 말함. 위에서는 ' | + | |
| + | $ ipmitool user set password 2 # | ||
| Password for user 2: <-- PW 입력 | Password for user 2: <-- PW 입력 | ||
| Password for user 2: <-- PW 재입력 | Password for user 2: <-- PW 재입력 | ||
| - | # ipmitool user summary 1 | + | |
| + | $ ipmitool user summary 1 | ||
| Maximum IDs | Maximum IDs | ||
| - | Enabled User Count : 1 | + | Enabled User Count : 1 # <-- enable 유저가 1명 있음. |
| Fixed Name Count : 1 | Fixed Name Count : 1 | ||
| </ | </ | ||
| 줄 343: | 줄 351: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # ipmitool -I lan -H 10.10.20.20 -U root power status | + | $ ipmitool -I lan -H 10.10.20.20 -U root power status |
| Password: | Password: | ||
| Chassis Power is on | Chassis Power is on | ||
| - | # ipmitool -I lan -H 10.10.20.20 -U root -P < | + | |
| + | $ ipmitool -I lan -H 10.10.20.20 -U root -P < | ||
| Chassis Power is on | Chassis Power is on | ||
| </ | </ | ||
| 줄 371: | 줄 380: | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| <code bash> | <code bash> | ||
| - | # service ipmievent start | + | $ service ipmievent start |
| </ | </ | ||
| </ | </ | ||
| 줄 413: | 줄 422: | ||
| '' | '' | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| - | < | + | < |
| # IPMI | # IPMI | ||
| local4.debug @10.10.1.123 | local4.debug @10.10.1.123 | ||
| 줄 421: | 줄 430: | ||
| '' | '' | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| - | < | + | < |
| # IPMI | # IPMI | ||
| local4.debug @10.10.1.123: | local4.debug @10.10.1.123: | ||