Hi All,

The "ipmitool chassis status" returns bad "Front Panel Button
disable/enable status".

The reason is the use of erroneous mask values.

The attached patch fixes this problem.

 Bernard MANJOU


diff -Naur ipmitool-1.8.10/lib/ipmi_chassis.c 
ipmitool-1.8.10_patch/lib/ipmi_chassis.c
--- ipmitool-1.8.10/lib/ipmi_chassis.c  2008-07-09 20:14:42.000000000 +0000
+++ ipmitool-1.8.10_patch/lib/ipmi_chassis.c    2008-11-13 11:00:17.000000000 
+0000
@@ -363,10 +363,10 @@
          printf("Diag Button Disable  : %s\n", (rsp->data[3] & 0x40) ? 
"allowed" : "not allowed");
          printf("Reset Button Disable : %s\n", (rsp->data[3] & 0x20) ? 
"allowed" : "not allowed");
          printf("Power Button Disable : %s\n", (rsp->data[3] & 0x10) ? 
"allowed" : "not allowed");
-         printf("Sleep Button Disabled: %s\n", (rsp->data[3] & 0x80) ? "true" 
: "false");
-         printf("Diag Button Disabled : %s\n", (rsp->data[3] & 0x40) ? "true" 
: "false");
-         printf("Reset Button Disabled: %s\n", (rsp->data[3] & 0x20) ? "true" 
: "false");
-         printf("Power Button Disabled: %s\n", (rsp->data[3] & 0x10) ? "true" 
: "false");
+         printf("Sleep Button Disabled: %s\n", (rsp->data[3] & 0x08) ? "true" 
: "false");
+         printf("Diag Button Disabled : %s\n", (rsp->data[3] & 0x04) ? "true" 
: "false");
+         printf("Reset Button Disabled: %s\n", (rsp->data[3] & 0x02) ? "true" 
: "false");
+         printf("Power Button Disabled: %s\n", (rsp->data[3] & 0x01) ? "true" 
: "false");
       }
         }
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to