IPMI is an abbreviation for Intelligent Platform Management Interface (Intelligent Platform Management Interface), the management is based on an industry standard peripherals enterprise systems Intel architectures used in the adoption of the standards developed by Intel, HP, DELL and other companies SuperMicro . IPMI user may utilize the physical characteristics of health monitoring server, such as temperature, voltage, the fan working status, power status.
We produce physical server environment, most have adopted DELL and SuperMicro, are buying "DRAC remote control card" to support IPMI, and assign a specific network segment IP to each server. In this way, we usually remotely modify the BIOS startup items, restart the server, and other operations on the local terminal connection can be achieved by IPMI.
The following is a practical application scenario of our production environment:
Environment Description:
Machine type: DELL / SuperMicro
the IPMI Support: Installed "DRAC remote control card" and has been the BIOS to configure an IP address
list of machines:
supervisor idc1-admin1
server idc1-server1, DRAC remote address Idc1-server1-Remote
OS : CentOS 6.6 x86_64 Minimal
Specific Configuration:
Configuration Management Host-admin1 Idc1
[Idc1 the root-admin1 @ ~] # yum the install the OpenIPMI IPMItool
[Idc1 the root-admin1 @ ~] # /etc/init.d/ipmi Start
[Idc1 the root-admin1 @ ~] lsmod # | grep ipmi_devintf || insmod / lib / modules / `uname -r` / Kernel / the Drivers / char / the IPMI / ipmi_devintf.ko
[root @ Idc1-admin1 ~] # /etc/init.d/ipmi restart
2. IPMI functions of a remote modify the BIOS startup items for the network to start
[root @ idc1-admin1 ~] # ipmitool -I lanplus -H idc1-server1-remote -U ADMIN -P ADMIN chassis bootdev pxe
Set Boot Device to pxe
3. IPMI functions at a remote reboot the server
[root @ idc1-admin1 ~] # ipmitool -I lanplus -H idc1-server1-remote -U ADMIN -P ADMIN power reset
Chassis Power Control: Reset
[root@idc1-admin1 ~]# ipmitool -I lanplus -H idc1-server1-remote -U ADMIN -P ADMIN power status
Chassis Power is on
4. Good server via the network automatically Cobbler idc1-server1 installation
5. landed just installed server idc1-server1 completed, enable IPMI Console supports
5.1 install the required software
[root@aikaiyuan ~]# yum install OpenIPMI ipmitool [root@aikaiyuan ~]# /etc/init.d/ipmi start [root@aikaiyuan ~]# lsmod | grep ipmi_devintf || insmod /lib/modules/`uname -r`/kernel/drivers/char/ipmi/ipmi_devintf.ko [root@aikaiyuan ~]# /etc/init.d/ipmi restart
5.2 grub boot configuration parameters
[root @ idc1-server1 ~] # vi /boot/grub/grub.conf
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/mylvm-root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu serial --unit=1 --speed=115200 terminal --timeout=2 console title CentOS (2.6.32-504.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-504.el6.x86_64 ro root=/dev/mapper/mylvm-root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 rd_LVM_LV=mylvm/root KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet rd_NO_DM rd_LVM_LV=mylvm/swap rhgb quiet console=tty1 console=ttyS1,115200 initrd /initramfs-2.6.32-504.el6.x86_64.img
NOTE: In the above configuration file, add the following configuration for supporting IPMI Console:
Line 14: serial --unit = 1 --speed = 115200
Line 15: terminal --timeout = 2 console
at the end of line 18 : console = tty1 console = ttyS1,115200
5.3. Restart the server enable the parameters
[root @ idc1-server1 ~] # reboot
6. After the server is started to be successful, call the IPMI console in the management machine
[root @ idc1-admin1 ~] # ipmitool -I lanplus -H idc1-server1-remote -U ADMIN -P ADMIN sol activate
Use ~~. to exit from console [SOL Session operational. Use ~? for help] CentOS release 6.6 (Final) Kernel 2.6.32-504.el6.x86_64 on an x86_64 idc1-server1-remote login:
On this screen, you can log in and operation of the local terminal, and we usually use when unable to access the server via SSH.
7. vendors usually also provides a Web interface to support IPMI-related operations, landing URL is http: // idc1-server1-remote .
Shown below SuperMicro:
8. IPMI also offers a wealth of features that can be used to monitor the hardware, such as fan speed, hard drive, etc., then I would be content in this area and then some summary
Basic use ipmitool
2012 December 2
Summarized as follows:
1. Check the IPMI version
ipmitool -V
2. Reset ipmi card
ipmitool mc reset cold
3. Log ipmi console
ipmitool -I lanplus -H IPADDR -U USERNAME -P PASSWORD -e ^ sol activate
4. The outer band reboot
ipmitool -I lanplus -H IPADDR -U USERNAME -P PASSWORD power reset
The next set of band from the start pxe
ipmitool -I lanplus -H IPADDR -U USERNAME -P PASSWORD chassis bootdev pxe
6. Empty IPMI SEL
ipmitool sel clear
7 channel of obtaining ipmi
for i in {1..14}; do ipmitool lan print $i 2>/dev/null | grep -q ^Set && echo $i; done
Frequently Asked Questions:
1. encountered ipmitool sol to connect to the server, an error Info: SOL payload already active on another session how to do?
You can use sol deactivate forced to kick off another session, specific ways:
ipmitool -I lanplus -H IPADDR -U USERNAME -P PASSWORD sol deactivate
PMI is used in sol