Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 056C8C636CD for ; Fri, 10 Feb 2023 16:35:01 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PCzq81Lskz3f4W for ; Sat, 11 Feb 2023 03:35:00 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=YjL4NqSI; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=inventron.com.tr (client-ip=185.216.113.70; helo=ns1.ihsdnsx51.com; envelope-from=zehra.ozdemir@inventron.com.tr; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=inventron.com.tr header.i=@inventron.com.tr header.a=rsa-sha256 header.s=default header.b=YjL4NqSI; dkim-atps=neutral Received: from ns1.ihsdnsx51.com (ns1.ihsdnsx51.com [185.216.113.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PCznz2kbtz30CT for ; Sat, 11 Feb 2023 03:33:56 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventron.com.tr; s=default; t=1676046831; bh=Wq33WiXzjndXdq51WDBwm/A/e1a3Pna5HWXs6ILAdJo=; h=Received:Received:From:To:Subject; b=YjL4NqSIS5qeVIpemoHgTBs7obGRWZ0aE9Ds0zLhjI/gGn5svTvAPcYAgkLa98smH 9Lc+ZjDeTKwdH3bLWLpGXDd/seikabQpaK6gyL2e4LhlxjwkI+qljId9B2BIpQYJTr CDL1ccYtUQDW435u/a6lIE5atD/r+ojr/jDuoTYY= Received: (qmail 2821266 invoked from network); 10 Feb 2023 19:33:51 +0300 Received: from 78.189.148.199.static.ttnet.com.tr (HELO INVLT5250ZO) (78.189.148.199) by ns1.ihsdnsx51.com with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 10 Feb 2023 19:33:50 +0300 From: To: Subject: PSU Sensors Association with Entity Manager Date: Fri, 10 Feb 2023 19:33:52 +0300 Message-ID: <000001d93d6d$7618b2c0$624a1840$@inventron.com.tr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01D93D86.9B6834B0" X-Mailer: Microsoft Outlook 16.0 Thread-Index: Adk9ZSkyL+xBCufORFmtSRuCN80U+Q== Content-Language: en-us X-PPP-Message-ID: <167604683133.2821260.10653277331904788743@ns1.ihsdnsx51.com> X-PPP-Vhost: inventron.com.tr X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "'M. Erhan Yigitbasi'" Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" This is a multipart message in MIME format. ------=_NextPart_000_0001_01D93D86.9B6834B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, We are trying to implement psu sensors with entity-manager by defining chassis and power supply in separate json configuration file according to entity-manager's sample configurations. PSU sensors are not displayed under /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors but under /xyz/openbmc_project/inventory/system/powersupply/{powersupplyID}/all_sensor s. And they are not shown in the Web UI. Here is the powersupply.json configuration we used: { "Exposes": [ { "Address": "0x58", "Bus": "3", "Labels": [ "iin", "iout1", "iout2", "fan1", "vin", "vout1", "vout2", "pin", "pout1", "pout2", "temp1" ], "Name": "Some_PSU", "PollRate": 5.0, "Type": "pmbus" } ], "Name": "Some Power Supply Name", "Probe": "TRUE", "Type": "PowerSupply", "xyz.openbmc_project.Inventory.Decorator.Asset": { "Manufacturer": "SomeManufacturer", "Model": "SomeModel", "PartNumber": "SomePart", "SerialNumber": "SomeSerial" } } We examined the Inventory and LEDs page from bmcweb logs and we saw that sensorAssocPath does not include our psu sensors in the getInventoryItemAssociation() method in sensors.hpp. sensorAssocPath filled from sensorNames vector and this vector comes from /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors as much as we understand. So our question is how to show psu sensors in the WebUI and what can possibly be wrong with our configuration. Do we certainly need to list psu sensors under /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors? Also what needs to be done to show the manufacturer and model information of Power Supply in UI too? ------=_NextPart_000_0001_01D93D86.9B6834B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

We are = trying to implement psu sensors with entity-manager by defining chassis = and power supply in separate json configuration file according to = entity-manager’s sample configurations.  PSU sensors are not = displayed under = /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors but = under = /xyz/openbmc_project/inventory/system/powersupply/{powersupplyID}/all_sen= sors. And they are not shown in the Web UI. Here is the powersupply.json = configuration we used:

{

    = "Exposes": [

     &= nbsp;  {

     &= nbsp;      "Address": "0x58",

     &= nbsp;      "Bus": "3",

     &= nbsp;      "Labels": [

     &= nbsp;          "iin",

     &= nbsp;          "iout1",

     &= nbsp;          "iout2",

     &= nbsp;          "fan1",

     &= nbsp;          "vin",

     &= nbsp;          "vout1",

     &= nbsp;          "vout2",

     &= nbsp;          "pin",

     &= nbsp;          "pout1",

     &= nbsp;          "pout2",

     &= nbsp;          "temp1"

     &= nbsp;      ],

     &= nbsp;      "Name": "Some_PSU",

     &= nbsp;      "PollRate": 5.0,

     &= nbsp;      "Type": "pmbus"

     &= nbsp;  }

    = ],

   =  "Name": "Some Power Supply = Name",

    = "Probe": "TRUE",

    = "Type": "PowerSupply",

    = "xyz.openbmc_project.Inv= entory.Decorator.Asset": {

     &= nbsp;  "Manufacturer": "SomeManufacturer"<= /span>,

     &= nbsp;  "Model": "SomeModel"<= span style=3D'font-size:10.0pt;font-family:"Courier = New";color:black;mso-fareast-language:TR'>,

     &= nbsp;  "PartNumber"= : "SomePart",

     &= nbsp;  "SerialNumber": "SomeSerial"=

    = }

}

We examined the Inventory and LEDs page from bmcweb = logs and we saw that sensorAssocPath does not include our psu sensors in = the getInventoryItemAssociation() method in sensors.hpp. sensorAssocPath = filled from sensorNames vector and this vector comes from = /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors as = much as we understand. So our question is how to show psu sensors in the = WebUI and what can possibly be wrong with our configuration. Do we = certainly need to list psu sensors under = /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors? = Also what needs to be done to show the manufacturer and model = information of Power Supply in UI too?

------=_NextPart_000_0001_01D93D86.9B6834B0--