<div>Hello Paul,</div><div><br />As Andrei mentioned, you've got incorrect value in IPMI, it's 7.215V, and it's beyond thresholds.</div><div> </div><div><div>This is probably due to lack of MinValue/MaxValue in entity-manager file, you should indicate minimum and maximum values (at best) for each sensor.</div><div> </div><div>For example, here is how it's done in my config:</div></div><div><div>        {   </div><div>            "Index": 5,</div><div>            "BridgeGpio": [ { "Name": "BAT_SENSE", "Polarity": "High" } ],</div><div>            "Name": "P_VBAT",</div><div>            "ScaleFactor":0.333,</div><div>           <strong> "Min": 0, "Max": 4.0,</strong></div><div>            "Type": "ADC",</div><div>            "Thresholds": [</div><div>                { "Direction": "less than", "Name": "lower non critical", "Severity": 0, "Value": 2.4 },</div><div>                { "Direction": "less than", "Name": "lower critical", "Severity": 1, "Value": 2.2 }</div><div>            ]</div><div>        },</div><div> </div><div>Hope this helps.</div></div><div> </div><div>30.09.2021, 13:13, "吳秉昌" <wh800805@gmail.com>:</div><blockquote><p>Hi Andrei<br /><br />My question is that I set MB_P12V "upper critical" is 13.23, "upper non critical" is 12.6, etc .<br />When I login web page, I can see the setting what I want.<br />But when I use “Ipmitool sensor” command, the response is wrong. Like below<br /><br />MB P12V | 7.215 | Volts | ok | na |6.386 | 6.723 | 7.429 | 7.829 | na<br /><br />I am not sure am I miss something.<br /><br />Thanks<br />Paul<br /> </p><blockquote> Andrei Kartashev <<a href="mailto:a.kartashev@yadro.com" rel="noopener noreferrer">a.kartashev@yadro.com</a>> 於 2021年9月30日 下午6:03 寫道&#xff1a;<br /> <br /> Hello,<br /> <br /> What is your question exactly?<br /> If it is about precision, then you should take in account that IPMI use<br /> 8-bit variables to represent values and some coefficients which<br /> calculated based on MinValue/MaxValue parameters of corresponding<br /> Sensor interface.<br /> You will never get exact values in IPMI, unless you values can fit to<br /> 8-bit integer.<br /> <br /> On Thu, 2021-09-30 at 17:07 +0800, 吳秉昌 wrote:<blockquote> Hi all<br /> <br /> I add the sensor in entity-manager config like below<br /> {<!-- --><br />             "Index": 2,<br />             "Name": "MB_VMEM",<br />             "PowerState": "On",<br />             "ScaleFactor": 1,<br />             "Thresholds": [<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper critical",<br />                     "Severity": 1,<br />                     "Value": 1.32<br />                 },<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper non critical",<br />                     "Severity": 0,<br />                     "Value": 1.26<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower non critical",<br />                     "Severity": 0,<br />                     "Value": 1.14<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower critical",<br />                     "Severity": 1,<br />                     "Value": 1.08<br />                 }<br />             ],<br />             "Type": "ADC"<br />         },<br />         {<!-- --><br />             "Index": 3,<br />             "Name": "MB_P12V",<br />             "PowerState": "On",<br />             "ScaleFactor": 0.23,<br />             "Thresholds": [<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper critical",<br />                     "Severity": 1,<br />                     "Value": 13.23<br />                 },<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper non critical",<br />                     "Severity": 0,<br />                     "Value": 12.6<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower non critical",<br />                     "Severity": 0,<br />                     "Value": 11.4<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower critical",<br />                     "Severity": 1,<br />                     "Value": 10.77<br />                 }<br />             ],<br />             "Type": "ADC"<br />         },<br />         {<!-- --><br />             "Index": 4,<br />             "Name": "MB_P5V",<br />             "PowerState": "On",<br />             "ScaleFactor": 0.55,<br />             "Thresholds": [<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper critical",<br />                     "Severity": 1,<br />                     "Value": 5.48<br />                 },<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper non critical",<br />                     "Severity": 0,<br />                     "Value": 5.24<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower non critical",<br />                     "Severity": 0,<br />                     "Value": 4.76<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower critical",<br />                     "Severity": 1,<br />                     "Value": 4.48<br />                 }<br />             ],<br />             "Type": "ADC"<br />         },<br />         {<!-- --><br />             "Index": 5,<br />             "Name": "MB_P5V_SB",<br />             "PowerState": "On",<br />             "ScaleFactor": 0.25,<br />             "Thresholds": [<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper critical",<br />                     "Severity": 1,<br />                     "Value": 5.48<br />                 },<br />                 {<!-- --><br />                     "Direction": "greater than",<br />                     "Name": "upper non critical",<br />                     "Severity": 0,<br />                     "Value": 5.24<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower non critical",<br />                     "Severity": 0,<br />                     "Value": 4.76<br />                 },<br />                 {<!-- --><br />                     "Direction": "less than",<br />                     "Name": "lower critical",<br />                     "Severity": 1,<br />                     "Value": 4.48<br />                 }<br />             ],<br />             "Type": "ADC"<br />         },<br /> <br /> <br /> I use the busctrl command to see MB_P5V_SB information, it is normal.<br /> <a href="mailto:root@fws7830bmc" rel="noopener noreferrer">root@fws7830bmc</a>:~# busctl introspect --no-pager<br /> xyz.openbmc_project.EntityManager<br /> /xyz/openbmc_project/inventory/system/board/FWS7830_<br /> Baseboard/MB_P5V<br /> NAME TYPE SIGNATURE<br /> RESULT/VALUE FLAGS<br /> org.freedesktop.DBus.Introspectable interface -<br />   - -<br /> .Introspect method -<br />   s -<br /> org.freedesktop.DBus.Peer interface -<br />   - -<br /> .GetMachineId method -<br />   s -<br /> .Ping method -<br />   - -<br /> org.freedesktop.DBus.Properties interface -<br />   - -<br /> .Get method ss<br />   v -<br /> .GetAll method s<br />   a{sv} -<br /> .Set method ssv<br />   - -<br /> .PropertiesChanged signal<br />   sa{sv}as - -<br /> xyz.openbmc_project.Configuration.ADC interface -<br />   - -<br /> .Index property t<br />   4 emits-change<br /> .Name property s<br />   "MB_P5V" emits-change<br /> .PowerState property s<br />   "On" emits-change<br /> .ScaleFactor property d<br />   0.55 emits-change<br /> .Type property s<br />   "ADC" emits-change<br /> xyz.openbmc_project.Configuration.ADC.Thresholds0 interface -<br />   - -<br /> .Delete method -<br />   - -<br /> .Direction property s<br />   "greater than" emits-change writable<br /> .Name property s<br />   "upper critical" emits-change writable<br /> .Severity property d<br />   1 emits-change writable<br /> .Value property d<br />   5.48 emits-change writable<br /> xyz.openbmc_project.Configuration.ADC.Thresholds1 interface -<br />   - -<br /> .Delete method -<br />   - -<br /> .Direction property s<br />   "greater than" emits-change writable<br /> .Name property s<br />   "upper non critical" emits-change writable<br /> .Severity property d<br />   0 emits-change writable<br /> .Value property d<br />   5.24 emits-change writable<br /> xyz.openbmc_project.Configuration.ADC.Thresholds2 interface -<br />   - -<br /> .Delete method -<br />   - -<br /> .Direction property s<br />   "less than" emits-change writable<br /> .Name property s<br />   "lower non critical" emits-change writable<br /> .Severity property d<br />   0 emits-change writable<br /> .Value property d<br />   4.76 emits-change writable<br /> xyz.openbmc_project.Configuration.ADC.Thresholds3 interface -<br />   - -<br /> .Delete method -<br />   - -<br /> .Direction property s<br />   "less than" emits-change writable<br /> .Name property s<br />   "lower critical" emits-change writable<br /> .Severity property d<br />   1 emits-change writable<br /> .Value property d<br />   4.48 emits-change writable<br /> <br /> But I use "ipmitoo sensor” command, it return the error information<br /> below as<br /> MB P3V3 | 3.271 | Volts | ok | na |<br /> 2.947 | 3.046 | 3.511 | 3.596 | na<br /> MB P5V | 2.982 | Volts | ok | na |<br /> 2.662 | 2.829 | 3.123 | 3.264 | na<br /> MB P5V SB | 5.048 | Volts | ok | na |<br /> 4.484 | 4.766 | 5.245 | 5.471 | na<br /> MB P12V | 7.215 | Volts | ok | na |<br /> 6.386 | 6.723 | 7.429 | 7.829 | na<br /> <br /> Please give me some advise.<br /> <br /> Many thanks<br /> Paul<br /> </blockquote> <br /> --<br /> Best regards,<br /> Andrei Kartashev<br /> <br /> </blockquote></blockquote><div> </div><div> </div><div>-- </div><div>Best regards,</div><div>Konstantin Klubnichkin,</div><div>lead firmware engineer,</div><div>server hardware R&D group,</div><div>Yandex Moscow office.</div><div>tel: +7-903-510-33-33</div><div> </div>