All of lore.kernel.org
 help / color / mirror / Atom feed
* What is the purpose of  xyz.openbmc_project.Inventory.Item.Global interface and getGlobalPath in HealthPopulate ?
@ 2022-09-14 14:16 Francine Sauvage
  2022-09-15 18:50 ` Gunnar Mills
  0 siblings, 1 reply; 3+ messages in thread
From: Francine Sauvage @ 2022-09-14 14:16 UTC (permalink / raw)
  To: openbmc


[-- Attachment #1.1: Type: text/plain, Size: 1145 bytes --]

Hi all,

I would like to set the Status/Health of a target directly that target is not a sensor.

I saw HealthPopulate, composed of 2 parts:

  *   getAllStatusAssociations like all_sensors => linked to a rela sensor => not interested
  *   getGlobalPath => cannot understand how it works ? Should I add this interface to a dbus object, and the magic appears ?

I would be grateful if you have any example !

I apologize for my French, do not hesitate to ask me if my question is not understandable,

Kind Regards,
[Atos logo]
Francine SAUVAGE
Team Leader - R&D, BDS
Atos France
Mobile: +33 6 21 43 11 21
R&D, BDS<https://www.youtube.com/watch?v=P5g8tSWkCkU>
Avenue Jean Jaurès - France
atos.net<https://atos.net/>
[LinkedIn icon]<https://www.linkedin.com/in/francine-sauvage-consultant/> [Twitter icon] <https://twitter.com/fsauvage>  [Facebook icon] <https://www.facebook.com/Atos/>  [Youtube icon] <https://www.youtube.com/user/Atos>  [cid:image006.png@01D8C853.AC14BA70] <https://github.com/frsauvage> [cid:image007.png@01D8C853.AC14BA70] <https://hub.docker.com/u/francine78>




TT: [Thursday - Friday]





[-- Attachment #1.2: Type: text/html, Size: 13648 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 3376 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 663 bytes --]

[-- Attachment #4: image003.png --]
[-- Type: image/png, Size: 624 bytes --]

[-- Attachment #5: image004.png --]
[-- Type: image/png, Size: 530 bytes --]

[-- Attachment #6: image005.png --]
[-- Type: image/png, Size: 623 bytes --]

[-- Attachment #7: image006.png --]
[-- Type: image/png, Size: 600 bytes --]

[-- Attachment #8: image007.png --]
[-- Type: image/png, Size: 656 bytes --]

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

* Re: What is the purpose of xyz.openbmc_project.Inventory.Item.Global interface and getGlobalPath in HealthPopulate ?
  2022-09-14 14:16 What is the purpose of xyz.openbmc_project.Inventory.Item.Global interface and getGlobalPath in HealthPopulate ? Francine Sauvage
@ 2022-09-15 18:50 ` Gunnar Mills
  2022-09-16 13:28   ` Francine Sauvage
  0 siblings, 1 reply; 3+ messages in thread
From: Gunnar Mills @ 2022-09-15 18:50 UTC (permalink / raw)
  To: Francine Sauvage, openbmc

On 9/14/2022 8:16 AM, Francine Sauvage wrote:
> 
> I would like to set the Status/Health of a target directly that target 
> is not a sensor.
> 
> I saw HealthPopulate, composed of 2 parts:
> 
>   * getAllStatusAssociations like all_sensors => linked to a rela sensor
>     => not interested
>   * getGlobalPath => cannot understand how it works ? Should I add this
>     interface to a dbus object, and the magic appears ?
> 
> I would be grateful if you have any example !
> 

As I understand it, Inventory.Item.Global is a way to designate what 
resources should have the Redfish health rollup from their children.

Inventory Items like Chassis or System would be good candidates for this 
Inventory.Item.Global interface. An example is a Redfish Chassis with 
Health Rollup from children resources like power supplies and fans.

https://github.com/openbmc/docs/blob/master/designs/redfish-health-rolllup.md

https://github.com/openbmc/phosphor-dbus-interfaces/blob/1133524601de2ffc27ddcbd05ff6afc8b5cc1420/yaml/xyz/openbmc_project/Inventory/Item/Global.interface.yaml

https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/health.hpp

https://github.com/openbmc/s2600wf-misc/commit/dc7bbdcb62c593011671afe30471cc8fff6ebb19


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

* RE: What is the purpose of xyz.openbmc_project.Inventory.Item.Global interface and getGlobalPath in HealthPopulate ?
  2022-09-15 18:50 ` Gunnar Mills
