denys denys - 2 years ago 142
Linux Question

how to obtain ipmi fru raw data?

Is there API for obtaining ipmi fru raw bytes?
I need to work with custom FRU data. I've tried to use freeipmi library - but it seems it has only API to access custom fields and does not expose API to read whole fru buffer.

Answer Source

I am not sure if any library provides special API function for reading raw FRU data. As you noticed freeipmi and openipmi provides convenient functions that provides 'cooked' data.

But openipmi (I think freeipmi) as well provides API functions for sending raw commands and and IPMI commands to get raw FRU data. Openipmi has functions ipmi_send_command_addr() and ipmi_mc_send_command() and they send an IPMI command to a specified target.

To get raw fru data you need to issue IPMI command "Get FRU Inventory Area Info" to get FRU length and then issue IPMI command "Read FRU data".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download