openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Get inventory FRU from inventory system path
@ 2020-10-08  8:53 john.chung
  2020-10-08  9:58 ` Andrei Kartashev
  0 siblings, 1 reply; 5+ messages in thread
From: john.chung @ 2020-10-08  8:53 UTC (permalink / raw)
  To: openbmc

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

Hi,

I am trying to get the data from this path “https://<bmcip>/xyz/openbmc_project/inventory/system<https://%3cbmcip%3e/xyz/openbmc_project/inventory/system>”.
But only get the following data from this path.

"/xyz/openbmc_project/inventory/system": {
"AssetTag": ""
},

Here is an example for this path which I expected to get.

    "/xyz/openbmc_project/inventory/system": {
        "BuildDate": "",
        "Cached": 0,
        "FieldReplaceable": 0,
        "Manufacturer": "",
        "Model": "2",
        "PartNumber": "0000000000000000",
        "Present": 1,
        "PrettyName": "",
        "SerialNumber": "0000000000000000"
    },



Only using entity-manager in my project for inventory FRU.
I could get the FRU data from this path “https://<bmcip>/xyz/openbmc_project/inventory/system/board/<name>”
But the inventory system path is null.

Any setting I should set for getting FRU from this path?

Regards,
John Chung



============================================================================
This email message and all attachments transmitted with it are intended solely for the use of the intended recipient(s) and may contain legally privileged and confidential information. If you are not the intended recipient of this email, you are hereby notified that any disclosure, dissemination, distribution, copying, or other use of this message, its attachments or any information contained therein is strictly prohibited. If you have received this email in error, please contact the sender immediately and please delete it and any attachments from your system. Computer viruses can be transmitted via email. The sender accepts no liability for any damage caused by any virus transmitted by this email. Thank you.

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

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

* Re: Get inventory FRU from inventory system path
  2020-10-08  8:53 Get inventory FRU from inventory system path john.chung
@ 2020-10-08  9:58 ` Andrei Kartashev
  2020-10-08 10:09   ` john.chung
  0 siblings, 1 reply; 5+ messages in thread
From: Andrei Kartashev @ 2020-10-08  9:58 UTC (permalink / raw)
  To: john.chung, openbmc

Hi John,

What are you trying to achieve?
The REST API do just a translation to dbus, so you expect to get
exactly what EntityManager (or other inventory-related daemon) expose.
And EM expose nothing to /xyz/openbmc_project/inventory/system

On Thu, 2020-10-08 at 08:53 +0000, john.chung@mic.com.tw wrote:
> Hi,
>  
> I am trying to get the data from this path “
> https://<bmcip>/xyz/openbmc_project/inventory/system”.
> But only get the following data from this path.
>  
> "/xyz/openbmc_project/inventory/system": {
> "AssetTag": ""
> },
>  
> Here is an example for this path which I expected to get.
>  
>     "/xyz/openbmc_project/inventory/system": {
>         "BuildDate": "",
>         "Cached": 0,
>         "FieldReplaceable": 0,
>         "Manufacturer": "",
>         "Model": "2",
>         "PartNumber": "0000000000000000",
>         "Present": 1,
>         "PrettyName": "",
>         "SerialNumber": "0000000000000000"
>     },
>  
>  
>  
> Only using entity-manager in my project for inventory FRU.
> I could get the FRU data from this path “
> https://<bmcip>/xyz/openbmc_project/inventory/system/board/<name>”
> But the inventory system path is null.
>  
> Any setting I should set for getting FRU from this path?
>  
> Regards,
> John Chung
>  
> This email message and all attachments transmitted with it are
> intended solely for the use of the intended recipient(s) and may
> contain legally privileged and confidential information. If you are
> not the intended recipient of this email, you are hereby notified
> that any disclosure, dissemination, distribution, copying, or other
> use of this message, its attachments or any information contained
> therein is strictly prohibited. If you have received this email in
> error, please contact the sender immediately and please delete it and
> any attachments from your system. Computer viruses can be transmitted
> via email. The sender accepts no liability for any damage caused by
> any virus transmitted by this email. Thank you.
-- 
Best regards,
Andrei Kartashev



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

* RE: Get inventory FRU from inventory system path
  2020-10-08  9:58 ` Andrei Kartashev
@ 2020-10-08 10:09   ` john.chung
  2020-10-08 10:21     ` Andrei Kartashev
  0 siblings, 1 reply; 5+ messages in thread
