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.