ipmitool / test

0 stars 0 forks source link

ipmievd not logging correctly for shared sensors #43

Open AlexanderAmelkin opened 15 years ago

AlexanderAmelkin commented 15 years ago

Reported by: Unknown User (*anonymous) Original Ticket: ipmitool/bugs/275

I've noticed on our systems that ipmievd does not print the correct logging message for drive bay sensors. The drive bays are Compact Sensor (type 2) in the SDR, and indicate that this is a shared record (Share Count = 8).

The SDR has a single entry for drive slots, sensor #80 with share count = 8. The next sensor number in the SDR is #90. When a drive is pulled/inserted, the SEL will contain entries for sensor numbers #8x.

ipmievd will only print correctly for sensor #80 (Slot 0). I've traced this down to ipmi_sdr_find_sdr_by_numtype in lib/ipmi_sdr.c. This function only searches for an exact sensor number to SDR match.

I'm proposing to change ipmi_sdr.c to support reverse lookup of sensor range for shared compact sensors in ipmi_sdr_find_sdr_by_numtype().

Signed-off-by: Jordan Hargrave <Jordan_hargrave@dell.com>

AlexanderAmelkin commented 15 years ago

Original comment by: Patrick Mealey

AlexanderAmelkin commented 11 years ago

Ticket moved from /p/ipmitool/patches/33/

Original comment by: Zdenek Styblik

AlexanderAmelkin commented 11 years ago

Original comment by: Zdenek Styblik