From: john.chung @ 2020-10-08 10:09 UTC (permalink / raw)
  To: a.kartashev, openbmc

Hi Andrei,

> What are you trying to achieve?
I am trying to display the system information section in phosphor-webui.
This section would call the 'getServerInfo' function. 
The function would need to using the "/xyz/openbmc_project/inventory/system" path.

> The REST API do just a translation to dbus, so you expect to get exactly what EntityManager (or other inventory-related daemon) expose.
> And EM expose nothing to /xyz/openbmc_project/inventory/system
Yes, I want to get exactly what EntityManager (or other inventory-related daemon) expose.
But it's null for this dbus path now.


-----Original Message-----
From: Andrei Kartashev [mailto:a.kartashev@yadro.com] 
Sent: Thursday, October 8, 2020 5:58 PM
To: john.chung (鍾佳航 - MCT) <john.chung@mic.com.tw>; openbmc@lists.ozlabs.org
Subject: Re: Get inventory FRU from inventory system path

Hi John,

What are you trying to achieve?
The REST API do just a translation to dbus, so you expect to get exactly what EntityManager (or other inventory-related daemon) expose.
And EM expose nothing to /xyz/openbmc_project/inventory/system

On Thu, 2020-10-08 at 08:53 +0000, john.chung@mic.com.tw wrote:
> Hi,
>  
> I am trying to get the data from this path “ 
> https://<bmcip>/xyz/openbmc_project/inventory/system”.
> But only get the following data from this path.
>  
> "/xyz/openbmc_project/inventory/system": {
> "AssetTag": ""
> },
>  
> Here is an example for this path which I expected to get.
>  
>     "/xyz/openbmc_project/inventory/system": {
>         "BuildDate": "",
>         "Cached": 0,
>         "FieldReplaceable": 0,
>         "Manufacturer": "",
>         "Model": "2",
>         "PartNumber": "0000000000000000",
>         "Present": 1,
>         "PrettyName": "",
>         "SerialNumber": "0000000000000000"
>     },
>  
>  
>  
> Only using entity-manager in my project for inventory FRU.
> I could get the FRU data from this path “ 
> https://<bmcip>/xyz/openbmc_project/inventory/system/board/<name>”
> But the inventory system path is null.
>  
> Any setting I should set for getting FRU from this path?
>  
> Regards,
> John Chung
>  
> This email message and all attachments transmitted with it are 
> intended solely for the use of the intended recipient(s) and may 
> contain legally privileged and confidential information. If you are 
> not the intended recipient of this email, you are hereby notified that 
> any disclosure, dissemination, distribution, copying, or other use of 
> this message, its attachments or any information contained therein is 
> strictly prohibited. If you have received this email in error, please 
> contact the sender immediately and please delete it and any 
> attachments from your system. Computer viruses can be transmitted via 
> email. The sender accepts no liability for any damage caused by any 
> virus transmitted by this email. Thank you.
--
Best regards,
Andrei Kartashev




============================================================================
This email message and all attachments transmitted with it are intended solely for the use of the intended recipient(s) and may contain legally privileged and confidential information. If you are not the intended recipient of this email, you are hereby notified that any disclosure, dissemination, distribution, copying, or other use of this message, its attachments or any information contained therein is strictly prohibited. If you have received this email in error, please contact the sender immediately and please delete it and any attachments from your system. Computer viruses can be transmitted via email. The sender accepts no liability for any damage caused by any virus transmitted by this email. Thank you.

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

