HMC

HMC & CMC

Connect, learn, share, and engage with IBM Power.

 View Only
Expand all | Collapse all

Best practice to get LPAR UUIID

  • 1.  Best practice to get LPAR UUIID

    Posted Fri June 19, 2015 06:49 AM

    Originally posted by: LaurentOliva


    Hi all,

     

    on HMC Rest API, in order to perform operation/jobs onto an LPAR, it first need LPAR UUID.

     

    To retrieve it, i usually use the search URL as follow :

    GET /rest/api/uom/LogicalPartition/search/(PartitionName==<MY_LPAR>)

     

    The problem i'm facing with this method is performance issue.

    It takes more than 6 seconds to gather data. My HMC are CR7 models with 16GB Ram, which is not bad ;-)

     

    I'm looking for a better practice or more speed method.

     

    By reading the API documentation and having done some test, i do not see any speeder method.

     

    Thanks



  • 2.  Re: Best practice to get LPAR UUIID

    Posted Sat June 20, 2015 08:51 AM

    Originally posted by: MichaelQuaranta


    For what it's worth it takes me an average of 15 seconds just to retrieve a list of managed system UUIDs (CR5/4G). So any general performance improvements are welcome...



  • 3.  Re: Best practice to get LPAR UUIID

    Posted Mon June 22, 2015 04:26 AM

    Originally posted by: manjunathns


    Hi,

    Current implementation of the search is not very efficient, and we are aware of the issue. We are investigating to improve the performance of the search APIs.

    There is a Extended Group available for ManagedSystem, LogicalPartition objects. If you use the "group=None", you will get the response very quickly. The format GET request will be :

    /rest/api/uom/ManagedSystem?group=None

    /rest/api/uom/LogicalPartition?group=None

    The response will contain the subset of the rest feed, which will have the UUID of the objects. Let me know if that helps. Thanks!

    -Manju



  • 4.  Re: Best practice to get LPAR UUIID

    Posted Mon June 29, 2015 07:31 AM

    Originally posted by: LaurentOliva


    I've tested the URL you proposed.

     

    The first time i submit the GET request, it takes more than 20 seconds to return the full list of LPAR.

     

    The second time, after being cached i suppose, it takes 7 seconds every time.

     

    So, it's not speeder than the search method i use.

     

    Improvement in the search engine is very wanted from my side :-)

     

    Another great enhancement would be having multi search criterias.

     

    Do you know when the next improvements will be publied ? Could you tell us the road map ?

     

    Thanks for your great support !