<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0px;">Hi,</div><div style="margin: 0px;"> I didn't add this module. But, when I add "<a href="https://github.com/openbmc/intel-ipmi-oem" style="color: rgb(52, 120, 59);">intel-ipmi-oem</a>" module, commond <span style="color: rgb(141, 148, 64);">"ipmitool sel list"</span> Seems to work fine; <span style="color: rgb(141, 148, 64);"> "ipmitool sel elist"</span> still report <span style="color: rgb(221, 64, 50);">"Error obtaining SDR info: Requested sensor, data, or record not found"</span></div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><span style="font-family: arial; font-size: 13px;">Furthermore, </span><span style="color: rgb(141, 148, 64);">"ipmitool fru" </span>and <span style="color: rgb(141, 148, 64);">"ipmitool sensor" </span>becomme not work well.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">By the way, if I want to show SEL in webUI event log ,what should I do?</div><div style="margin: 0;"><br></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Log:</span></div><div style="margin: 0;"><div style="margin: 0;"><span style="background-color: rgb(144, 166, 210); color: rgb(0, 0, 0);">root@lon:~# ipmitool fru</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">FRU Device Description : Builtin FRU Device (ID 0)</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Error obtaining SDR info: Requested sensor, data, or record not found</span></div></div><div style="margin: 0;"><div style="margin: 0;"><span style="background-color: rgb(144, 166, 210); color: rgb(0, 0, 0);">root@lon:~# ipmitool sdr</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Error obtaining SDR info: Requested sensor, data, or record not found</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Unable to open SDR for reading</span></div><div style="margin: 0;"><span style="color: rgb(0, 0, 0); background-color: rgb(144, 166, 210);">root@lon:~# ipmitool sensor</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Error obtaining SDR info: Requested sensor, data, or record not found</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Unable to open SDR for reading</span></div></div><div style="margin: 0;"><div style="margin: 0;"><span style="color: rgb(0, 0, 0); background-color: rgb(144, 166, 210);">root@lon:~# ipmitool sel elist</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Error obtaining SDR info: Requested sensor, data, or record not found</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Unable to open SDR for reading</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);"> 1 | 04/28/20 | 02:16:32 UTC | Voltage #0x0a | Lower Non-critical going low | Asserted</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Error obtaining SDR info: Requested sensor, data, or record not found</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Unable to open SDR for reading</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);"> 2 | 04/28/20 | 02:16:33 UTC | Current | Lower Non-critical going low | Asserted</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Error obtaining SDR info: Requested sensor, data, or record not found</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);">Unable to open SDR for reading</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);"> 3 | 04/28/20 | 02:16:34 UTC | Other #0x09 | Lower Non-critical going low | Asserted</span></div><div style="margin: 0;"><span style="color: rgb(0, 0, 0); background-color: rgb(144, 166, 210);">root@lon:~# ipmitool sel list </span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);"> 1 | 04/28/20 | 02:16:32 UTC | Voltage #0x0a | Lower Non-critical going low | Asserted</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);"> 2 | 04/28/20 | 02:16:33 UTC | Current | Lower Non-critical going low | Asserted</span></div><div style="margin: 0;"><span style="color: rgb(152, 150, 164);"> 3 | 04/28/20 | 02:16:34 UTC | Other #0x09 | Lower Non-critical going low | Asserted</span></div></div><div style="margin: 0;"><br></div><div><span lang="EN-US" style="font-family: Calibri, sans-serif;"><br></span></div><div><span lang="EN-US" style="font-family: Calibri, sans-serif;"><span style="font-family: Arial;">在 2020-04-28 16:37:15,"</span><a data-auto-link="1" href="mailto:Troy.Lee@vertiv.com" style="color: rgb(52, 120, 59); font-family: Arial;">Troy.Lee@vertiv.com</a><span style="font-family: Arial;">" <</span><a data-auto-link="1" href="mailto:Troy.Lee@vertiv.com" style="color: rgb(52, 120, 59); font-family: Arial;">Troy.Lee@vertiv.com</a><span style="font-family: Arial;">> 写道:</span></span></div><div><span lang="EN-US" style="font-family: Calibri, sans-serif;">Hi,</span></div><p class="MsoNormal"><span lang="EN-US" style="font-family: Calibri, sans-serif;">Do you install openbmc/intel-ipmi-oem module?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US"><a href="https://github.com/openbmc/intel-ipmi-oem" style="color: rgb(52, 120, 59);">https://github.com/openbmc/intel-ipmi-oem</a></span><span lang="EN-US" style="font-family: Calibri, sans-serif;"><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family: Calibri, sans-serif;"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family: Calibri, sans-serif;">Thanks,<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family: Calibri, sans-serif;">Troy Lee<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family: Calibri, sans-serif;"><o:p> </o:p></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;"> openbmc <openbmc-bounces+troy.lee=<a data-auto-link="1" href="mailto:vertiv.com@lists.ozlabs.org" style="color: rgb(52, 120, 59);">vertiv.com@lists.ozlabs.org</a>> <b>On Behalf Of </b></span><span lang="ZH-CN" style="font-size: 11pt;">阿桂</span><span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;"><br><b>Sent:</b> Sunday, April 26, 2020 11:37 AM<br><b>To:</b> <a data-auto-link="1" href="mailto:openbmc@lists.ozlabs.org" style="color: rgb(52, 120, 59);">openbmc@lists.ozlabs.org</a>; <a data-auto-link="1" href="mailto:jason.m.bills@linux.intel.com" style="color: rgb(52, 120, 59);">jason.m.bills@linux.intel.com</a><br><b>Subject:</b> [ExternalEmail] question aboat sensor sel</span></p><p style="margin: 0;"><br></p><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><p style="margin: 0;"><br></p><p>在 2020-04-28 09:24:14,"阿桂" <guilin1985@126.com> 写道:</p><blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><p style="margin: 0;"><br></p><p style="margin: 0;">Thanks very much. I will try to do that</p><p style="margin: 0;"><br></p><pre>在 2020-04-28 03:14:14,"Bills, Jason M" <jason.m.bills@linux.intel.com> 写道:
>
>
>On 4/25/2020 8:44 PM, 阿桂 wrote:
>> Hi, all:
>>
>> Why is the result empty when I run 'ipmitool sel list', as follows:
>> root@lon:/var/log# ipmitool sel list
>> SEL has no entries
>>
>> Below is what I changed:
>>
>> 1. I added yaml config file of those sensors 'ipmi-sensors.yaml'
>>
>> 2. I added below compling option to module 'phosphor-sel-logger'';
>> EXTRA_OECMAKE += "-DSEL_LOGGER_MONITOR_THRESHOLD_EVENTS=ON"
>>
>> 3. I modified the config settings of rsyslog as
>> https://lists.ozlabs.org/pipermail/openbmc/2019-November/019619.html
>> refer to.
>> so, I can see a journalctl log, ipmi_sel and redfish file at /var/log;
>>
>>
>> Below two commands can get wanted results. But why the command 'ipmitool
>> sel list' can't? what else should I modify?
>It looks like the only thing missing is the override to the IPMI Get SEL
>Entry command to make it look in the /var/log/ipmi_sel file instead of
>on D-Bus.
>
>You can find the override implemented in intel-ipmi-oem, here:
>https://github.com/openbmc/intel-ipmi-oem/blob/master/src/storagecommands.cpp#L827.
>
>> root@lon:/var/log# ipmitool sensor list
>> ambient_temp | na | | na | na | na
>> | na | na | na | na
>> cpu0_temp | na | | na | na | na
>> | na | na | na | na
>> cpu1_temp | na | | na | na | na
>> | na | na | na | na
>> psu_vol_in | 12.031 | Volts | ok | 0.000 |
>> 10.971 | 11.448 | 12.985 | 13.462 | 0.000
>> psu_curr_in | 0.275 | Amps | ok | 0.000 |
>> 0.275 | 0.550 | 49.775 | 69.850 | 0.000
>> psu_power_in | 3.150 | Watts | ok | 0.000 | 3.150
>> | 6.300 | 497.700 | 796.950 | 0.000
>> battery | 0.345 | Volts | ok | 0.000 | 1.995
>> | 2.490 | 3.300 | 3.495 | 0.000
>> fan1 | na | | na | na | na
>> | na | na | na | na
>> fan2 | na | | na | na | na
>> | na | na | na | na
>> fan3 | na | | na | na | na
>> | na | na | na | na
>> fan4 | na | | na | na | na
>> | na | na | na | na
>> fan5 | na | | na | na | na
>> | na | na | na | na
>> fan6 | na | | na | na | na
>> | na | na | na | na
>> fan7 | na | | na | na | na
>> | na | na | na | na
>> fan8 | na | | na | na | na
>> | na | na | na | na
>>
>> root@lon:/var/log# journalctl |grep sel
>> Apr 25 15:16:36 lon sel-logger[240]: battery sensor crossed a warning
>> low threshold going low. Reading=0.344000 Threshold=2.500000.
>> Apr 25 15:16:36 lon sel-logger[240]: battery sensor crossed a critical
>> low threshold going low. Reading=0.344000 Threshold=2.000000.
>> Apr 25 15:16:36 lon sel-logger[240]: psu_curr_in sensor crossed a
>> warning low threshold going low. Reading=0.361000 Threshold=0.600000.
>> Apr 25 15:16:36 lon sel-logger[240]: psu_power_in sensor crossed a
>> warning low threshold going low. Reading=4.667744 Threshold=6.500000.
>>
>> root@lon:/var/log# ls
>> ipmi_sel lastlog obmc-console.log private/
>> redfish state tallylog
>>
>> root@lon:/var/log# cat ipmi_sel
>> 2020-04-25T15:16:36.125187+00:00
>> 1,2,50FFFF,20,/xyz/openbmc_project/sensors/voltage/battery,1
>> 2020-04-25T15:16:36.245679+00:00
>> 1,2,52FFFF,20,/xyz/openbmc_project/sensors/voltage/battery,1
>> 2020-04-25T15:16:36.705420+00:00
>> 2,2,50FFFF,20,/xyz/openbmc_project/sensors/current/psu_curr_in,1
>> 2020-04-25T15:16:36.764327+00:00
>> 3,2,50FFFF,20,/xyz/openbmc_project/sensors/power/psu_power_in,1
>> root@lon:/var/log# cat redfish
>> 2020-04-25T15:16:19.003251+00:00
>> OpenBMC.0.1.ServiceFailure,phosphor-pid-control.service
>> 2020-04-25T15:16:36.125187+00:00
>> OpenBMC.0.1.SensorThresholdWarningLowGoingLow,battery,0.344000,2.500000
>> 2020-04-25T15:16:36.245679+00:00
>> OpenBMC.0.1.SensorThresholdCriticalLowGoingLow,battery,0.344000,2.000000
>> 2020-04-25T15:16:36.705420+00:00
>> OpenBMC.0.1.SensorThresholdWarningLowGoingLow,psu_curr_in,0.361000,0.600000
>> 2020-04-25T15:16:36.764327+00:00
>> OpenBMC.0.1.SensorThresholdWarningLowGoingLow,psu_power_in,4.667744,6.500000
>> 2020-04-25T15:16:51.611885+00:00
>> OpenBMC.0.1.ServiceFailure,obmc-read-eeprom@system-chassis-motherboard.service
>>
>>
>>
>>
>>
>>
</pre></div><br><br><span title="neteasefooter"><p> </p></span></blockquote></div><br><br><span title="neteasefooter"><p> </p></span>