Bmcweb sensors cannot be shown successfully

653 Views Asked by At

I want to ask how to show the sensors reading in bmcweb with webui-vue.

After tracing the code and from openbmc doc, I thought webui-vue is getting the sensor reading information from redfish and seems like I have to completed file "association.json".

But I have no idea how to refer from meta-ibm's association.json file due to I don't have its machine structure.

I have completed hwmon system, so I can see all my sensors data in /sys/class/hwmon/hwmonXXX.

And I can request the data from dbus like busctl introspect xyz.openbmc_project.Hwmon-607868621.Hwmon1 /xyz/openbmc_project/sensors/temperature/PDB_Temp.

I also registered the sensor reading data to ipmi like below.

ipmitool sensor

So, I think the reading data is on d-bus correctly.

1

There are 1 best solutions below

0
On

There are two solutions to put your sensor data to Redfish:

  1. phosphor-hwmon + phosphor-inventory-manager

From your service name it looks like you already use phosphor-hwmon, so to push the sensor data to Redfish you will need something like this: https://gerrit.openbmc.org/c/openbmc/meta-amd/+/38320

  1. dbus-sensors + entity-manager

This is a more modern solution. For the example please look at the: https://gerrit.openbmc.org/c/openbmc/openbmc/+/42415