IPMI/FreeBSD

From Teknologisk videncenter
Jump to: navigation, search

IPMI: Intelligent Platform Management Interface

Fra FreeBSD version 6.2[1] er impi indbygget i base systemet. Bemærk IPMI er et indbygget overvågningssytem på motherboardet. Oftest fundet på server motherboard.

Enable IPMI

On-the-fly

[root@mars run]#<input>kldload ipmi</input>

Hvis IPMI modulet ikke loader, er IPMI sikkert ikke indbygget på dit motherboard. Automatic load when booting

[root@mars run]#<input>echo 'ipmi_load="YES"' >> /boot/loader.conf</input>

Using ipmi

For at bruge ipmi skal ipmitool installeres som package eller via ports. herunder vist installation af package

[root@mars run]#<input>pkg_add -r ipmitool</input>

Eksempel

[root@mars run]#<input>ipmitool chassis status</input>
System Power         : on
Power Overload       : false
Power Interlock      : inactive
Main Power Fault     : false
Power Control Fault  : false
Power Restore Policy : previous
Last Power Event     : ac-failed
Chassis Intrusion    : active
Front-Panel Lockout  : inactive
Drive Fault          : false
Cooling/Fan Fault    : false

Hardware (FRU: Field Replaceable Units)

[root@mars run]#<input>ipmitool fru</input>
FRU Device Description : Builtin FRU Device (ID 0)
 Chassis Type                    : Tower
 Board Mfg Date        : Tue Jan 13 08:35:00 2004
 Board Mfg             : Intel
 Board Product         : SE7501HG2
 Board Serial          : KRH140200266
 Board Part Number     : A95718-306
 Product Manufacturer  : Intel

Sensors.

[root@mars run]#<input>ipmitool sdr</input>
Baseboard 1.2V   | 1.20 Volts        | ok
Baseboard 1.25V  | 1.25 Volts        | ok
Baseboard 1.8V   | 1.78 Volts        | ok
Baseboard 1.8VSB | 1.80 Volts        | ok
<notice>.....</notice>


System Event Log (SEL)

 ipmitool <input>sel time get</input>
01/07/2011 15:26:00
[root@mars2 ~]# <input>ipmitool sel clear</input>
Clearing SEL.  Please allow a few seconds to erase.
[root@mars2 ~]# <input>ipmitool sel list</input>
   1 | 01/07/2011 | 15:20:14 | Unknown #0xb6 | Upper Non-critical going high
   2 | 01/07/2011 | 15:20:14 | Unknown #0xb6 | Upper Critical going high
   3 | 01/07/2011 | 15:20:14 | Unknown #0xb6 | Upper Non-recoverable going high
[root@mars2 ~]# <input>ipmitool sel get 1</input>
SEL Record ID          : 0001
 Record Type           : 02
 Timestamp             : 01/07/2011 15:20:14
 Generator ID          : 0020
 EvM Revision          : 04
 Sensor Type           : Unknown
 Sensor Number         : b6
 Event Type            : Threshold
 <notice>....</notice>

References