<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
p.xxmsonormal, li.xxmsonormal, div.xxmsonormal
{mso-style-name:x_xmsonormal;
margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="xxmsonormal">Hello, <o:p></o:p></p>
<p class="xxmsonormal"><o:p> </o:p></p>
<p class="xxmsonormal">In our current system we use both Redfish and IPMI for reading sensor values from the BMC.
<o:p></o:p></p>
<p class="xxmsonormal">The sensors are populated over dbus by different bmc internal components and aggregated by bmcweb and ipmid stacks.
<o:p></o:p></p>
<p class="xxmsonormal">The name of the dbus sensor is picked from the dbus object path.
<o:p></o:p></p>
<p class="xxmsonormal">In our system some of the sensor names are very long and have a common platform (or associated entity prefix) which is common for sensor belonging to an entity (parent chassis).
<o:p></o:p></p>
<p class="xxmsonormal"><o:p> </o:p></p>
<p class="xxmsonormal">Redfish has no limitation on name of the sensor however ipmid/ipmi tools will only consider the first 16 bytes of the sensor name.
<o:p></o:p></p>
<p class="xxmsonormal">The limitation of IPMI is coming from the spec and the length is restricted to 16 bytes. <o:p></o:p></p>
<p class="xxmsonormal"><img width="680" height="63" style="width:7.0833in;height:.6583in" id="x_x_Picture_x0020_1" src="cid:image001.png@01D981F8.F632D7E0"><o:p></o:p></p>
<p class="xxmsonormal"> <o:p></o:p></p>
<p class="MsoNormal">So when we query sensor list from over many sensors names appear as same/duplicate entries because many of them have same first 16 chars.
<o:p></o:p></p>
<p class="MsoNormal"><i>Example showing the issue. <o:p></o:p></i></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">IPMI </span>------------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">FREQ_MEMCNTL_MEM | 0xff | ok</span><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">FREQ_MEMCNTL_MEM | 0xff | ok</span><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">FREQ_MEMCNTL_MEM | 0xff | ok</span><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">FREQ_MEMCNTL_MEM | 0xff | ok<o:p></o:p></span></p>
<p class="xxmsonormal"><o:p> </o:p></p>
<p class="xxmsonormal">Redfish -----------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">/redfish/v1/Chassis/CG1_Module_PG530_1: FREQ_MEMCNTL_MEM_00_00_176_1</span><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">/redfish/v1/Chassis/CG1_Module_PG530_2: FREQ_MEMCNTL_MEM_00_01_4272_1</span><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">/redfish/v1/Chassis/CG1_Module_PG530_3: FREQ_MEMCNTL_MEM_00_02_8368_1</span><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-family:"Courier New"">/redfish/v1/Chassis/CG1_Module_PG530_4: FREQ_MEMCNTL_MEM_00_03_12464_1</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Since there is nothing much we can do about IPMI spec and we also don’t want impose limitation of 16 bytes on redfish, I was thinking of adding some sort of auto short name conversion in ipmid to avoid names coming as duplicates.
<o:p></o:p></p>
<p class="MsoNormal">Would like to receive feedback about this solution and any alternative that may exist to solve this problem. Any pointers on existing patch also would be helpful.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks <o:p></o:p></p>
<p class="MsoNormal">Rohit PAI <o:p></o:p></p>
</div>
</body>
</html>