@ 2022-09-16 13:28   ` Francine Sauvage
  0 siblings, 0 replies; 3+ messages in thread
From: Francine Sauvage @ 2022-09-16 13:28 UTC (permalink / raw)
  To: Gunnar Mills, openbmc

Thank you so much !
I will try it asap 😊

Kind Regards,

Francine SAUVAGE
Team Leader – R&D, BDS
Atos France
Mobile: +33 6 21 43 11 21
R&D, BDS
Avenue Jean Jaurès – France
atos.net
     







TT: [Thursday - Friday]





-----Message d'origine-----
De : Gunnar Mills <gmills@linux.vnet.ibm.com> 
Envoyé : jeudi 15 septembre 2022 20:50
À : Francine Sauvage <francine.sauvage@atos.net>; openbmc@lists.ozlabs.org
Objet : Re: What is the purpose of xyz.openbmc_project.Inventory.Item.Global interface and getGlobalPath in HealthPopulate ?

Caution: External email. Do not open attachments or click links, unless this email comes from a known sender and you know the content is safe.


On 9/14/2022 8:16 AM, Francine Sauvage wrote:
>
> I would like to set the Status/Health of a target directly that target 
> is not a sensor.
>
> I saw HealthPopulate, composed of 2 parts:
>
>   * getAllStatusAssociations like all_sensors => linked to a rela sensor
>     => not interested
>   * getGlobalPath => cannot understand how it works ? Should I add this
>     interface to a dbus object, and the magic appears ?
>
> I would be grateful if you have any example !
>

As I understand it, Inventory.Item.Global is a way to designate what resources should have the Redfish health rollup from their children.

Inventory Items like Chassis or System would be good candidates for this Inventory.Item.Global interface. An example is a Redfish Chassis with Health Rollup from children resources like power supplies and fans.

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fdocs%2Fblob%2Fmaster%2Fdesigns%2Fredfish-health-rolllup.md&amp;data=05%7C01%7Cfrancine.sauvage%40atos.net%7Cb8d30759f61a414ba24408da974b2944%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C637988646317375302%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=F2OvCqGeoFwUxKw3VTpuMeWMTlMMQjr70hn60%2BZWw9s%3D&amp;reserved=0

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fphosphor-dbus-interfaces%2Fblob%2F1133524601de2ffc27ddcbd05ff6afc8b5cc1420%2Fyaml%2Fxyz%2Fopenbmc_project%2FInventory%2FItem%2FGlobal.interface.yaml&amp;data=05%7C01%7Cfrancine.sauvage%40atos.net%7Cb8d30759f61a414ba24408da974b2944%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C637988646317375302%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=vLj1cfQ5ND3IGO2sEcBl3Ua2kIYNz3BMl3pL0yrxFTU%3D&amp;reserved=0

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fbmcweb%2Fblob%2Fmaster%2Fredfish-core%2Flib%2Fhealth.hpp&amp;data=05%7C01%7Cfrancine.sauvage%40atos.net%7Cb8d30759f61a414ba24408da974b2944%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C637988646317375302%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=0Prt4R9nA1VZ8AoQAMzT1DsiDZHhTZo2sMR4IXQK0Eo%3D&amp;reserved=0

https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fs2600wf-misc%2Fcommit%2Fdc7bbdcb62c593011671afe30471cc8fff6ebb19&amp;data=05%7C01%7Cfrancine.sauvage%40atos.net%7Cb8d30759f61a414ba24408da974b2944%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C637988646317375302%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EKNcM2M8mCNMCkeLTJbIAAnVV9GS61v5W0o%2BkOOR%2Ft4%3D&amp;reserved=0


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

end of thread, other threads:[~2022-09-19  7:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 14:16 What is the purpose of xyz.openbmc_project.Inventory.Item.Global interface and getGlobalPath in HealthPopulate ? Francine Sauvage
2022-09-15 18:50 ` Gunnar Mills
2022-09-16 13:28   ` Francine Sauvage

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.