ipmitool version: 1.8.12
operating system reproduced on: OpenEmbedded Linux
How to reproduce:
Create an exec file with the lines:
delloem powermonitor powerconsumption watt
delloem powermonitor powerconsumptionhistory watt
Execute the same two commands from the ipmitool command line.
Execute the exec file you created.
Note that the exec file always results in an error for the second command:
"Error getting power headroom status: Command not supported on this system"
Patches to ipmi_delloem.c and ipmi_shell.c seem to fix the issue and example patches are included as an attachment.
example patches that seem to fix the problem.
Problem is in 'lib/ipmi_delloem.c', so there is no reason to pach anything else even though it fixes the issue. So NACK to the attached patch.
I'm afraid fix will be, well, complicated.
Actually, fix is quite easy, but it was pain to figure it out. Patch attached.
Diff:
Fix committed to CVS.