Hi there,

a couple of weeks ago Albert Chu complained about not being able to check out the PEF configuration on any of the machines he tested. The explanation for this appears to be fairly simple: Unless I'm badly mistaken most IPMI calls in ipmi-pef-and-alerting-cmds-udm.c use the wrong NetFn: The Get/Set PEF Configuration Parameters and Alert Immediate commands are part of the Sensor/Event NetFn (0x04), not of Transport (0x0c). A patch for libfreeipmi is attached. Admittedly, checking out the PEF section isn't any more successful with the patch than it used to be, but at least the error message changed from "unsupported command" to "expression failed". Don't know if that's any better, and I'm not yet familiar enough with the code to do any reasonable debugging. Anyway, the BMC seems to send a positive return code, so I suppose FreeIPMI misinterprets the response in some way.


Cheers,
Ingo
Index: libfreeipmi/src/udm/ipmi-pef-and-alerting-cmds-udm.c
===================================================================
RCS file: /sources/freeipmi/freeipmi/libfreeipmi/src/udm/ipmi-pef-and-alerting-cmds-udm.c,v
retrieving revision 1.8
diff -u -r1.8 ipmi-pef-and-alerting-cmds-udm.c
--- libfreeipmi/src/udm/ipmi-pef-and-alerting-cmds-udm.c	22 Jul 2006 05:08:00 -0000	1.8
+++ libfreeipmi/src/udm/ipmi-pef-and-alerting-cmds-udm.c	4 Sep 2006 11:57:26 -0000
@@ -132,7 +132,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -178,7 +178,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -209,7 +209,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -240,7 +240,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -335,7 +335,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -372,7 +372,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -409,7 +409,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -446,7 +446,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -483,7 +483,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -520,7 +520,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -557,7 +557,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -594,7 +594,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -631,7 +631,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -668,7 +668,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -705,7 +705,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -742,7 +742,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
@@ -779,7 +779,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
   
@@ -885,7 +885,7 @@
 
   ERR_IPMI_CMD_CLEANUP (dev, 
 			IPMI_BMC_IPMB_LUN_BMC, 
-			IPMI_NET_FN_TRANSPORT_RQ, 
+			IPMI_NET_FN_SENSOR_EVENT_RQ, 
 			obj_cmd_rq, 
 			obj_cmd_rs);
 
_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to