HMC

 View Only
Expand all | Collapse all

which API can get fan and power info & status of Power system

  • 1.  which API can get fan and power info & status of Power system

    Posted Tue October 24, 2017 11:23 PM

    Originally posted by: lhao


    Hi

    which API can get fan and power info & status of Power system?

    the hardware monitor.

     

    thank you very much



  • 2.  Re: which API can get fan and power info & status of Power system

    Posted Wed October 25, 2017 04:21 AM

    Originally posted by: Anjil


    Hi Ihao,

    Below is the HMC API that provides Power Supplies and Fans related information along with Status of each of these devices.

    https://<hmcip>/rest/api/uom/ManagedSystem/<UUID>?group=None&hwinventory=true

     

    In order to see these fields (power supply and fans), the following levels are needed on the HMCs and / or managed servers:
    HMC                  - 8.6 SP2 with PTF MH01716
    Server firmware -  860_103



  • 3.  Re: which API can get fan and power info & status of Power system

    Posted Wed October 25, 2017 06:51 AM

    Originally posted by: lhao


    Hi Anjil

     

    do you have the detail description of this interface? I can not find this interface in the document.

     

    IBM Power Systems Hardware
    Management Console Programmer's Guide
    Version 1.0
    Published on, 25 July 2014

     

    thank you very much

     



  • 4.  Re: which API can get fan and power info & status of Power system

    Posted Fri October 27, 2017 02:50 AM

    Originally posted by: Anjil


    Hi Ihao,

     

    Below is the HMC Knowledge Center documentation that gets updated periodically to reflect the changes in HMC REST Interfaces.

    https://www.ibm.com/support/knowledgecenter/POWER8/p8ehl/concepts/ApiOverview.htm

    The new query parameter (hwinventory=true) introduced for retrieving the PowerSupply and Fan information is not yet updated in above documentation and it is planned for November update cycle.

     

    Providing below the format of PowerSupply and Fan related content within ManagedSystem response for your reference:

                <PowerSupplies ksv="V1_5_1" kxe="false" kb="ROO" schemaVersion="V1_7_0">
                        <Metadata>
                            <Atom/>
                        </Metadata>
                        <PowerSupply schemaVersion="V1_7_0">
                            <Metadata>
                                <Atom/>
                            </Metadata>
                            <LocationCode ksv="V1_5_1" kxe="false" kb="ROO">U78D2.001.RCH0156-E1</LocationCode>
                            <FruNumber ksv="V1_5_1" kxe="false" kb="ROO"> 01AF591</FruNumber>
                            <SerialNumber ksv="V1_5_1" kb="ROO" kxe="false">YL10KY6BMHUW</SerialNumber>
                            <State ksv="V1_5_1" kb="ROO" kxe="false">Enabled</State>
                            <Health ksv="V1_5_1" kxe="false" kb="ROO">OK</Health>
                            <Description ksv="V1_5_2" kb="ROO" kxe="false">Modular PowerSupply</Description>
                            <MemberId ksv="V1_5_2" kb="ROO" kxe="false">1000</MemberId>
                        </PowerSupply>
                        .....

                        .....
                    </PowerSupplies>
                    <FANs ksv="V1_5_1" kxe="false" kb="ROO" schemaVersion="V1_7_0">
                        <Metadata>
                            <Atom/>
                        </Metadata>
                        <FAN schemaVersion="V1_7_0">
                            <Metadata>
                                <Atom/>
                            </Metadata>
                            <LocationCode ksv="V1_5_1" kb="ROO" kxe="false">U78D2.001.RCH0156-A1</LocationCode>
                            <FruNumber ksv="V1_5_1" kb="ROO" kxe="false">01GY151</FruNumber>
                            <SerialNumber ksv="V1_5_1" kxe="false" kb="ROO">BFM1012UHAZL</SerialNumber>
                            <State ksv="V1_5_1" kxe="false" kb="ROO">Enabled</State>
                            <Health ksv="V1_5_1" kxe="false" kb="ROO">OK</Health>
                            <Description ksv="V1_5_2" kb="ROO" kxe="false"/>
                            <MemberId ksv="V1_5_2" kb="ROO" kxe="false">2100</MemberId>
                        </FAN>

                        .......

                        .......
                    </FANs>

    Note: The schema version shown in above sample may change based on the HMC version on which you are executing this API.

    Please let us know if you need more details regarding this interface.