* Re: Get inventory FRU from inventory system path
  2020-10-08 10:09   ` john.chung
@ 2020-10-08 10:21     ` Andrei Kartashev
  2020-10-12  1:18       ` john.chung
  0 siblings, 1 reply; 5+ messages in thread
From: Andrei Kartashev @ 2020-10-08 10:21 UTC (permalink / raw)
  To: john.chung, openbmc

On Thu, 2020-10-08 at 10:09 +0000, john.chung@mic.com.tw wrote:
> Hi Andrei,
> 
> > What are you trying to achieve?
> I am trying to display the system information section in phosphor-
> webui.
> This section would call the 'getServerInfo' function. 
> The function would need to using the
> "/xyz/openbmc_project/inventory/system" path.
> 
> > The REST API do just a translation to dbus, so you expect to get
> > exactly what EntityManager (or other inventory-related daemon)
> > expose.
> > And EM expose nothing to /xyz/openbmc_project/inventory/system
> Yes, I want to get exactly what EntityManager (or other inventory-
> related daemon) expose.
> But it's null for this dbus path now.

Right, there is no info there, /xyz/openbmc_project/inventory/system is
kind of parent node, id doesn't store any information. That is how EM
works.
In our system we use our custom interface for baseboard to provide this
kind of information.



> -----Original Message-----
> From: Andrei Kartashev [mailto:a.kartashev@yadro.com] 
> Sent: Thursday, October 8, 2020 5:58 PM
> To: john.chung (鍾佳航 - MCT) <john.chung@mic.com.tw>; 
> openbmc@lists.ozlabs.org
> Subject: Re: Get inventory FRU from inventory system path
> 
> Hi John,
> 
> What are you trying to achieve?
> The REST API do just a translation to dbus, so you expect to get
> exactly what EntityManager (or other inventory-related daemon)
> expose.
> And EM expose nothing to /xyz/openbmc_project/inventory/system
> 
> On Thu, 2020-10-08 at 08:53 +0000, john.chung@mic.com.tw wrote:
> > Hi,
> >  
> > I am trying to get the data from this path “ 
> > https://<bmcip>/xyz/openbmc_project/inventory/system”.
> > But only get the following data from this path.
> >  
> > "/xyz/openbmc_project/inventory/system": {
> > "AssetTag": ""
> > },
> >  
> > Here is an example for this path which I expected to get.
> >  
> >     "/xyz/openbmc_project/inventory/system": {
> >         "BuildDate": "",
> >         "Cached": 0,
> >         "FieldReplaceable": 0,
> >         "Manufacturer": "",
> >         "Model": "2",
> >         "PartNumber": "0000000000000000",
> >         "Present": 1,
> >         "PrettyName": "",
> >         "SerialNumber": "0000000000000000"
> >     },
> >  
> >  
> >  
> > Only using entity-manager in my project for inventory FRU.
> > I could get the FRU data from this path “ 
> > https://<bmcip>/xyz/openbmc_project/inventory/system/board/<name>”
> > But the inventory system path is null.
> >  
> > Any setting I should set for getting FRU from this path?
> >  
> > Regards,
> > John Chung
> >  
> > This email message and all attachments transmitted with it are 
> > intended solely for the use of the intended recipient(s) and may 
> > contain legally privileged and confidential information. If you
> > are 
> > not the intended recipient of this email, you are hereby notified
> > that 
> > any disclosure, dissemination, distribution, copying, or other use
> > of 
> > this message, its attachments or any information contained therein
> > is 
> > strictly prohibited. If you have received this email in error,
> > please 
> > contact the sender immediately and please delete it and any 
> > attachments from your system. Computer viruses can be transmitted
> > via 
> > email. The sender accepts no liability for any damage caused by
> > any 
> > virus transmitted by this email. Thank you.
> --
> Best regards,
> Andrei Kartashev
> 
> 
> 
> 
> =====================================================================
> =======
> This email message and all attachments transmitted with it are
> intended solely for the use of the intended recipient(s) and may
> contain legally privileged and confidential information. If you are
> not the intended recipient of this email, you are hereby notified
> that any disclosure, dissemination, distribution, copying, or other
> use of this message, its attachments or any information contained
> therein is strictly prohibited. If you have received this email in
> error, please contact the sender immediately and please delete it and
> any attachments from your system. Computer viruses can be transmitted
> via email. The sender accepts no liability for any damage caused by
> any virus transmitted by this email. Thank you.
-- 
Best regards,
Andrei Kartashev



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

* RE: Get inventory FRU from inventory system path
  2020-10-08 10:21     ` Andrei Kartashev
