Power

 View Only

 Power Supply status via API REST

Pablo Pereira's profile image
Pablo Pereira posted Fri December 13, 2024 05:22 PM

Hello team!, I am using HMC API REST to check the status of the servers power supplies. This is the qery that I am using: https://<hmc_ip>/rest/api/uom/ManagedSystem/<uuid>?hwinventory=true

I haven't been able to find the IO Unit (#EMX0) power supplies status, just the nodes. 

Does anyone has been trying this out?.

Regards.

Thank you.

Pablo.

DOMINIC LANCASTER's profile image
DOMINIC LANCASTER

Pablo - I do not believe for P9 and P10 that it is possible to get this using the HMC Rest API, there are some HMC commands if you are on a BMC type system, but on a FSP system  ... read on

It is possible to get this using redfish API   Managing the system by using DMTF Redfish APIs - IBM Documentation  , using a python prog that tunnels through HMC to the FSP 

Trying to start ssh tunnel

Tun Status:{('0.0.0.0', 39846): True}

using ->https://1.2.3.4:39846

This system:Name:My2CEC1080 Model:9080-HEX SerialNumber:Blah UUID:0004BLAH

Chassis 'YA11ZP2CBLAH' Status

  Sensor                    | Reading    | Health   | Location

  Power Supply 1000 State   | Enabled    | OK       | U78D8.ND0.FGDBLAH-E1

  Power Supply 1000 LineInp | 492V       | N/A      | U78D8.ND0.FGDBLAH-E1

  Power Supply 1000 LastPow | 1950W      | N/A      | U78D8.ND0.FGDBLAH-E1

  Power Supply 1001 State   | Enabled    | OK       | U78D8.ND0.FGDBLAH-E2

  Power Supply 1001 LineInp | 489V       | N/A      | U78D8.ND0.FGDBLAH-E2

  Power Supply 1001 LastPow | 1950W      | N/A      | U78D8.ND0.FGDBLAH-E2

  Power Supply 1002 State   | Enabled    | OK       | U78D8.ND0.FGDBLAH-E3

  Power Supply 1002 LineInp | 493V       | N/A      | U78D8.ND0.FGDBLAH-E3

  Power Supply 1002 LastPow | 1950W      | N/A      | U78D8.ND0.FGDBLAH-E3

  Power Supply 1003 State   | Enabled    | OK       | U78D8.ND0.FGDBLAH-E4

  Power Supply 1003 LineInp | 495V       | N/A      | U78D8.ND0.FGDBLAH-E4

  Power Supply 1003 LastPow | 1950W      | N/A      | U78D8.ND0.FGDBLAH-E4

  Fan 2103                  | 6569RPM    | OK       | U78D8.ND0.FGDBLAH-A1

  Fan 2104                  | 5973RPM    | OK       | U78D8.ND0.FGDBLAH-A1

  Fan 2105                  | 6459RPM    | OK       | U78D8.ND0.FGDBLAH-A2

  Fan 2106                  | 6040RPM    | OK       | U78D8.ND0.FGDBLAH-A2

  Fan 2107                  | 6428RPM    | OK       | U78D8.ND0.FGDBLAH-A3

  Fan 2108                  | 6108RPM    | OK       | U78D8.ND0.FGDBLAH-A3

  Fan 2109                  | 6537RPM    | OK       | U78D8.ND0.FGDBLAH-A4

  Fan 210a                  | 6081RPM    | OK       | U78D8.ND0.FGDBLAH-A4

  Fan 210b                  | 6250RPM    | OK       | U78D8.ND0.FGDBLAH-A5

  Fan 210c                  | 6013RPM    | OK       | U78D8.ND0.FGDBLAH-A5

 

Chassis 'YA11ZP31BLAH' Status

  Sensor                    | Reading    | Health   | Location

  Power Supply 1004 State   | Enabled    | OK       | U78D8.ND1.FGDBLAH-E1

  Power Supply 1004 LineInp | 634V       | N/A      | U78D8.ND1.FGDBLAH-E1

  Power Supply 1004 LastPow | 1950W      | N/A      | U78D8.ND1.FGDBLAH-E1

  Power Supply 1005 State   | Enabled    | OK       | U78D8.ND1.FGDBLAH-E2

  Power Supply 1005 LineInp | 654V       | N/A      | U78D8.ND1.FGDBLAH-E2

  Power Supply 1005 LastPow | 1950W      | N/A      | U78D8.ND1.FGDBLAH-E2

  Power Supply 1006 State   | Enabled    | OK       | U78D8.ND1.FGDBLAH-E3

  Power Supply 1006 LineInp | 37V        | N/A      | U78D8.ND1.FGDBLAH-E3

  Power Supply 1006 LastPow | 1950W      | N/A      | U78D8.ND1.FGDBLAH-E3

  Power Supply 1007 State   | Enabled    | OK       | U78D8.ND1.FGDBLAH-E4

  Power Supply 1007 LineInp | 627V       | N/A      | U78D8.ND1.FGDBLAH-E4

  Power Supply 1007 LastPow | 1950W      | N/A      | U78D8.ND1.FGDBLAH-E4

  Fan 2115                  | 6459RPM    | OK       | U78D8.ND1.FGDBLAH-A1

  Fan 2116                  | 6067RPM    | OK       | U78D8.ND1.FGDBLAH-A1

  Fan 2117                  | 6443RPM    | OK       | U78D8.ND1.FGDBLAH-A2

  Fan 2118                  | 6040RPM    | OK       | U78D8.ND1.FGDBLAH-A2

  Fan 2119                  | 6413RPM    | OK       | U78D8.ND1.FGDBLAH-A3

  Fan 211a                  | 5986RPM    | OK       | U78D8.ND1.FGDBLAH-A3

  Fan 211b                  | 6459RPM    | OK       | U78D8.ND1.FGDBLAH-A4

  Fan 211c                  | 6053RPM    | OK       | U78D8.ND1.FGDBLAH-A4

  Fan 211d                  | 6537RPM    | OK       | U78D8.ND1.FGDBLAH-A5

  Fan 211e                  | 6122RPM    | OK       | U78D8.ND1.FGDBLAH-A5

What model of Power systems do you have (and firmware versions) ?   I can give you a cut down version of my python program with some notes on what to change  - the usernames/passwords are pretty easy to figure out

Looking at your original question about getting the status from EMX0 IO Draws - I have not found a way to do that without opening a support call - but it is something I have been looking at - I'll take that up as 'for investigation'

Let me also check on P9 and P10 and what levels of firmware I can see that gives a result (or not) and I'll see if it SHOULD work vs defect