question about sensor sel
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?
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,[email protected]
Quoted 10 lines · 阿桂
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 entriesBelow is what I changed:
1. I added yaml config file of those sensors '
ipmi-sensors.yaml'
Quoted 8 lines
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_seland 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.
Quoted 57 lines
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 | naroot@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 tallylogroot@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,[email protected]
Thanks very much. I will try to thant
Quoted 105 lines · Jason M
Quoted 13 lines · 阿桂
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 entriesBelow 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"Quoted 8 lines
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_selfile 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.Quoted 74 lines
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 | naroot@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 tallylogroot@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,[email protected]
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@lon:~# ipmitool fru FRU Device Description : Builtin FRU Device (ID 0) Error obtaining SDR info: Requested sensor, data, or record not found root@lon:~# ipmitool sdr Error obtaining SDR info: Requested sensor, data, or record not found Unable to open SDR for reading root@lon:~# ipmitool sensor Error obtaining SDR info: Requested sensor, data, or record not found Unable to open SDR for reading root@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@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,"[email protected]" <[email protected]> 写道: Hi,
Do you install openbmc/intel-ipmi-oem module?
https://github.com/openbmc/intel-ipmi-oem
Thanks,
Troy Lee
From: openbmc <[email protected]> On Behalf Of 阿桂
Sent: Sunday, April 26, 2020 11:37 AM
To: [email protected]; [email protected]
Subject: [ExternalEmail] question aboat sensor sel
在 2020-04-28 09:24:14,"阿桂" <[email protected]> 写道:
Thanks very much. I will try to do that
Quoted 105 lines · Jason M
Quoted 13 lines · 阿桂
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 entriesBelow 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"Quoted 8 lines
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_selfile 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.Quoted 74 lines
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 | naroot@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 tallylogroot@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,[email protected]