Hi,
There is a patch/workaround in ipmi_sdr.c from Al Chu which is patching the 
record id from a get SDR response when the record id is not matching the 
requested record id. 

Unfortunately when the BMC's SDR record id's do not start with 0000 this leads 
to an incorrect overwriting of the first record id with 0000. 

I stumbled across this when evaluating the DCMI extensions to ipmitool from 
Intel (www.intel.com/go/DCMI)


The patch is against the current version in CVS.

Best regards,
Holger Liebig


$ diff -Nur ipmi_sdr_ori.c ipmi_sdr.c
--- ipmi_sdr_ori.c      2009-08-20 07:11:08.000000000 +0200
+++ ipmi_sdr.c  2009-08-21 08:53:02.666897000 +0200
@@ -718,7 +718,11 @@
         * completion code CBh = "Requested Sensor, data, or record
         * not present"
         */
-       if (sdr_rs.id != itr->next) {
+       /* HLiebig:
+        * Note: This is not true when asking for the very first record
+        * with the special ID 0000
+        */
+       if ((itr->next != 0) && (sdr_rs.id != itr->next)) {
                lprintf(LOG_DEBUG, "SDR record id mismatch: 0x%04x", sdr_rs.id);

                sdr_rs.id = itr->next;
        }

Attachment: ipmi_sdr.patch
Description: ipmi_sdr.patch

------------------------------------------------------------------------------
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
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to