All of lore.kernel.org
 help / color / mirror / Atom feed
* IPMI SEL logs from phosphor-logging
@ 2021-06-24  5:20 George Hung (洪忠敬)
  2021-06-24  8:50 ` Lei YU
  0 siblings, 1 reply; 3+ messages in thread
From: George Hung (洪忠敬) @ 2021-06-24  5:20 UTC (permalink / raw)
  To: yulei.sh; +Cc: openbmc, Fran Hsu (徐誌謙), Brandon Kim

Hi Lei,

I enable SEL_LOGGER_SEND_TO_LOGGING_SERVICE option for phosphor-sel-logger and then would generate IPMI SEL logs from phosphor-logging successfully.

But the phosphor-logging still has other events issued from elog function and also put them in the "/var/lib/phosphor-logging/errors" directory.

For example:

00000000  03 00 00 00 03 00 00 00  03 00 00 00 67 ff e6 38   |............g..8|
00000010  7a 01 00 00 32 00 00 00  00 00 00 00 78 79 7a 2e  |z...2.......xyz.|
00000020  6f 70 65 6e 62 6d 63 5f  70 72 6f 6a 65 63 74 2e   |openbmc_project.|
00000030  43 65 72 74 73 2e 45 72  72 6f 72 2e 49 6e 76 61  |Certs.Error.Inva|
00000040  6c 69 64 43 65 72 74 69  66 69 63 61 74 65 01 00  |lidCertificate..|
00000050  00 00 00 00 00 00 09 00  00 00 00 00 00 00 5f 50  |.............._P|
00000060  49 44 3d 38 37 35 34 00  00 00 00 00 00 00 00 00  |ID=8754.........|
00000070  19 00 00 00 00 00 00 00  76 33 2e 37 2e 30 2d 34  |........v3.7.0-4|
00000080  2d 67 66 32 36 39 36 39  66 64 34 2d 64 69 72 74  |-gf26969fd4-dirt|
00000090  79 67 ff e6 38 7a 01 00  00                     |yg..8z...|
00000099

This event type is not IPMI System/OEM SEL, so "ipmitool sel elist" would result in the unspecified error:

# ipmitool sel elist
Get SEL Entry 0 command failed: Unspecified error
Get SEL Entry 0 command failed: Unspecified error

How do you deal with these events that not belong to IPMI SEL logs ?


Thanks.

Best Regards 
George Hung


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: IPMI SEL logs from phosphor-logging
  2021-06-24  5:20 IPMI SEL logs from phosphor-logging George Hung (洪忠敬)
@ 2021-06-24  8:50 ` Lei YU
  2021-06-24 10:32   ` George Hung (洪忠敬)
  0 siblings, 1 reply; 3+ messages in thread
From: Lei YU @ 2021-06-24  8:50 UTC (permalink / raw)
  To: George Hung (洪忠敬)
  Cc: openbmc, yulei.sh, Fran Hsu (徐誌謙), Brandon Kim

On Thu, Jun 24, 2021 at 1:21 PM George Hung (洪忠敬)
<George.Hung@quantatw.com> wrote:
>
> Hi Lei,
>
> I enable SEL_LOGGER_SEND_TO_LOGGING_SERVICE option for phosphor-sel-logger and then would generate IPMI SEL logs from phosphor-logging successfully.
>
> But the phosphor-logging still has other events issued from elog function and also put them in the "/var/lib/phosphor-logging/errors" directory.
>
> For example:
>
> 00000000  03 00 00 00 03 00 00 00  03 00 00 00 67 ff e6 38   |............g..8|
> 00000010  7a 01 00 00 32 00 00 00  00 00 00 00 78 79 7a 2e  |z...2.......xyz.|
> 00000020  6f 70 65 6e 62 6d 63 5f  70 72 6f 6a 65 63 74 2e   |openbmc_project.|
> 00000030  43 65 72 74 73 2e 45 72  72 6f 72 2e 49 6e 76 61  |Certs.Error.Inva|
> 00000040  6c 69 64 43 65 72 74 69  66 69 63 61 74 65 01 00  |lidCertificate..|
> 00000050  00 00 00 00 00 00 09 00  00 00 00 00 00 00 5f 50  |.............._P|
> 00000060  49 44 3d 38 37 35 34 00  00 00 00 00 00 00 00 00  |ID=8754.........|
> 00000070  19 00 00 00 00 00 00 00  76 33 2e 37 2e 30 2d 34  |........v3.7.0-4|
> 00000080  2d 67 66 32 36 39 36 39  66 64 34 2d 64 69 72 74  |-gf26969fd4-dirt|
> 00000090  79 67 ff e6 38 7a 01 00  00                     |yg..8z...|
> 00000099
>
> This event type is not IPMI System/OEM SEL, so "ipmitool sel elist" would result in the unspecified error:
>
> # ipmitool sel elist
> Get SEL Entry 0 command failed: Unspecified error
> Get SEL Entry 0 command failed: Unspecified error
>
> How do you deal with these events that not belong to IPMI SEL logs ?

Such logs are mapped to the system sensor as "Undetermined system
hardware failure".
e.g.

  23 | 06/21/2021 | 06:26:35 | System Event #0xf0 | Undetermined
system hardware failure | Asserted

See https://github.com/openbmc/phosphor-host-ipmid/blob/master/selutility.cpp#L365
for details.

So you need to define the inventory sensor of
"/xyz/openbmc_project/inventory/system" in the system's
ipmi-inventory-sensors.yaml, then such events could be mapped to this
inventory if there is no CALLOUT or no SEL metadata in the logging
entry.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: IPMI SEL logs from phosphor-logging
  2021-06-24  8:50 ` Lei YU
