<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Konstantin<div class=""><br class=""></div><div class="">I already fixed. I install module rsyslog and the SEL log will show when I run ipmitool.</div><div class=""><br class=""></div><div class="">Thanks for your help!</div><div class=""><br class=""></div><div class="">BR</div><div class="">Paul</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">Konstantin Klubnichkin <<a href="mailto:kitsok@yandex-team.ru" class="">kitsok@yandex-team.ru</a>> 於 2021年10月1日 下午6:41 寫道:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello Paul</div><div class=""> </div><div class="">We don't have this in our config files.</div><div class=""> </div><div class="">Instead we use phosphor-sel-logger  (included using IMAGE_INSTALL_append variable in machine config).</div><div class=""> </div><div class="">In my bbappend file for phosphor-sel-logger there are following features enabled:</div><div class=""><div class="">#Enable threshold monitoring</div><div class="">EXTRA_OECMAKE += "-DSEL_LOGGER_MONITOR_THRESHOLD_EVENTS=ON"</div><div class="">EXTRA_OECMAKE += "-DREDFISH_LOG_MONITOR_PULSE_EVENTS=ON"</div></div><div class=""> </div><div class=""> </div><div class="">01.10.2021, 10:52, "吳秉昌" <<a href="mailto:wh800805@gmail.com" class="">wh800805@gmail.com</a>>:</div><blockquote class=""><div style="word-wrap:break-word" class="">Hi Johnathan & Konstantin<div class=""> </div><div class="">Thanks for your explanation. It is very helpful to me.</div><div class="">I adjust the json file to fix this issue.</div><div class=""> </div><div class="">And I have one more question need help.</div><div class="">I try to enable the SEL, I add below setting </div><div class=""><div class=""><font color="#ff9300" class="">PACKAGECONFIG:append = " log-threshold log-pulse send-to-logger”</font></div></div><div class=""> </div><div class="">When event occurred, but SEL still empty.</div><div class=""> </div><div class="">event occurred log: </div><div class=""><div class="">Jan 01 00:04:25 fws7830bmc adcsensor[283]: Sensor MB_P3V3 high threshold 3.531 assert: value 3.588 raw data 1794</div><div class="">Jan 01 00:06:08 fws7830bmc adcsensor[283]: Sensor MB_P3V3 high threshold 3.531 assert: value 3.54 raw data 1770</div></div><div class=""> </div><div class="">Ipmitoo sel log:</div><div class=""><div class="">SEL Information</div><div class="">Version          : 1.5 (v1.5, v2 compliant)</div><div class="">Entries          : 0</div><div class="">Free Space       : 65535 bytes or more</div><div class="">Percent Used     : unknown</div><div class="">Last Add Time    : Not Available</div><div class="">Last Del Time    : Not Available</div><div class="">Overflow         : false</div><div class="">Supported Cmds   : 'Reserve’ </div></div><div class=""> </div><div class="">Please give me some advice. Thanks</div><div class=""> </div><div class="">BR</div><div class="">Paul</div><div class=""> </div><div class=""><div class=""> <blockquote class=""><div class="">Johnathan Mantey <<a href="mailto:johnathanx.mantey@intel.com" rel="noopener noreferrer" class="">johnathanx.mantey@intel.com</a>> 於 2021年9月30日 下午11:00 寫道:</div> <div class=""><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">On 9/30/21 3:13 AM, 吳秉昌 wrote:</span><blockquote style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Hi Andrei<br class="">My question is that I set MB_P12V "upper critical" is 13.23, "upper non critical" is 12.6, etc .<br class="">When I login web page, I can see the setting what I want.<br class="">But when I use “Ipmitool sensor” command, the response is wrong. Like below<br class="">MB P12V          | 7.215      | Volts      | ok    | na        |6.386     | 6.723     | 7.429     | 7.829     | na<br class="">I am not sure am I miss something.<br class="">Thanks<br class="">Paul</blockquote><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">ipmitool uses SDR records to calculate how to translate the 8-bit sensor reading into a value in range.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">For intel-ipmi-oem the SDRs are generated on the fly, with most being Type 1. The Type 1 has a M, M(B), R, and R(B) value that is calculated from the values in the JSON. The code inside this section uses several of the entries in the JSON to generate the M and R values.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">We were recently bit by this calculation, because the calculation used the "worst case" values of reading(min), reading(max), UC, and UNC, and combined them for the M and R.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Somehow the UNC and UC values were outside the reading range, and the M and R values were calculated in a way that made the sensor output incorrect as displayed by ipmitool.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">You may want to investigate if the SDRs are correct. Use 'impitool sdr dump sdrs.bin' and find the SDR for the sensors of interest and see if the M and R values are sensible.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">If they aren't find the code generating those values and identify how the values are created. Adjust your JSON as necessary.</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""> <blockquote style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><blockquote class="">Andrei Kartashev <<a href="mailto:a.kartashev@yadro.com" rel="noopener noreferrer" class="">a.kartashev@yadro.com</a>> 於 2021年9月30日 下午6:03 寫道:<br class=""><br class="">Hello,<br class=""><br class="">What is your question exactly?<br class="">If it is about precision, then you should take in account that IPMI use<br class="">8-bit variables to represent values and some coefficients which<br class="">calculated based on MinValue/MaxValue parameters of corresponding<br class="">Sensor interface.<br class="">You will never get exact values in IPMI, unless you values can fit to<br class="">8-bit integer.<br class=""><br class="">On Thu, 2021-09-30 at 17:07 +0800, 吳秉昌 wrote:<blockquote class="">Hi all<br class=""><br class="">I add the sensor in entity-manager config like below<br class="">{<!-- --><br class="">            "Index": 2,<br class="">            "Name": "MB_VMEM",<br class="">            "PowerState": "On",<br class="">            "ScaleFactor": 1,<br class="">            "Thresholds": [<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 1.32<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 1.26<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 1.14<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 1.08<br class="">                }<br class="">            ],<br class="">            "Type": "ADC"<br class="">        },<br class="">        {<!-- --><br class="">            "Index": 3,<br class="">            "Name": "MB_P12V",<br class="">            "PowerState": "On",<br class="">            "ScaleFactor": 0.23,<br class="">            "Thresholds": [<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 13.23<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 12.6<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 11.4<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 10.77<br class="">                }<br class="">            ],<br class="">            "Type": "ADC"<br class="">        },<br class="">        {<!-- --><br class="">            "Index": 4,<br class="">            "Name": "MB_P5V",<br class="">            "PowerState": "On",<br class="">            "ScaleFactor": 0.55,<br class="">            "Thresholds": [<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 5.48<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 5.24<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 4.76<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 4.48<br class="">                }<br class="">            ],<br class="">            "Type": "ADC"<br class="">        },<br class="">        {<!-- --><br class="">            "Index": 5,<br class="">            "Name": "MB_P5V_SB",<br class="">            "PowerState": "On",<br class="">            "ScaleFactor": 0.25,<br class="">            "Thresholds": [<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 5.48<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "greater than",<br class="">                    "Name": "upper non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 5.24<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower non critical",<br class="">                    "Severity": 0,<br class="">                    "Value": 4.76<br class="">                },<br class="">                {<!-- --><br class="">                    "Direction": "less than",<br class="">                    "Name": "lower critical",<br class="">                    "Severity": 1,<br class="">                    "Value": 4.48<br class="">                }<br class="">            ],<br class="">            "Type": "ADC"<br class="">        },<br class=""><br class=""><br class="">I use the busctrl command to see MB_P5V_SB information, it is normal.<br class=""><a href="mailto:root@fws7830bmc" class="">root@fws7830bmc</a>:~# busctl introspect --no-pager<br class="">xyz.openbmc_project.EntityManager<br class="">/xyz/openbmc_project/inventory/system/board/FWS7830_<br class="">Baseboard/MB_P5V<br class="">NAME                                              TYPE      SIGNATURE<br class="">RESULT/VALUE         FLAGS<br class="">org.freedesktop.DBus.Introspectable               interface -<br class="">  -                    -<br class="">.Introspect                                       method    -<br class="">  s                    -<br class="">org.freedesktop.DBus.Peer                         interface -<br class="">  -                    -<br class="">.GetMachineId                                     method    -<br class="">  s                    -<br class="">.Ping                                             method    -<br class="">  -                    -<br class="">org.freedesktop.DBus.Properties                   interface -<br class="">  -                    -<br class="">.Get                                              method    ss<br class="">  v                    -<br class="">.GetAll                                           method    s<br class="">  a{sv}                -<br class="">.Set                                              method    ssv<br class="">  -                    -<br class="">.PropertiesChanged                                signal<br class="">  sa{sv}as  -                    -<br class="">xyz.openbmc_project.Configuration.ADC             interface -<br class="">  -                    -<br class="">.Index                                            property  t<br class="">  4                    emits-change<br class="">.Name                                             property  s<br class="">  "MB_P5V"             emits-change<br class="">.PowerState                                       property  s<br class="">  "On"                 emits-change<br class="">.ScaleFactor                                      property  d<br class="">  0.55                 emits-change<br class="">.Type                                             property  s<br class="">  "ADC"                emits-change<br class="">xyz.openbmc_project.Configuration.ADC.Thresholds0 interface -<br class="">  -                    -<br class="">.Delete                                           method    -<br class="">  -                    -<br class="">.Direction                                        property  s<br class="">  "greater than"       emits-change writable<br class="">.Name                                             property  s<br class="">  "upper critical"     emits-change writable<br class="">.Severity                                         property  d<br class="">  1                    emits-change writable<br class="">.Value                                            property  d<br class="">  5.48                 emits-change writable<br class="">xyz.openbmc_project.Configuration.ADC.Thresholds1 interface -<br class="">  -                    -<br class="">.Delete                                           method    -<br class="">  -                    -<br class="">.Direction                                        property  s<br class="">  "greater than"       emits-change writable<br class="">.Name                                             property  s<br class="">  "upper non critical" emits-change writable<br class="">.Severity                                         property  d<br class="">  0                    emits-change writable<br class="">.Value                                            property  d<br class="">  5.24                 emits-change writable<br class="">xyz.openbmc_project.Configuration.ADC.Thresholds2 interface -<br class="">  -                    -<br class="">.Delete                                           method    -<br class="">  -                    -<br class="">.Direction                                        property  s<br class="">  "less than"          emits-change writable<br class="">.Name                                             property  s<br class="">  "lower non critical" emits-change writable<br class="">.Severity                                         property  d<br class="">  0                    emits-change writable<br class="">.Value                                            property  d<br class="">  4.76                 emits-change writable<br class="">xyz.openbmc_project.Configuration.ADC.Thresholds3 interface -<br class="">  -                    -<br class="">.Delete                                           method    -<br class="">  -                    -<br class="">.Direction                                        property  s<br class="">  "less than"          emits-change writable<br class="">.Name                                             property  s<br class="">  "lower critical"     emits-change writable<br class="">.Severity                                         property  d<br class="">  1                    emits-change writable<br class="">.Value                                            property  d<br class="">  4.48                 emits-change writable<br class=""><br class="">But I use "ipmitoo sensor” command, it return the error information<br class="">below as<br class="">MB P3V3          | 3.271      | Volts      | ok    | na        |<br class="">2.947     | 3.046     | 3.511     | 3.596     | na<br class="">MB P5V           | 2.982      | Volts      | ok    | na        |<br class="">2.662     | 2.829     | 3.123     | 3.264     | na<br class="">MB P5V SB        | 5.048      | Volts      | ok    | na        |<br class="">4.484     | 4.766     | 5.245     | 5.471     | na<br class="">MB P12V          | 7.215      | Volts      | ok    | na        |<br class="">6.386     | 6.723     | 7.429     | 7.829     | na<br class=""><br class="">Please give me some advise.<br class=""><br class="">Many thanks<br class="">Paul<br class=""><br class=""></blockquote><br class="">-- <br class="">Best regards,<br class="">Andrei Kartashev<br class=""><br class=""> </blockquote></blockquote><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">-- </span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Johnathan Mantey</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Senior Software Engineer</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">*azad te**chnology partners*</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Contributing to Technology Innovation since 1992</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Phone: (503) 712-6764</span><br style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">Email: </span><a href="mailto:johnathanx.mantey@intel.com" rel="noopener noreferrer" style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">johnathanx.mantey@intel.com</a><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""> <</span><a href="mailto:johnathanx.mantey@intel.com" rel="noopener noreferrer" style="font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">mailto:johnathanx.mantey@intel.com</a><span style="float:none;font-family:'helvetica';font-size:14px;font-style:normal;font-weight:normal;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="">></span></div></blockquote></div></div></div></blockquote><div class=""> </div><div class=""> </div><div class="">-- </div><div class="">Best regards,</div><div class="">Konstantin Klubnichkin,</div><div class="">lead firmware engineer,</div><div class="">server hardware R&D group,</div><div class="">Yandex Moscow office.</div><div class="">tel: +7-903-510-33-33</div><div class=""> </div></div></blockquote></div><br class=""></div></body></html>