IPMI SEL Parsing

rgrs rgrs at protonmail.com
Thu Apr 1 23:56:06 AEDT 2021


Hi Lei,



Is FRU EEPROM required for inventory to work? My board has unprogrammed EEPROM.

I constructed the busctl command according as below, I still get “Undetermined Hardware Failure”. Please can you let me know if my config YAML has any issues?


# busctl call "xyz.openbmc_project.Logging.IPMI" "/xyz/openbmc_project/Logging/IPMI" xyz.openbmc_project.Logging.IPMI IpmiSelAdd ssaybq "Sensor message" /xyz/openbmc_project/sensors/temperature/BMC_Temp 3 0x01 0xFF 0xFF true 0x20



My Config YAML files has only one sensor for now:


sp3-ipmi-inventory-sensors.yaml

-------------------------------

/xyz/openbmc_project/inventory/system:

    eventReadingType: 111

    offset: 2

    sensorID: 144

    sensorType: 18

/xyz/openbmc_project/inventory/system/chassis/motherboard:

    eventReadingType: 3

    offset: 0

    sensorID: 140

    sensorType: 199

/xyz/openbmc_project/inventory/system/chassis/motherboard/bmc:

    eventReadingType: 0x01

    offset: 0xFF

    sensorID: 1

    sensorType: 0x01



sp3-ipmi-sensors.yaml

---------------------

1:

  sensorType: 0x01

  entityID: 0x06

  path: /xyz/openbmc_project/sensors/temperature/BMC_Temp

  sensorReadingType: 0x01

  unit: xyz.openbmc_project.Sensor.Value.Unit.DegreesC

  scale: 0

  offsetB: 0

  bExp: 0

  rExp: 0

  mutability: Mutability::Write | Mutability::Read

  serviceInterface: org.freedesktop.DBus.Properties

  readingType: readingData

  interfaces:

    xyz.openbmc_project.Sensor.Value:

      Value:

        Offsets:

          0xFF:

            type: double



sp3-ipmi-fru.yaml

-----------------

0:

  /system/chassis/motherboard/bmc:

    entityID: 6

    entityInstance: 1

    interfaces:

      xyz.openbmc_project.Inventory.Decorator.Asset:

        BuildDate:

          IPMIFruProperty: Mfg Date

          IPMIFruSection: Board

        SerialNumber:

          IPMIFruProperty: Serial Number

          IPMIFruSection: Board

        PartNumber:

          IPMIFruProperty: Part Number

          IPMIFruSection: Board

        Manufacturer:

          IPMIFruProperty: Manufacturer

          IPMIFruSection: Board

      xyz.openbmc_project.Inventory.Item:

        PrettyName:

          IPMIFruProperty: Name

          IPMIFruSection: Board

      xyz.openbmc_project.Inventory.Decorator.Revision:

        Version:

          IPMIFruProperty: FRU File ID

          IPMIFruSection: Board



associations.json – PIM recipe

------------------------------

[

    {

        "path": "system/chassis/motherboard",

        "endpoints":

        [

            {

                "types":

                {

                    "rType": "inventory",

                    "fType": "sensors"

                },

                "paths":

                [

                    "/xyz/openbmc_project/sensors/temperature/BMC_Temp"

                ]

            }

        ]

    },

      {

        "path": "system/chassis/motherboard/bmc",

        "endpoints":

        [

            {

                "types":

                {

                    "rType": "inventory",

                    "fType": "sensors"

                },

                "paths":

                [

                     "/xyz/openbmc_project/sensors/temperature/BMC_Temp"

                ]

            }

        ]

    },

    {

        "path": "system/chassis",

        "endpoints":

        [

            {

                "types":

                {

                    "rType": "chassis",

                    "fType": "all_sensors"

                },

                "paths":

                [

                    "/xyz/openbmc_project/sensors/temperature/BMC_Temp"

                ]

            }

        ]

    }

]

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, 30 March 2021 07:38, Lei Yu <yulei.sh at bytedance.com> wrote:

> On Mon, Mar 29, 2021 at 11:37 PM rgrs rgrs at protonmail.com wrote:
>
> > Hi Lei,
> > Thanks, phosphor-sel-logger logs to phosphor-logging after enabling SEL_LOGGER_SEND_TO_LOGGING_SERVICE.
> > The APIs IpmiSelAdd() adds entry to SELs (tested using busctl)
> > But, "ipmitool sel list" doesn't print correctly. It prints "Undetermined Hardware Failure" for these entries.
>
> You need to define the inventory-sensor yaml for ipmid so that it
> knows how to map the sensor id to inventories.
> Then ipmid will construct the expected sel data.
> See details in https://github.com/openbmc/phosphor-host-ipmid/blob/master/selutility.cpp#L149
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> BRs,
> Lei YU




More information about the openbmc mailing list