1. Load the IPMI-enabled system module
Modprobe Ipmi_msghandler
Modprobe ipmi_devintf
Modprobe Ipmi_poweroff
Modprobe Ipmi_si
Modprobe Ipmi_watchdog
??
Write the above command to/etc/rc.local to load the module automatically
??
?
??
2. View IPMI Device Information
# More/proc/devices | grep Ipmidev
253 Ipmidev #有这一行说明有IPMI设备
??
?
??
3. Create a character device node so that Ipmitool can access the IPMI system interface through the driver, which typically saves
# Mknod/dev/ipmi0 C 253 0
Mknod: '/dev/ipmi0 ': File already exists
??
?
??
The 4.ipmitool program is automatically installed after the IPMI system module is loaded
IPMI_SI module Load Failure will not install this program-- download ipmitool Source code to compile can install this program, but if the template fails to load, the program is still not available
??
After installing Ipmitool, you can start the IPMI service using service IPMI start
??
??
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 (syslog)
??
# Ipmitool-i Open sensor get "Temp" #引号中的字符串值从上一命令的结果的第一列的值
# ipmitool-i Open User List 1 #查看某channel的用户
??
?
??
6. Set the BMC IP, user's 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
Ipmitool BMC Info
Ipmitool LAN Print 1
??
??
# You can also set the IP information of the NIC by modifying the bmcautoconf.sh, but this file is not found: (
IPMI setup under CentOS