R&D/클라우드

IPMI를 통한 서버 제어

sunshout 2014. 1. 3. 09:57

1.1          IPMI

OS에서 IPMI가 동작하기 위해서는 ipmi 디바이스가 존재해야 하며, ipmi 서비스가 동작 중이어야 한다.

 

o  IPMI 서비스 설치

yum install OpenIPMI OpenIPMI-tools

chkconfig ipmi on

service ipmi start

 

 

o  IPMI 사용법

IPMI(Intelligent Platform Management Interface)란 지능형 플랫폼관리 인터페이스

이는 플랫폼에 대한 관리 인터페이스로 OS이전 창치들에 대한 관리 기능

 

apt-get install ipmitool

 

명령어

기능

chassis

세시의 상태와 전원 관리에 대한 명령어

power

세시의 명령어 중 전원관리에 대한 단축 명령

sel

메인보드의 이벤트 로그에 대한 명령

sdr

센서의 응답 개체에 대한 명령

sensor

센서정보에 대한 명령

 

¡ Quanta 서버 IPMI를 통한 리부팅

ipmitool -I lan -H 10.7.1.32 -U root -P root raw 0x00 0x08 0x03 0x08

ipmitool -I lan -H 10.7.1.32 -U root -P root chassis bootdev pxe

ipmitool -I lan -H 10.7.1.32 -U root -P root chassis power reset

 

¡ IPMI LAN 설정 정보 확인(ipmitool lan print 1)

[root@openxen scripts]# ipmitool lan print 1

Set in Progress         : Set Complete

Auth Type Support       : NONE MD2 MD5 OEM

Auth Type Enable        : Callback : NONE MD2 MD5 OEM

                        : User     : NONE MD2 MD5 OEM

                        : Operator : NONE MD2 MD5 OEM

                        : Admin    : NONE MD2 MD5 OEM

                        : OEM      :

IP Address Source       : Static Address

IP Address              : 20.0.0.24

Subnet Mask             : 255.255.252.0

MAC Address             : 60:eb:69:a5:d2:d3

SNMP Community String   : Quanta

IP Header               : TTL=0x00 Flags=0x00 Precedence=0x00 TOS=0x00

BMC ARP Control         : ARP Responses Enabled, Gratuitous ARP Disabled

Gratituous ARP Intrvl   : 0.0 seconds

Default Gateway IP      : 20.0.3.254

Default Gateway MAC     : 00:00:00:00:00:00

Backup Gateway IP       : 0.0.0.0

Backup Gateway MAC      : 00:00:00:00:00:00

802.1q VLAN ID          : Disabled

802.1q VLAN Priority    : 0

RMCP+ Cipher Suites     : 1,2,3,6,7,8,11,12,0

Cipher Suite Priv Max   : aaaaXXaaaXXaaXX

                        :     X=Cipher Suite Unused

                        :     c=CALLBACK

                        :     u=USER

                        :     o=OPERATOR

                        :     a=ADMIN

                        :     O=OEM

 

¡ IPMI LAN 설정하기 (ipmitool lan set 1)

ipmitool lan set 1 ipaddr 10.14.1.101           # IPMI IP설정

ipmitool lan set 1 netmask 255.255.255.0        # netmask 설정

ipmitool lan set 1 defgw ipaddr 10.14.1.254    # gateway 설정

ipmitool lan set 1 ipsrc static                   # static 설정

ipmitool bmc reset warm                             # BMC reset



raw command 관련 참조

http://computercheese.blogspot.kr/2013/04/ipmi-chassis-device-commands.html