@ 2020-10-12  1:18       ` john.chung
  0 siblings, 0 replies; 5+ messages in thread
From: john.chung @ 2020-10-12  1:18 UTC (permalink / raw)
  To: a.kartashev, openbmc

Hi Andrei,

Thank you for your generous help.
I would ty another path for my system.

-----Original Message-----
From: Andrei Kartashev [mailto:a.kartashev@yadro.com] 
Sent: Thursday, October 8, 2020 6:21 PM
To: john.chung (鍾佳航 - MCT) <john.chung@mic.com.tw>; openbmc@lists.ozlabs.org
Subject: Re: Get inventory FRU from inventory system path

On Thu, 2020-10-08 at 10:09 +0000, john.chung@mic.com.tw wrote:
> Hi Andrei,
> 
> > What are you trying to achieve?
> I am trying to display the system information section in phosphor- 
> webui.
> This section would call the 'getServerInfo' function. 
> The function would need to using the
> "/xyz/openbmc_project/inventory/system" path.
> 
> > The REST API do just a translation to dbus, so you expect to get 
> > exactly what EntityManager (or other inventory-related daemon) 
> > expose.
> > And EM expose nothing to /xyz/openbmc_project/inventory/system
> Yes, I want to get exactly what EntityManager (or other inventory- 
> related daemon) expose.
> But it's null for this dbus path now.

Right, there is no info there, /xyz/openbmc_project/inventory/system is kind of parent node, id doesn't store any information. That is how EM works.
In our system we use our custom interface for baseboard to provide this kind of information.



> -----Original Message-----
> From: Andrei Kartashev [mailto:a.kartashev@yadro.com]
> Sent: Thursday, October 8, 2020 5:58 PM
> To: john.chung (鍾佳航 - MCT) <john.chung@mic.com.tw>; 
> openbmc@lists.ozlabs.org
> Subject: Re: Get inventory FRU from inventory system path
> 
> Hi John,
> 
> What are you trying to achieve?
> The REST API do just a translation to dbus, so you expect to get 
> exactly what EntityManager (or other inventory-related daemon) expose.
> And EM expose nothing to /xyz/openbmc_project/inventory/system
> 
> On Thu, 2020-10-08 at 08:53 +0000, john.chung@mic.com.tw wrote:
> > Hi,
> >  
> > I am trying to get the data from this path “ 
> > https://<bmcip>/xyz/openbmc_project/inventory/system”.
> > But only get the following data from this path.
> >  
> > "/xyz/openbmc_project/inventory/system": {
> > "AssetTag": ""
> > },
> >  
> > Here is an example for this path which I expected to get.
> >  
> >     "/xyz/openbmc_project/inventory/system": {
> >         "BuildDate": "",
> >         "Cached": 0,
> >         "FieldReplaceable": 0,
> >         "Manufacturer": "",
> >         "Model": "2",
> >         "PartNumber": "0000000000000000",
> >         "Present": 1,
> >         "PrettyName": "",
> >         "SerialNumber": "0000000000000000"
> >     },
> >  
> >  
> >  
> > Only using entity-manager in my project for inventory FRU.
> > I could get the FRU data from this path “ 
> > https://<bmcip>/xyz/openbmc_project/inventory/system/board/<name>”
> > But the inventory system path is null.
> >  
> > Any setting I should set for getting FRU from this path?
> >  
> > Regards,
> > John Chung
> >  
> > This email message and all attachments transmitted with it are 
> > intended solely for the use of the intended recipient(s) and may 
> > contain legally privileged and confidential information. If you are 
> > not the intended recipient of this email, you are hereby notified 
> > that any disclosure, dissemination, distribution, copying, or other 
> > use of this message, its attachments or any information contained 
> > therein is strictly prohibited. If you have received this email in 
> > error, please contact the sender immediately and please delete it 
> > and any attachments from your system. Computer viruses can be 
> > transmitted via email. The sender accepts no liability for any 
> > damage caused by any virus transmitted by this email. Thank you.
> --
> Best regards,
> Andrei Kartashev
> 
> 
> 
> 
> =====================================================================
> =======
> This email message and all attachments transmitted with it are 
> intended solely for the use of the intended recipient(s) and may 
> contain legally privileged and confidential information. If you are 
> not the intended recipient of this email, you are hereby notified that 
> any disclosure, dissemination, distribution, copying, or other use of 
> this message, its attachments or any information contained therein is 
> strictly prohibited. If you have received this email in error, please 
> contact the sender immediately and please delete it and any 
> attachments from your system. Computer viruses can be transmitted via 
> email. The sender accepts no liability for any damage caused by any 
> virus transmitted by this email. Thank you.
--
Best regards,
Andrei Kartashev



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

end of thread, other threads:[~2020-10-12  1:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08  8:53 Get inventory FRU from inventory system path john.chung
2020-10-08  9:58 ` Andrei Kartashev
2020-10-08 10:09   ` john.chung
2020-10-08 10:21     ` Andrei Kartashev
2020-10-12  1:18       ` john.chung

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).