|
From: Duncan L. <du...@ic...> - 2004-06-11 20:18:50
|
On Mon, 2004-06-07 at 17:30, Rana wrote:
> Dear All,
> I am very new to IPMI and want to explore IPMI. So, I have chosen
> OpenIPMI package. I have downloaded the IPMI package. I have extracted
> the package, and the used configure, make and make install to install
> the package. I have also configured the BMC present on the Intel
> server using the SSU utility that comes with motherboard CD. Can now
> anyone help me in writing an example command.
> 1. How to connect to an Intel server having an BMC.
This is a loaded question. :) If you want to connect _locally_ using
OpenIPMI then you just need to make sure the modules are loaded and the
/dev/ipmi0 device is created based on the dynamic major number that was
assigned to the device. You can do this with a startup script like:
#!/bin/sh
echo "Setting up OpenIPMI driver..."
# load the ipmi modules
modprobe ipmi_msghandler
modprobe ipmi_devintf
modprobe ipmi_kcs_drv
maj=$(cat /proc/devices | awk '/ipmidev/{print $1}')
if [ "$maj" ]; then
/bin/mknod /dev/ipmi0 c $maj 0
fi
The OpenIPMI module name for "ipmi_kcs_drv" has changed to "ipmi_si" in
recent 2.6 kernels so this would need some modification there. There
also seems to be a problem preventing the new module from loading
correctly. This is probably only going to affect you if the box is
running Fedora Core 2 or SuSE 9.1.
To use the OpenIPMI interface run IPMItool with "-I open" argument.
If you are trying to connect over the LAN and have the configured the
BMC already using the Intel SSU then you should be able to run IPMItool
with "-I lan -H <hostname> -P <password>". If you have not yet
configured the lan then you will need to do it with the OpenIPMI
interface. This can either be done by hand (painstaking) or you can use
a script for automating it:
http://ipmitool.sourceforge.net/bmclanconf
This is an updated version of the bmcautoconf.sh script that is
currently in the ipmitool source under the contrib dir.
> 2. How to run an IPMI command using the Command Line Interface with
> an example.
Here are some sample commands run against one of my servers. The output
has been truncated in some cases to keep it short. All of these can
also be run through OpenIPMI kernel drivers on the local box by
replacing "-I lan -H grizzly -P demo" with "-I open".
duncan@raq:~$ ipmitool -I lan -H grizzly -P demo chassis status
System Power : on
Power Overload : false
Power Interlock : inactive
Main Power Fault : false
Power Control Fault : false
Power Restore Policy : always-off
Last Power Event : command
Chassis Intrusion : inactive
Front-Panel Lockout : inactive
Drive Fault : false
Cooling/Fan Fault : false
duncan@raq:~$ ipmitool -I lan -H grizzly -P demo sdr list
Baseboard 1.2V | 1.20 Volts | ok
Baseboard 1.25V | 1.27 Volts | ok
Baseboard 1.8V | 1.79 Volts | ok
Baseboard 5.0V | 5.02 Volts | ok
Baseboard 5VSB | 5.10 Volts | ok
Baseboard 12V | 11.97 Volts | ok
Baseboard 12VRM | 12.03 Volts | ok
Baseboard -12V | -12.11 Volts | ok
Baseboard VBAT | 3.13 Volts | ok
Baseboard Temp | 41 degrees C | ok
FntPnl Amb Temp | 31 degrees C | ok
Baseboard Fan 1 | 7752 RPM | ok
Baseboard Fan 2 | 8925 RPM | ok
Baseboard Fan 3 | 8415 RPM | ok
Processor 1 Stat | Present | ok
Processor 2 Stat | Present | ok
Processor1 Temp | 41 degrees C | ok
Processor2 Temp | 40 degrees C | ok
Processor Vccp | 1.47 Volts | ok
DIMM 1B | Installed | ok
DIMM 1A | Installed | ok
DIMM 2B | Not Installed | ok
DIMM 2A | Not Installed | ok
DIMM 3B | Not Installed | ok
DIMM 3A | Not Installed | ok
For some more example commands I would recommend this very short
document that goes over some of the features of IPMItool:
http://ipmitool.sourceforge.net/lca2004_ipmitool.pdf
-duncan
|