arcress0 / ipmiutil

ipmiutil is an easy to use set of IPMI server management utilities. It can get/set sensor readings & thresholds, automate SEL management, do SOL console, etc. Supports Linux, Windows, BSD, Solaris, MacOSX. The only IPMI project tool that runs natively on Windows. See http://ipmiutil.sf.net for rpms, etc. (formerly called panicsel). It can run driverless in Linux for use on boot media or embedded environments.
BSD 3-Clause "New" or "Revised" License
33 stars 5 forks source link

ipmiutil sensor displays wrong value with sensor larger than 255 #10

Open vien20010 opened 1 year ago

vien20010 commented 1 year ago

Step to reproduce: ipmiutil sensor -N <BMC_IP> -U <BMC_USER> -P <BMC_PASSWORD> -F lan2

Expected result: All sensors will return the same reading value and state with ipmitool result.

Actual result All sensors with sensor id > 255 will return wrong value.

arcress0 commented 1 year ago

The sensor id is defined as 1 byte in the IPMI spec, and it is stored as an integer in ipmiutil/isensor.c I need to see the debug output to see what is going wrong. Can you send me the debug output, adding -x to the command?

vien20010 commented 1 year ago

ipmiutil use Get Sensor Reading command which defines 1 byte sensor ID in IPMI v2 spec, session 35.14 image image

arcress0 commented 1 year ago

I missed that. So since the IPMI spec only has one byte for the sensor number, what method does other software use to address sensor numbers > 255 on this firmware?

arcress0 commented 1 year ago

Since this is beyond the IPMI specification, I need to know what firmware/platform/software uses sensor numbers greater than 255.