ipmi_셋팅과_이용

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

ipmi_셋팅과_이용 [2021/07/13 08:35] – 만듦 koovipmi_셋팅과_이용 [2021/07/13 08:39] (현재) koov
줄 9: 줄 9:
 <WRAP prewrap> <WRAP prewrap>
 <code bash> <code bash>
-dmidecode | grep -A10 IPMI+dmidecode | grep -A10 IPMI
 </code> </code>
 </WRAP>  </WRAP> 
줄 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 /dev/ipmidev/0: No such file or directory Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
 </code> </code>
줄 27: 줄 27:
 <WRAP prewrap> <WRAP prewrap>
 <code bash> <code bash>
-service ipmi start +service ipmi start 
-lsmod |grep ipmi+lsmod |grep ipmi
 ipmi_devintf            7729  2 ipmi_devintf            7729  2
 acpi_ipmi               3745  1 power_meter acpi_ipmi               3745  1 power_meter
줄 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     ipmi.ko 3    1 0xffffffff80fdc000 f970     ipmi.ko
 </code> </code>
줄 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/cleared | Asserted    1 | 06/20/2012 | 21:32:52 | Event Logging Disabled #0x72 | Log area reset/cleared | Asserted
    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   | RPM        | ok    | na        | 1920.000  | na        | na        | na        | na         FAN MOD 1A RPM   | 4320.000   | RPM        | ok    | na        | 1920.000  | na        | na        | na        | na        
줄 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    | 0x00              | ok PS Redundancy    | 0x00              | ok
 ... 생략 ... ... 생략 ...
-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
 </code> </code>
줄 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/primary removable media   floppy: Force boot from Floppy/primary removable media
-# + 
-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/unlocked Boot parameter 5 is valid/unlocked
줄 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         # <-- 또는 chassis bootparam 설정으로도 동일한
 Set Boot Device to force_bios Set Boot Device to force_bios
 </code> </code>
줄 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  <-- 부팅할 때마다 계속 CDROM BIOS화면으로 들어가도록 한다. +ipmitool chassis bootdev cdrom options=persistent  <-- 부팅할 때마다 계속 CDROM BIOS화면으로 들어가도록 한다. 
-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               # <-- 변경 유지
 ... 생략 ... ... 생략 ...
 </code> </code>
줄 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 ??:??:fd:??:??:54 iDRAC7 MAC Address ??:??:fd:??:??:54
-ipmitool delloem powermonitor+ 
 +ipmitool delloem powermonitor
 Power Tracking Statistics Power Tracking Statistics
 Statistic      : Cumulative Energy Consumption Statistic      : Cumulative Energy Consumption
줄 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              # <-- ipmitool delloem powermonitor와 동일한 명령
 Cumulative Energy Start Time : 03/31/11 - 16:05:44 Cumulative Energy Start Time : 03/31/11 - 16:05:44
 Cumulative Energy            : 1142.39 kWh Cumulative Energy            : 1142.39 kWh
줄 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
 </code> </code>
 </WRAP> </WRAP>
줄 270: 줄 272:
 <WRAP prewrap> <WRAP prewrap>
 <code bash> <code bash>
-ipmitool lan print 1+ipmitool lan print 1
 Set in Progress         : Set Complete Set in Progress         : Set Complete
 Auth Type Support       : NONE MD2 MD5 PASSWORD Auth Type Support       : NONE MD2 MD5 PASSWORD
줄 278: 줄 280:
                         : Admin    : MD2 MD5                         : Admin    : MD2 MD5
                         : OEM      :                         : OEM      :
-IP Address Source       : Static Address       <-- static +IP Address Source       : Static Address       <-- static 
-IP Address              : 192.168.0.120        <-- 셋팅 전+IP Address              : 192.168.0.120        <-- 셋팅 전
 Subnet Mask             : 255.255.255.0 Subnet Mask             : 255.255.255.0
 MAC Address             : ??:??:c4:ee:??:?? MAC Address             : ??:??:c4:ee:??:??
줄 288: 줄 290:
 Default Gateway MAC     : 00:00:00:00:00:00 Default Gateway MAC     : 00:00:00:00:00:00
 ... 생략 ... ... 생략 ...
