From: rgrs <rgrs@protonmail.com>
To: Lei Yu <yulei.sh@bytedance.com>
Cc: "Bills, Jason M" <jason.m.bills@linux.intel.com>,
openbmc <openbmc@lists.ozlabs.org>
Subject: Re: IPMI SEL Parsing
Date: Thu, 01 Apr 2021 12:56:06 +0000 [thread overview]
Message-ID: <2FVxBtO4gLzVYqZqGL8XwOcI2a_r6x0CaPGmGozxe_VeNp3Y3y05vSntyZPvfn4EDRsHsLjWJnrVSzbeeVDKhPvLILmFKB3hw-MFaEvepAw=@protonmail.com> (raw)
In-Reply-To: <CAGm54UHGr+F-vnO69PLr0MN699BDEDsZiHYoX1WPmF1DZnQLVw@mail.gmail.com>
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@bytedance.com> wrote:
> On Mon, Mar 29, 2021 at 11:37 PM rgrs rgrs@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
next prev parent reply other threads:[~2021-04-01 12:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 12:49 IPMI SEL Parsing rgrs
2021-03-25 22:16 ` Matt Spinler
2021-03-25 22:29 ` Bruce Mitchell
2021-03-26 8:04 ` rgrs
2021-03-26 13:47 ` Bruce Mitchell
2021-03-26 16:08 ` Bills, Jason M
2021-03-26 21:00 ` Andrew Jeffery
2021-03-28 2:51 ` Lei Yu
2021-03-29 15:36 ` rgrs
2021-03-30 2:08 ` Lei Yu
2021-04-01 12:56 ` rgrs [this message]
2021-04-02 1:56 ` Lei Yu
2021-04-08 12:39 ` rgrs
2021-04-09 7:05 ` 回复:[External] " 许晓菡
2021-04-09 7:30 ` [External] " Lei Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='2FVxBtO4gLzVYqZqGL8XwOcI2a_r6x0CaPGmGozxe_VeNp3Y3y05vSntyZPvfn4EDRsHsLjWJnrVSzbeeVDKhPvLILmFKB3hw-MFaEvepAw=@protonmail.com' \
--to=rgrs@protonmail.com \
--cc=jason.m.bills@linux.intel.com \
--cc=openbmc@lists.ozlabs.org \
--cc=yulei.sh@bytedance.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.