ipmitool has a bug in that it attempts to inject an event that isn't quite IPMI compliant (easy to overlook).
I just realized I forgot to submit this patch ever.... sorry
diff -urN ipmitool-1.8.11/lib/ipmi_event.c
ipmitool-1.8.11-eventfix/lib/ipmi_event.c
--- ipmitool-1.8.11/lib/ipmi_event.c 2009-02-25 15:38:52.000000000
-0500
+++ ipmitool-1.8.11-eventfix/lib/ipmi_event.c 2009-03-17
09:48:20.000000000 -0400
@@ -97,7 +97,7 @@
if (chmed == IPMI_CHANNEL_MEDIUM_SYSTEM) {
/* system interface, need extra generator ID */
req.msg.data_len = 8;
- rqdata[0] = 0x20;
+ rqdata[0] = 0x41;
memcpy(rqdata+1, emsg, sizeof(struct platform_event_msg));
}
else {
Try this patch and recompile.
If this is objectionable/non-obvious to developers, let me know and I can
dig up the appropriate part of the IPMI spec to say that the generator id
should look like that.
From: Darth Vader <[email protected]>
To: [email protected]
Date: 09/04/2009 01:25
Subject: [Ipmitool-devel] ipmitool error when trying to generate an event
(Platform Event Message command failed: Invalid data field in
request)
Hi
I am trying to generate an event using the ipmitool on an IBM x3650 box
running RHEL5.4 beta.
This is what i tried:
ipmitool event 1
Sending SAMPLE event: Temperature - Upper Critical - Going High
0 | Pre-Init Time-stamp | Temperature #0x30 | Upper Critical going
high
Platform Event Message command failed: Invalid data field in request
What is going wrong? Is there some configuration problem?
The node in question is 64-bit.
uname -a
Linux int001st001 2.6.18-158.el5 #1 SMP Mon Jul 13 16:20:46 EDT 2009 x86_64
x86_64 x86_64 GNU/Linux
cat /etc/issue
Red Hat Enterprise Linux Server release 5.4 Beta (Tikanga)
Kernel \r on an \m
IPMI seems to be OK:
service ipmi status
ipmi_msghandler module loaded.
ipmi_si module loaded.
ipmi_devintf module loaded.
/dev/ipmi0 exists.
And i can get some data too:
ipmitool -I open bmc info
Device ID : 32
Device Revision : 0
Firmware Revision : 1.1
IPMI Version : 2.0
Manufacturer ID : 2
Manufacturer Name : Unknown (0x02)
Product ID : 220 (0x00dc)
Product Name : Unknown (0xDC)
Device Available : yes
Provides Device SDRs : no
Additional Device Support :
Sensor Device
SDR Repository Device
SEL Device
FRU Inventory Device
IPMB Event Receiver
IPMB Event Generator
Chassis Device
Aux Firmware Rev Info :
0x00
0x00
0x00
0x00
and
ipmitool event state list
[r...@int001st001 ~]# ipmitool sel elist
1 | 09/01/2009 | 08:37:30 | Event Logging Disabled SEL Fullness | Log
area reset/cleared | Asserted
2 | 09/01/2009 | 11:22:03 | Power Supply PS 1 Status | Power Supply AC
lost | Asserted
3 | 09/01/2009 | 11:22:03 | Power Supply Power Unit | Redundancy Lost
4 | 09/01/2009 | 11:23:02 | Power Supply PS 1 Status | Power Supply AC
lost | Deasserted
5 | 09/01/2009 | 11:23:02 | Power Supply Power Unit | Fully Redundant
6 | 09/01/2009 | 11:34:55 | Power Supply PS 1 Status | Power Supply AC
lost | Asserted
7 | 09/01/2009 | 11:34:55 | Power Supply Power Unit | Redundancy Lost
8 | 09/01/2009 | 11:35:31 | Power Supply PS 1 Status | Power Supply AC
lost | Deasserted
9 | 09/01/2009 | 11:35:31 | Power Supply Power Unit | Fully Redundant
The same problem is also seen when ipmitool is run on a similar node
running RHEL5.3.
regards
rishi
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ipmitool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Ipmitool-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