-ipmitool lan set 1 ipsrc static    <-- DHCP로 되어 있으면 아래 명령 자체가 먹지 않는다. 보통 static으로 이미 되어 있음. + 
-ipmitool lan set 1 ipaddr 10.10.20.120+ipmitool lan set 1 ipsrc static                 # <-- DHCP로 되어 있으면 아래 명령 자체가 먹지 않는다. 보통 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 Complete Set in Progress         : Set Complete
 Auth Type Support       : NONE MD2 MD5 PASSWORD Auth Type Support       : NONE MD2 MD5 PASSWORD
줄 306: 줄 312:
                         : OEM      :                         : OEM      :
 IP Address Source       : Static Address IP Address Source       : Static Address
-IP Address              : 10.10.20.120          <-- 셋팅 후+IP Address              : 10.10.20.120               # <-- 셋팅 후
 Subnet Mask             : 255.255.255.0 Subnet Mask             : 255.255.255.0
 MAC Address             : ??:??:c4:ee:??:?? MAC Address             : ??:??:c4:ee:??:??
줄 312: 줄 318:
 IP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10 IP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
 BMC ARP Control         : ARP Responses Enabled, Gratuitous ARP Disabled BMC ARP Control         : ARP Responses Enabled, Gratuitous ARP Disabled
-Default Gateway IP      : 10.10.20.1            <-- 셋팅 후+Default Gateway IP      : 10.10.20.1                 # <-- 셋팅 후
 Default Gateway MAC     : 00:00:00:00:00:00 Default Gateway MAC     : 00:00:00:00:00:00
 ... 생략 ... ... 생략 ...
줄 326: 줄 332:
 <WRAP prewrap> <WRAP prewrap>
 <code bash> <code bash>
-ipmitool user list 1+ipmitool user list 1
 ID  Name        Callin  Link Auth   IPMI Msg   Channel Priv Limit ID  Name        Callin  Link Auth   IPMI Msg   Channel Priv Limit
 2   root             true    true       true       ADMINISTRATOR 2   root             true    true       true       ADMINISTRATOR
-ipmitool user set password 2 <-- 숫자 2는 위의 ID필드에 표시된 유저 ID를 말함. 위에서는 'root' ID.+ 
 +ipmitool user set password 2            # <-- 숫자 2는 위의 ID필드에 표시된 유저 ID를 말함. 위에서는 'root' ID.
 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       : 16 Maximum IDs       : 16
-Enabled User Count  : 1   <-- enable 유저가 1명 있음.+Enabled User Count  : 1                   # <-- enable 유저가 1명 있음.
 Fixed Name Count    : 1 Fixed Name Count    : 1
 </code> </code>
줄 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 <비밀번호> power status+ 
 +ipmitool -I lan -H 10.10.20.20 -U root -P <비밀번호> power status
 Chassis Power is on Chassis Power is on
 </code> </code>
줄 371: 줄 380:
 <WRAP prewrap> <WRAP prewrap>
 <code bash> <code bash>
-service ipmievent start+service ipmievent start
 </code> </code>
 </WRAP> </WRAP>
줄 413: 줄 422:
 ''syslog''의 경우 (''/etc/syslog.conf'') ''syslog''의 경우 (''/etc/syslog.conf'')
 <WRAP prewrap> <WRAP prewrap>
-<code bash>+<code vim>
 # IPMI # IPMI
 local4.debug            @10.10.1.123 local4.debug            @10.10.1.123
줄 421: 줄 430:
 ''rsyslog''의 경우 (''/etc/rsyslog.d/ipmi.conf'') ''rsyslog''의 경우 (''/etc/rsyslog.d/ipmi.conf'')
 <WRAP prewrap> <WRAP prewrap>
-<code bash>+<code vim>
 # IPMI # IPMI
 local4.debug            @10.10.1.123:514 local4.debug            @10.10.1.123:514
  • ipmi_셋팅과_이용.1626165353.txt.gz
  • 마지막으로 수정됨: 2021/07/13 08:35
  • 저자 koov