<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi all,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I think I figured out the error message is due to the phosphor-health-monitor package. The phosphor-health-monitor doesn't have the interface of org.freedesktop.DBus.ObjectManager and with the GetManagedObjects method call, so the getSensorMap() in the intel-ipmi-oem
 would be failed.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
=====</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
root@hudsonbay-obmc:~# busctl introspect xyz.openbmc_project.HealthMon /
<div>NAME                                TYPE      SIGNATURE RESULT/VALUE FLAGS</div>
<div>org.freedesktop.DBus.Introspectable interface -         -            -</div>
<div>.Introspect                         method    -         s            -</div>
<div>org.freedesktop.DBus.Peer           interface -         -            -</div>
<div>.GetMachineId                       method    -         s            -</div>
<div>.Ping                               method    -         -            -</div>
<div>org.freedesktop.DBus.Properties     interface -         -            -</div>
<div>.Get                                method    ss        v            -</div>
<div>.GetAll                             method    s         a{sv}        -</div>
<div>.Set                                method    ssv       -            -</div>
.PropertiesChanged                  signal    sa{sv}as  -            -<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
=====</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
As I know, the phosphor-health-monitor is a part of the base phosphor package. But there are some questions in my mind still and would like to get help here.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li><span></span>
<div>is it only for monitoring CPU and memory sensor values?  it looks like there is no explanation of it is in the phosphor-health-monitor repo.</div>
</li><li>
<div>can I remove it? If yes, will I miss any features?</div>
</li></ol>
<div>Thanks</div>
<div><br>
</div>
<div>Regards,</div>
<div>Chris Chen</div>
<div><br>
</div>
</div>
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>寄件者:</b> openbmc <openbmc-bounces+chris.chen3=flex.com@lists.ozlabs.org> 代表 Chris Chen (TPI) <Chris.Chen3@flex.com><br>
<b>寄件日期:</b> 2021年11月8日 下午 12:01<br>
<b>收件者:</b> openbmc@lists.ozlabs.org <openbmc@lists.ozlabs.org><br>
<b>主旨:</b> [phosphor-host-ipmid] Question about IPMI SDR</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
We have added 3 temp sensors by using entity-manager, and looks like we can list them with temp value reading successfully as below. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
=====</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
root@hudsonbay-obmc:~# ipmitool sdr elist
<div>BMC              | 00h | ok  |  7.1 | 27 degrees C</div>
<div>DIMM P0 ABCD P1  | 01h | ok  |  7.1 | 35 degrees C</div>
<div>DIMM P1 EFGH     | 02h | ucr |  7.1 | 40 degrees C</div>
<div>Get SDR 0003 command failed: Invalid data field in request</div>
<div>Get SDR 0003 command failed: Invalid data field in request</div>
<div>Get SDR 0003 command failed: Invalid data field in request</div>
<div>Get SDR 0003 command failed: Invalid data field in request</div>
<div>Get SDR 0003 command failed: Invalid data field in request</div>
root@hudsonbay-obmc:~#<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="margin:0px; font-size:12pt">=====</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
However, there is a kind of error message "Get SDR 0003 command failed: Invalid data field in request" always been shown behind it. I take a look at it via journal log in OpenBMC what error it is. That is:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
=====</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: GetMangagedObjects for getSensorMap failed
<div>Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: getSensorDataRecord: getSensorMap error</div>
Jan 01 00:01:24 hudsonbay-obmc ipmid[157]: ipmiStorageGetSDR: fail to get SDR<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
root@hudsonbay-obmc:~# journalctl -o json-pretty MESSAGE="GetMangagedObjects for getSensorMap failed"
<div>{</div>
<div>        "_BOOT_ID" : "d932ab64935943c1b937993b3d4c0510",</div>
<div>        "__REALTIME_TIMESTAMP" : "84903987",</div>
<div>        "_SYSTEMD_CGROUP" : "/system.slice/phosphor-ipmi-host.service",</div>
<div>        "PRIORITY" : "3",</div>
<div>        "_CAP_EFFECTIVE" : "1ffffffffff",</div>
<div>        "CODE_FUNC" : "helper_log",</div>
<div>        "_SYSTEMD_UNIT" : "phosphor-ipmi-host.service",</div>
<div>        "_SYSTEMD_SLICE" : "system.slice",</div>
<div>        "_UID" : "0",</div>
<div>        "_HOSTNAME" : "hudsonbay-obmc",</div>
<div>        "MESSAGE" : "GetMangagedObjects for getSensorMap failed",</div>
<div>        "__MONOTONIC_TIMESTAMP" : "84903992",</div>
<div>        "_MACHINE_ID" : "3e55a692862e4acfbfec1956db0d0ee0",</div>
<div>        "_SYSTEMD_INVOCATION_ID" : "20eebfb3a701452ebfc226117b2cbbe9",</div>
<div>        "SYSLOG_IDENTIFIER" : "ipmid",</div>
<div>        "_TRANSPORT" : "journal",</div>
<div>        "ERROR" : "Invalid request descriptor",</div>
<div>        "_PID" : "157",</div>
<div>        "__CURSOR" : "s=2d0eebf065d24b7fba5a24a670d2ffbf;i=30d;b=d932ab64935943c1b937993b3d4c0510;m=50f8838;t=50f8833;x=defc23b87af8e29b",</div>
<div>        "TRANSACTION_ID" : "3524473669",</div>
<div>        "CODE_LINE" : "76",</div>
<div>        "CODE_FILE" : "/usr/src/debug/intel-ipmi-oem/0.1+git999-r0/recipe-sysroot/usr/include/phosphor-logging/log.hpp",</div>
<div>        "_SOURCE_REALTIME_TIMESTAMP" : "84903950",</div>
<div>        "_EXE" : "/usr/bin/ipmid",</div>
<div>        "_GID" : "0",</div>
<div>        "_COMM" : "ipmid",</div>
<div>        "_CMDLINE" : "ipmid"</div>
}<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
=====</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have tried to figure out it but with limited capability, can someone help to provide some suggestions for me? I mean how to fix it, or I'm able to ignore it because the SDR has been listed?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Chris Chen</div>
<div>Legal Disclaimer :<br>
The information contained in this message may be privileged and confidential. <br>
It is intended to be read only by the individual or entity to whom it is addressed
<br>
or by their designee. If the reader of this message is not the intended recipient,
<br>
you are on notice that any distribution of this message, in any form, <br>
is strictly prohibited. If you have received this message in error, <br>
please immediately notify the sender and delete or destroy any copy of this message!<br>
</div>
</div>
</div>
</body>
</html>