@ 2021-06-24 10:32   ` George Hung (洪忠敬)
  0 siblings, 0 replies; 3+ messages in thread
From: George Hung (洪忠敬) @ 2021-06-24 10:32 UTC (permalink / raw)
  To: Lei YU
  Cc: openbmc, yulei.sh, Fran Hsu (徐誌謙), Brandon Kim

Hi Lei,

It can work now.

# ipmitool sel list
   1 | 06/24/21 | 10:28:13 UTC | Watchdog2 #0xfb | Hard reset | Asserted
   2 | 06/24/21 | 10:29:01 UTC | System Event #0xfe | Undetermined system hardware failure | Asserted


Thanks a lot for your suggestion.

Best Regards
George Hung

>-----Original Message-----
>From: openbmc
><openbmc-bounces+george.hung=quantatw.com@lists.ozlabs.org> On Behalf
>Of Lei YU
>Sent: Thursday, June 24, 2021 4:51 PM
>To: George Hung (洪忠敬) <George.Hung@quantatw.com>
>Cc: openbmc@lists.ozlabs.org; yulei.sh@bytedance.com; Fran Hsu (徐誌謙)
><Fran.Hsu@quantatw.com>; Brandon Kim <brandonkim@google.com>
>Subject: Re: IPMI SEL logs from phosphor-logging
>
>On Thu, Jun 24, 2021 at 1:21 PM George Hung (洪忠敬)
><George.Hung@quantatw.com> wrote:
>>
>> Hi Lei,
>>
>> I enable SEL_LOGGER_SEND_TO_LOGGING_SERVICE option for
>phosphor-sel-logger and then would generate IPMI SEL logs from
>phosphor-logging successfully.
>>
>> But the phosphor-logging still has other events issued from elog function
>and also put them in the "/var/lib/phosphor-logging/errors" directory.
>>
>> For example:
>>
>> 00000000  03 00 00 00 03 00 00 00  03 00 00 00 67 ff e6 38
>|............g..8|
>> 00000010  7a 01 00 00 32 00 00 00  00 00 00 00 78 79 7a 2e
>|z...2.......xyz.|
>> 00000020  6f 70 65 6e 62 6d 63 5f  70 72 6f 6a 65 63 74 2e
>|openbmc_project.|
>> 00000030  43 65 72 74 73 2e 45 72  72 6f 72 2e 49 6e 76 61
>> |Certs.Error.Inva|
>> 00000040  6c 69 64 43 65 72 74 69  66 69 63 61 74 65 01 00
>> |lidCertificate..|
>> 00000050  00 00 00 00 00 00 09 00  00 00 00 00 00 00 5f 50
>> |.............._P|
>> 00000060  49 44 3d 38 37 35 34 00  00 00 00 00 00 00 00 00
>> |ID=8754.........|
>> 00000070  19 00 00 00 00 00 00 00  76 33 2e 37 2e 30 2d 34
>> |........v3.7.0-4|
>> 00000080  2d 67 66 32 36 39 36 39  66 64 34 2d 64 69 72 74
>|-gf26969fd4-dirt|
>> 00000090  79 67 ff e6 38 7a 01 00  00                     |yg..8z...|
>> 00000099
>>
>> This event type is not IPMI System/OEM SEL, so "ipmitool sel elist" would
>result in the unspecified error:
>>
>> # ipmitool sel elist
>> Get SEL Entry 0 command failed: Unspecified error Get SEL Entry 0
>> command failed: Unspecified error
>>
>> How do you deal with these events that not belong to IPMI SEL logs ?
>
>Such logs are mapped to the system sensor as "Undetermined system
>hardware failure".
>e.g.
>
>  23 | 06/21/2021 | 06:26:35 | System Event #0xf0 | Undetermined system
>hardware failure | Asserted
>
>See
>https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.c
>om%2Fopenbmc%2Fphosphor-host-ipmid%2Fblob%2Fmaster%2Fselutility.cpp
>%23L365&amp;data=04%7C01%7Cgeorge.hung%40quantatw.com%7Cf68ba01
>df9e346e8e30608d936ed2fa3%7C179b032707fc4973ac738de7313561b2%7C1
>%7C0%7C637601215194095440%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4
>wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&am
>p;sdata=phOO0fROGy4ibYIxmmzeXcE5tNnBKy5oyKft2E4PJAQ%3D&amp;reserv
>ed=0
>for details.
>
>So you need to define the inventory sensor of
>"/xyz/openbmc_project/inventory/system" in the system's
>ipmi-inventory-sensors.yaml, then such events could be mapped to this
>inventory if there is no CALLOUT or no SEL metadata in the logging entry.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-24 10:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24  5:20 IPMI SEL logs from phosphor-logging George Hung (洪忠敬)
2021-06-24  8:50 ` Lei YU
2021-06-24 10:32   ` George Hung (洪忠敬)

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.