Configure IPMI on Linux system to remotely control server

IPMI (Intelligent Platform Management Interface) is a set of specifications proposed by Intel that can be used to remotely manage servers. The latest version is IPMI 2.0. Many server remote control cards, or KVM over IP devices, use this interface.

 

Many server motherboards using Intel chipsets have this interface. Through this interface, we can simply manage these servers in the local area network (such as viewing the server's internal temperature, fan speed, hardware log information, starting and stopping the server, etc.).


1. Load the system module
modprobe ipmi_msghandler
modprobe ipmi_devintf
modprobe ipmi_poweroff
modprobe ipmi_si
modprobe ipmi_watchdog that supports ipmi function

Write the above command to /etc/rc.local to automatically load the module

 

2. View ipmi device information
# more /proc/devices | grep ipmidev
253 ipmidev #This line indicates that there is an IPMI device

 

3. Create a character device node, so that ipmitool can access the ipmi system interface through the driver, usually this step can save
# mknod /dev/ipmi0 c 253 0
mknod:'/dev/ipmi0': the file already exists

 

4. The ipmitool program will automatically install the ipmi system module after the ipmi system module is loaded. If the
ipmi_si module fails to load, this program will not be installed-download the source code of ipmitool to compile the program to install this program, but if the template fails to load, the program still cannot be used

After installing ipmitool, you can use service ipmi start to start the IPMI service


5. Some query commands
# ipmitool -I open channel info <channel number> #channel number can take the value of 0-n
# ipmitool -I open sdr list

# ipmitool -I open sel list # View System Event Log (System Event Log)

# ipmitool -I open sensor get "Temp" #The string value in quotation marks is from the value of the first column of the result of the previous command
# ipmitool -I open user list 1 #View users of a channel

 

6. Set BMC IP, user password, etc.
service ipmi start
ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr 192.168.0.9
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 192.168.0.1
ipmitool user set password 1 abcdefg
ipmitool user set password 2 abcdefg

# You can also modify bmcautoconf.sh to set the IP information of the network card, but this file is not found:(

 

 

For more information,
please visit : http://ipmitool.sourceforge.net/manpage.html
http://www.intel.com/design/servers/ipmi/

Guess you like

Origin blog.csdn.net/huzhenwei/article/details/6300472