question about sensor sel

阿桂 guilin1985 at 126.com
Sun Apr 26 13:44:31 AEST 2020


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?
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/20200426/927dd853/attachment.htm>


More information about the openbmc mailing list