openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Ipmitool command & entity-manager question
@ 2021-09-30  9:07 吳秉昌
  2021-09-30 10:03 ` Andrei Kartashev
  0 siblings, 1 reply; 6+ messages in thread
From: 吳秉昌 @ 2021-09-30  9:07 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 9340 bytes --]

Hi all

I add the sensor in entity-manager config like below
{
            "Index": 2,
            "Name": "MB_VMEM",
            "PowerState": "On",
            "ScaleFactor": 1,
            "Thresholds": [
                {
                    "Direction": "greater than",
                    "Name": "upper critical",
                    "Severity": 1,
                    "Value": 1.32
                },
                {
                    "Direction": "greater than",
                    "Name": "upper non critical",
                    "Severity": 0,
                    "Value": 1.26
                },
                {
                    "Direction": "less than",
                    "Name": "lower non critical",
                    "Severity": 0,
                    "Value": 1.14
                },
                {
                    "Direction": "less than",
                    "Name": "lower critical",
                    "Severity": 1,
                    "Value": 1.08
                }
            ],
            "Type": "ADC"
        },
        {
            "Index": 3,
            "Name": "MB_P12V",
            "PowerState": "On",
            "ScaleFactor": 0.23,
            "Thresholds": [
                {
                    "Direction": "greater than",
                    "Name": "upper critical",
                    "Severity": 1,
                    "Value": 13.23
                },
                {
                    "Direction": "greater than",
                    "Name": "upper non critical",
                    "Severity": 0,
                    "Value": 12.6
                },
                {
                    "Direction": "less than",
                    "Name": "lower non critical",
                    "Severity": 0,
                    "Value": 11.4
                },
                {
                    "Direction": "less than",
                    "Name": "lower critical",
                    "Severity": 1,
                    "Value": 10.77
                }
            ],
            "Type": "ADC"
        },
        {
            "Index": 4,
            "Name": "MB_P5V",
            "PowerState": "On",
            "ScaleFactor": 0.55,
            "Thresholds": [
                {
                    "Direction": "greater than",
                    "Name": "upper critical",
                    "Severity": 1,
                    "Value": 5.48
                },
                {
                    "Direction": "greater than",
                    "Name": "upper non critical",
                    "Severity": 0,
                    "Value": 5.24
                },
                {
                    "Direction": "less than",
                    "Name": "lower non critical",
                    "Severity": 0,
                    "Value": 4.76
                },
                {
                    "Direction": "less than",
                    "Name": "lower critical",
                    "Severity": 1,
                    "Value": 4.48
                }
            ],
            "Type": "ADC"
        },
        {
            "Index": 5,
            "Name": "MB_P5V_SB",
            "PowerState": "On",
            "ScaleFactor": 0.25,
            "Thresholds": [
                {
                    "Direction": "greater than",
                    "Name": "upper critical",
                    "Severity": 1,
                    "Value": 5.48
                },
                {
                    "Direction": "greater than",
                    "Name": "upper non critical",
                    "Severity": 0,
                    "Value": 5.24
                },
                {
                    "Direction": "less than",
                    "Name": "lower non critical",
                    "Severity": 0,
                    "Value": 4.76
                },
                {
                    "Direction": "less than",
                    "Name": "lower critical",
                    "Severity": 1,
                    "Value": 4.48
                }
            ],
            "Type": "ADC"
        },


I use the busctrl command to see MB_P5V_SB information, it is normal.
root@fws7830bmc:~# busctl introspect --no-pager xyz.openbmc_project.EntityManager /xyz/openbmc_project/inventory/system/board/FWS7830_
Baseboard/MB_P5V
NAME                                              TYPE      SIGNATURE RESULT/VALUE         FLAGS
org.freedesktop.DBus.Introspectable               interface -         -                    -
.Introspect                                       method    -         s                    -
org.freedesktop.DBus.Peer                         interface -         -                    -
.GetMachineId                                     method    -         s                    -
.Ping                                             method    -         -                    -
org.freedesktop.DBus.Properties                   interface -         -                    -
.Get                                              method    ss        v                    -
.GetAll                                           method    s         a{sv}                -
.Set                                              method    ssv       -                    -
.PropertiesChanged                                signal    sa{sv}as  -                    -
xyz.openbmc_project.Configuration.ADC             interface -         -                    -
.Index                                            property  t         4                    emits-change
.Name                                             property  s         "MB_P5V"             emits-change
.PowerState                                       property  s         "On"                 emits-change
.ScaleFactor                                      property  d         0.55                 emits-change
.Type                                             property  s         "ADC"                emits-change
xyz.openbmc_project.Configuration.ADC.Thresholds0 interface -         -                    -
.Delete                                           method    -         -                    -
.Direction                                        property  s         "greater than"       emits-change writable
.Name                                             property  s         "upper critical"     emits-change writable
.Severity                                         property  d         1                    emits-change writable
.Value                                            property  d         5.48                 emits-change writable
xyz.openbmc_project.Configuration.ADC.Thresholds1 interface -         -                    -
.Delete                                           method    -         -                    -
.Direction                                        property  s         "greater than"       emits-change writable
.Name                                             property  s         "upper non critical" emits-change writable
.Severity                                         property  d         0                    emits-change writable
.Value                                            property  d         5.24                 emits-change writable
xyz.openbmc_project.Configuration.ADC.Thresholds2 interface -         -                    -
.Delete                                           method    -         -                    -
.Direction                                        property  s         "less than"          emits-change writable
.Name                                             property  s         "lower non critical" emits-change writable
.Severity                                         property  d         0                    emits-change writable
.Value                                            property  d         4.76                 emits-change writable
xyz.openbmc_project.Configuration.ADC.Thresholds3 interface -         -                    -
.Delete                                           method    -         -                    -
.Direction                                        property  s         "less than"          emits-change writable
.Name                                             property  s         "lower critical"     emits-change writable
.Severity                                         property  d         1                    emits-change writable
.Value                                            property  d         4.48                 emits-change writable

But I use "ipmitoo sensor” command, it return the error information below as
MB P3V3          | 3.271      | Volts      | ok    | na        | 2.947     | 3.046     | 3.511     | 3.596     | na        
MB P5V           | 2.982      | Volts      | ok    | na        | 2.662     | 2.829     | 3.123     | 3.264     | na        
MB P5V SB        | 5.048      | Volts      | ok    | na        | 4.484     | 4.766     | 5.245     | 5.471     | na        
MB P12V          | 7.215      | Volts      | ok    | na        | 6.386     | 6.723     | 7.429     | 7.829     | na 

Please give me some advise.

Many thanks
Paul 


[-- Attachment #2: Type: text/html, Size: 26607 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-10-13  9:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-30  9:07 Ipmitool command & entity-manager question 吳秉昌
2021-09-30 10:03 ` Andrei Kartashev
2021-09-30 10:13   ` 吳秉昌
2021-09-30 15:00     ` Johnathan Mantey
2021-10-01  7:52       ` 吳秉昌
     [not found]         ` <99511633084704@mail.yandex-team.ru>
2021-10-13  9:05           ` 吳秉昌

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).