Server-enabled Remote IPMI console feature in CentOS

Source: Internet
Author: User
Tags centos

Background information:
IPMI, an acronym for the Intelligent Platform Management interface (Intelligent Platform Management Interface), is an industry standard used in managing peripherals used in intel-based enterprise systems, which is based on Intel, Hp,dell and Supermicro and other companies developed. Users can use IPMI to monitor the physical health characteristics of the server, such as temperature, voltage, fan status, power status, and so on.

In our production environment, the majority of physical servers are Dell and Supermicro, have selected the "DRAC Remote control card" to support IPMI, and assigned a specific network segment IP to each server. In this way, we usually remotely modify the BIOS boot entry, restart the server, connect the local terminal operations can be implemented through IPMI.

The following is the actual application scenario in our production environment:

Environment Introduction:
Machine Type: Dell/supermicro
IPMI support: DRAC Remote control card installed and IP address configured via BIOS
Machine list:
Management Machine Idc1-admin1
Server Idc1-server1, Drac remote address idc1-server1-remote
Os:centos 6.6 x86_64 Minimal

Specific configuration:
1. Configuration Management Host Idc1-admin1
[Root@idc1-admin1 ~]# yum install OpenIPMI Ipmitool
[Root@idc1-admin1 ~]#/ETC/INIT.D/IPMI start
[Root@idc1-admin1 ~]# Lsmod | grep ipmi_devintf | | insmod/lib/modules/' Uname-r '/kernel/drivers/char/ipmi/ipmi_devintf.ko
[Root@idc1-admin1 ~]#/etc/init.d/ipmi Restart

2. IPMI feature remote modification BIOS boot entry for network boot
[Root@idc1-admin1 ~]# ipmitool-i lanplus-h idc1-server1-remote-u admin-p ADMIN chassis Bootdev PXE


Set Boot Device to PXE

3. IPMI function Remote reboot 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 was on

4. Automatically install server via Cobbler network Idc1-server1

5. Log on to the server Idc1-server1 just installed and enable IPMI console support
5.1. Install the required software
[Root@idc1-server1 ~]# yum install OpenIPMI Ipmitool
[Root@idc1-server1 ~]#/ETC/INIT.D/IPMI start
[Root@idc1-server1 ~]# Lsmod | grep ipmi_devintf | | insmod/lib/modules/' Uname-r '/kernel/drivers/char/ipmi/ipmi_devintf.ko
[Root@idc1-server1 ~]#/etc/init.d/ipmi Restart

5.2 Configuring Grub Boot Parameters

# grub.conf generated by Anaconda
#
# so you don't have to rerun grub after making changes to this file
# notice:you have a/boot partition. This is 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, the following configuration is added to support the IPMI Console:
Line 14th: Serial--unit=1--speed=115200
Line 15th: Terminal--timeout=2 Console
End of line 18th: Console=tty1 console=ttys1,115200

5.3. Reboot the server for parameters to take effect

[Root@idc1-server1 ~]# reboot

6. Invoke the IPMI console on the management machine after the server has started successfully
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 a x86_64

Idc1-server1-remote Login:
In this interface, you can log in and operate the local terminal, which we usually use when we are unable to login to the server via SSH.

7. Manufacturers often also provide a web interface to support IPMI-related operations, landing URLs for Http://idc1-server1-remote.
Supermicro as shown in the following figure:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.