question about sensor sel
阿桂
guilin1985 at 126.com
Tue Apr 28 20:55:58 AEST 2020
Hi,
I didn't add this module. But, when I add "intel-ipmi-oem" module, commond "ipmitool sel list" Seems to work fine; "ipmitool sel elist" still report "Error obtaining SDR info: Requested sensor, data, or record not found"
Furthermore, "ipmitool fru" and "ipmitool sensor" becomme not work well.
By the way, if I want to show SEL in webUI event log ,what should I do?
Log:
root at lon:~# ipmitool fru
FRU Device Description : Builtin FRU Device (ID 0)
Error obtaining SDR info: Requested sensor, data, or record not found
root at lon:~# ipmitool sdr
Error obtaining SDR info: Requested sensor, data, or record not found
Unable to open SDR for reading
root at lon:~# ipmitool sensor
Error obtaining SDR info: Requested sensor, data, or record not found
Unable to open SDR for reading
root at lon:~# ipmitool sel elist
Error obtaining SDR info: Requested sensor, data, or record not found
Unable to open SDR for reading
1 | 04/28/20 | 02:16:32 UTC | Voltage #0x0a | Lower Non-critical going low | Asserted
Error obtaining SDR info: Requested sensor, data, or record not found
Unable to open SDR for reading
2 | 04/28/20 | 02:16:33 UTC | Current | Lower Non-critical going low | Asserted
Error obtaining SDR info: Requested sensor, data, or record not found
Unable to open SDR for reading
3 | 04/28/20 | 02:16:34 UTC | Other #0x09 | Lower Non-critical going low | Asserted
root at lon:~# ipmitool sel list
1 | 04/28/20 | 02:16:32 UTC | Voltage #0x0a | Lower Non-critical going low | Asserted
2 | 04/28/20 | 02:16:33 UTC | Current | Lower Non-critical going low | Asserted
3 | 04/28/20 | 02:16:34 UTC | Other #0x09 | Lower Non-critical going low | Asserted
在 2020-04-28 16:37:15,"Troy.Lee at vertiv.com" <Troy.Lee at vertiv.com> 写道:
Hi,
Do you install openbmc/intel-ipmi-oem module?
https://github.com/openbmc/intel-ipmi-oem
Thanks,
Troy Lee
From: openbmc <openbmc-bounces+troy.lee=vertiv.com at lists.ozlabs.org> On Behalf Of 阿桂
Sent: Sunday, April 26, 2020 11:37 AM
To: openbmc at lists.ozlabs.org; jason.m.bills at linux.intel.com
Subject: [ExternalEmail] question aboat sensor sel
在 2020-04-28 09:24:14,"阿桂" <guilin1985 at 126.com> 写道:
Thanks very much. I will try to do that
在 2020-04-28 03:14:14,"Bills, Jason M" <jason.m.bills at 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 at 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 at 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 at 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 at lon:/var/log# ls
>> ipmi_sel lastlog obmc-console.log private/
>> redfish state tallylog
>>
>> root at 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 at 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 at system-chassis-motherboard.service
>>
>>
>>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200428/771f4c83/attachment-0001.htm>
More information about the openbmc
mailing list