User Tools

Site Tools


computing:remote:ipmi

This is an old revision of the document!


IPMI

FIXME Some of these are old notes and may need verification or updating.

Usage: http://netkiller.github.io/monitoring/ipmitool.html

http://www.thomas-krenn.com/en/wiki/Configuring_IPMI_under_Linux_using_ipmitool

http://www.theprojectbot.com/ipmitool-cheatsheet-and-configuring-drac-from-ipmitool/

:!: The default username and password are ADMIN/ADMIN (all caps), at least for Supermicro.

Documentation

AOC-IPMI20-E BMC

  • Shares LAN1 port (nearest the Keyboard/Mouse ports)
  • Test with machine turned off to avoid host OS interference
  • Sonora Comm will use 'admin' username and change password to router password
  • UDP Port 623 (may also need TCP Port 623?)
  • BMC will not respond to ping even when working properly

Install BMC

Most new servers have IPMI settings in the BIOS. Older and cheaper BMCs require:

  • Boot to IPMI support CD and flash BMC firmware
  • IPMI 2.0
  • RMCP+

Mainboard and BMC specific

  • Bootable floppy images also on CD (needs Windows host)
  • ipnmac.exe (from DOS) sets IP and MAC addresses
  • Uses separate IP and MAC addresses (Broadcom NIC - use label on IPMI socket)
  • Uses LAN1 MAC address (Intel NIC)

Configure BMC - Linux Server

:!: Log in via SSH if you are off-site.

We need the gateway IP and MAC addresses for the IPMI interface. You may be able to get them like this:

route -n
arp -n

Supermicro Agent

:!: I have not had to use this with recent CentOS 5 or 6. Skip to ipmitool section.

This will install and add commands to /etc/rc.local to run smagent which is needed for graceful shutdowns and reboots of the Linux OS:

wget ftp://ftp.supermicro.com/CDR-0010_2.10_IPMI_Server_Managment/IPMI_Solution/Linux/GPC_Agent/GPC_Agent-2.1-050406.tar.gz

tar -xzvf GPC_Agent-2.1-050406.tar.gz
cd GPC_Agent
./quickinstall      # choose option #2

Manual commands to do the same:

modprobe ipmi_devintf
modprobe ipmi_si type=kcs ports=0xca8 regspacings=4
/usr/supermicro/smagent &

lsmod

modprobe ipmi_msghandler
modprobe ipmi_si
modprobe ipmi_devintf

ipmitool

:?: Works with IPMI kernel modules or smagent?

CentOS 6

modprobe ipmi_devintf

Install on Centos 5 (XenServer)

modprobe ipmi_devintf
modprobe ipmi_si

If ipmitool is not already installed:

yum install OpenIPMI-tools

Install on Centos 4

wget http://dag.wieers.com/rpm/packages/ipmitool/ipmitool-1.8.8-1.el4.rf.i386.rpm
rpm -Uvh ipmitool-*

Configure IPMI

Display the current configuration:

ipmitool -v lan print 1

Do the configuration:

ipmitool -v lan set 1 ipsrc static
ipmitool -v lan set 1 ipaddr <youripmiipaddress>
ipmitool -v lan set 1 netmask <youripminetmask>
ipmitool -v lan set 1 defgw ipaddr <youripmigwip>
ipmitool -v lan set 1 defgw macaddr <youripmigwmac>
ipmitool -v lan set 1 arp respond on
ipmitool -v lan set 1 auth ADMIN MD5
ipmitool -v lan set 1 access on

Show the IPMI users:

ipmitool user list 1

Configure the IPMI user (the default Supermicro 'ADMIN' user is usually #2):

ipmitool -v user set password 2 <youripmipassword>
ipmitool -v user priv 2 4
ipmitool -v channel setaccess 1 2 link=on ipmi=on callin=on privilege=4
ipmitool -v user enable 2

:!: Privilege level '4' is 'ADMINISTRATOR'.

IPMICLI (Supermicro)

:?: Use ipmitool instead?

wget ftp://ftp.supermicro.com/CDR-0010_2.10_IPMI_Server_Managment/IPMI_Solution/Linux/Administrator/CLI/readme

wget ftp://ftp.supermicro.com/CDR-0010_2.10_IPMI_Server_Managment/IPMI_Solution/Linux/Administrator/CLI/ipmicli

Management Workstation

Install IPMIView (assumes Java already installed on system):

mkdir -p ~/bin/IPMIView20
cd ~/bin/IPMIView20

wget ftp://ftp.supermicro.com/utility/IPMIView/Release/Jar/IPMIView20-Class_v2.6.44_Build080515.zip
unzip IPMIView20-Class_v2.6.44_Build080515.zip

chmod +x IPMIView20.sh

vim IPMIView20.sh

cd ~/bin/IPMIView20/
java -jar IPMIView20.jar

Troubleshooting

  • You may need to refresh the list of hosts to see them as on-line
  • Graceful reboot takes 1 minute to start
  • Can be seen on redirected text console
  • Redirected text console dies when login prompt is presented

no iKVM64 in java.library.path

Reboot the BMC

:!: Try this first!

Reboot the BMC, then try changing the configuration again:

ipmitool mc reset cold
computing/remote/ipmi.1411600999.txt.gz · Last modified: 2014/09/24 17:23 by gcooper