IPMI Summary
Memory is clear, 2000, then was Compaq, launched the first remote control card, it sounded very magical. Can be remotely powered on, shutdown, installation system. At that time, I did not really use, just look at the product introduction.
2006, when the Dell server should be 29 series, when you purchase, you need to buy a separate remote control card, when I was using this remote control card to play VMware ESX.
Since then has not been how to contact the server, has come to this company. The company has various brands of servers. Server in the computer room put, go in maintenance is very inconvenient, I also toss up remote management.
Let's sort out all of the IPMI stuff.
Http://www.openfusion.net/linux/ipmi_on_centos
Refer to the above connection for many advanced features.
Contents [Hide]
1 IPMI settings
2 IPMI Access
3 Features of IPMI
4 Ipmitool Use
4.1 Installing Ipmitool
4.2 Kernel Load
4.3 Viewing IPMI users
4.4 Setting the IPMI IP address
5 IPMI View
IPMI settings
IPMI needs to enter the BIOS to set the IP address. This itself is nothing special. However, sometimes you will find that you cannot access or ping the IPMI IP address after it has been set. You're going to think there's something wrong with IPMI.
This time, you need to completely unplug the machine power, wait 5 minutes, the network cable into the IPMI network card. This time, plug in the power, even if not the boot, it should be able to ping, access. This question has been tossing me for a long time.
Before the machine is plugged in, you need to plug in the IPMI cable so that it can be initialized.
In addition, the default IPMI is DHCP to obtain the IP.
IPMI Access
The IPMI Access user and password of the domestic server is basically these. This is related to the motherboard. The IPMI of the two motherboards I have seen is ultra-micro and Taian. There is a difference between them, and the default password is not the same.
Lenovo: User name: Albert Pass:admin
Micro: User name: ADMIN pass:admin
Tai ' an motherboard: User:root Pass:superuser
Wave server: User:root pass:superuser
Features of IPMI
With the Web Access IPMI, you can implement the operation of the machine
Power on, shutdown, reboot, check the current status of the machine
Install the system. Some server IPMI, no built-in IKVM, can not implement the installation of the system. This estimate is related to the cost
Modify the IPMI network and IP address
Modify BIOS settings to enter the BIOS via IPMI
Set up raid. This is currently poorly supported for mouse. To set up raid, you can only use the keyboard to operate. In this respect ibm,dell,hp do well, they can use the mouse operation completely.
Other functions, it is basically not very practical. In addition, through IPMI, it is possible to obtain parameters such as the current machine's power consumption. This follow-up further study.
For ultra-Micro machines, you can set the IPMI network card, sharing, is to let eth0 (first network card) and IPMI network card common. This saves you a network cable. There is also the IPMI-dedicated network card is the hundred trillion. If it is shared, then it is gigabit.
The ultra-micro IPMI, which can set up VLANs, is to separate the IPMI port into a VLAN. This is shared and there is no security issue. The IPMI of Taian, is not VLAN this feature.
Ipmitool use
Many people want to use IPMI for out-of-band management. If the direct use is problematic. At the OS level, you can modify the IPMI settings. That is, for Linux, there is a dedicated driver that lets you modify the underlying IPMI settings, including modifying your IPMI username and password.
Installing Ipmitool
Whether CentOS or Ubuntu can be installed directly, the source has
Yum-y Install Ipmitool
Apt-get-y Install Ipmitool
Kernel load
Modprobe Ipmi_msghandler
Modprobe ipmi_devintf
Modprobe Ipmi_si
At this point, you can basically do a variety of IPMI settings, you can do the Web, the command line should be implemented.
Dell's <channel_no> is 1,HP is 2, ultra-Micro is 1, if you are prompted to enter channel_no on the input.
View IPMI Users
IPMItool, you can view the local BMC settings to see if authentication is not required locally. If you view the remote, you need to provide the IPMI user name and password.
# Ipmitool User List 1
ID Name callin Link Auth IPMI Msg Channel Priv Limit
2 ADMIN false False True ADMINISTRATOR
Reset the administrator password, 2 for the administrator ID, followed by the administrator's new password
Ipmitool User Set Password 2 chenshake
I try to add a user, yes, but I can't set administrator privileges on the user. This problem will be solved slowly later.
Set IPMI IP Address
# Ipmitool LAN set 1 ipsrc DHCP
# Ipmitool LAN Print 1
# Ipmitool LAN set 1 ipsrc static
# Ipmitool LAN Set 1 ipaddress 10.1.199.211 Setting LAN IP Address to 10.1.199.211
# Ipmitool LAN Set 1 netmask 255.255.255.0 Setting lan Subnet Mask to 255.255.255.0
# Ipmitool LAN Set 1 DEFGW ipaddr 10.1.199.1 Setting lan Default Gateway IP to 10.1.199.1
# Ipmitool LAN Print 1
Command description
Use static address: Ipmitool LAN set <channel_no> ipsrc static
Use dynamic address: Ipmitool LAN set <channel_no> ipsrc DHCP
Set Ip:ipmitool LAN set <channel_no> ipaddr <x.x.x.x>
Set Mask: Ipmitool LAN set <channel_no> netmask <x.x.x.x>
Set Gateway: Ipmitool LAN set <channel_no> DEFGW ipaddr <x.x.x.x>
Local operation-I open indicates interface Local: Ipmitool-i Open LAN Print 1
Operation remote machine-I LAN represents interface remote: ipmitool-i lan-h 10.1.199.12-u admin-p ADMIN LAN print 1
Change Server boot Mode
Ipmitool-i lan-h 10.1.199.212-u admin-p ADMIN chassis Bootdev PXE
Ipmitool-i lan-h 10.1.199.212-u admin-p ADMIN chassis Bootdev Disk
Ipmitool-i lan-h 10.1.199.212-u admin-p ADMIN chassis Bootdev CDROM
Server Power Management
Ipmitool-i lan-h 10.1.199.212-u admin-p ADMIN chassis power off
Ipmitool-i lan-h 10.1.199.212-u admin-p ADMIN chassis Power Reset
Ipmitool-i lan-h 10.1.199.212-u admin-p ADMIN chassis power on
Ipmitool-i lan-h 10.1.199.212-u admin-p ADMIN chassis power Status
IPMI View
This is a super-tiny tool that can be used by Windows or Linux to manage and view IPMI information with ease.
ftp://ftp.supermicro.com/utility/IPMIView/
http://www.chenshake.com/summary-of-ipmi/
IPMI Learning Materials