Servers - General
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How to get power consumption in Superdome Flex via redfish

 
Highlighted
Occasional Visitor

How to get power consumption in Superdome Flex via redfish

Good day all!

I am looking for a way to measure power consumption in our Superdome Flex rack. How can I get an output via redfish?

Thank you in advance.

3 REPLIES 3
Highlighted
HPE Pro

Re: How to get power consumption in Superdome Flex via redfish

Hello Inzihtu,

Redfish gives Power statistics with "PowerMetrics"/ Metric report, which can include the AvgPowerConsumedWatts, MinPowerConsumedWatts, and MaxPowerConsumedWatts properties.

https://www.dmtf.org/sites/default/files/standards/documents/DSP2051_1.0.0.pdf

Let me know if you have reviewed this already and if there were any roadblocks!

Regards
Guru

I am HPE Employee
The comments in this post are my own and do not represent an official reply from the company.

Accept or Kudo

Highlighted
Frequent Advisor

Re: How to get power consumption in Superdome Flex via redfish

 HI  inzihtu  How´ve beeen friend , After you got all redfish enviroment setup ,so 

For SuperDome Flex , we got Chassi enviroment commands that you can validade with the guide bellow

 Power                     -- get the full Power resource under a specified Chassis instance.

Link :

https://github.com/DMTF/Redfishtool

Other link interesting maybe you already know https://developer.hpe.com/

Session Chassi Operations  

 

python redfishtool.py -r <rhost> -u <username> -p <password> Chassis -h
Usage:
 redfishtool [OPTNS]  Chassis  <operation> [<args>]  -- perform <operation> on the Chassis specified 
<operations>:
   [collection]              -- get the main Chassis collection. (Default operation if no member specified)
   [get]                     -- get the Chassis object. (Default operation if collection member specified)
   list                      -- list information about the Chassis collection members("Id", URI, and AssetTag)
   patch {A: B,C: D,...}     -- patch the json-formatted {prop: value...} data to the object
   setAssetTag <assetTag>    -- set the Chassis's asset tag 
   setIndicatorLed  <state>  -- set the indicator LED.  <state>=redfish defined values: Off, Lit, Blinking
   Power                     -- get the full Power resource under a specified Chassis instance.
   Thermal                   -- get the full Thermal resource under a specified Chassis instance.
   Sensors                   -- get all sensors

   getPowerReading [-i<indx>] [consumed]-- get powerControl resource w/ power capacity, PowerConsumed, and power limits
                                if "consumed" keyword is added, then only current usage of powerControl[indx] is returned
                                <indx> is the powerControl array index. default is 0.  normally, 0 is the only entry
   setPowerLimit [-i<indx>] <limit> [<exception> [<correctionTime>]] -- set powerLimit control properties
                             <limit>=null disables power limiting. <indx> is the powerControl array indx (dflt=0)

   Logs [list]               -- get the Chassis "LogServices" collection , or list "id" and URI of members.
    Logs [IDOPTN]              --  get the member specified by IDOPTN: -i<id>, -m<prop>:<val>, -l<link>, -a #all
   clearLog   <id>           -- clears the log defined by <id>
   examples                  -- example commands with syntax
   hello                     -- Chassis hello -- debug command

Some public guides tha you can validadte
https://h20195.www2.hpe.com/v2/GetDocument.aspx?docname=a50000335enw
https://h20195.www2.hpe.com/v2/getdocument.aspx?docname=a00026242enw

getPowerReading [-i<indx>] [consumed]-- get powerControl resource w/ power capacity, PowerConsumed, and power limits
                                if "consumed" keyword is added, then only current usage of powerControl[indx] is returned
                                <indx> is the powerControl array index. default is 0.  normally, 0 is the only entry

Thanks 


I´m HPE Employee

Accept or Kudo


Highlighted
Occasional Visitor

Re: How to get power consumption in Superdome Flex via redfish

Hello and thank you for your replies.

Unfortunately I could not get a readout for the desired metric. In the output redfish is giving me I am not seeing anything related to power consumption. I will post the returning output below.

When I use "curl -gik -X GET --user xyz:xyz https://<ip>/redfish/v1/Chassis/r001i01b/Power"  I get

Server: Apache

X-Frame-Options: SAMEORIGIN

X-XSS-Protection: 1

Strict-Transport-Security: max-age=63072000; includeSubDomains

Allow: GET

OData-Version: 4.0

Cache-Control: no-cache,no-store,must-revalidate

ETag: W/"6a304db522c719f9ef462f96851eb820"

Link: <http://redfish.dmtf.org/schemas/Power.v1_2_1.json>; rel=describedby

Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval';                                         style-src 'self' 'unsafe-inline';                                         img-src 'self' data:;                                         connect-src wss: https:;

X-Content-Security-Policy: default-src 'self'

X-WebKit-CSP: default-src 'self'

X-Content-Type-Options: nosniff

Pragma: no-cache

Transfer-Encoding: chunked

Content-Type: application/json

 

{"@odata.context": "/redfish/v1/$metadata#Power.Power", "@odata.etag": "W/\"6a304db522c719f9ef462f96851eb820\"", "@odata.id": "/redfish/v1/Chassis/r001i01b/Power", "@odata.type": "#Power.v1_2_1.Power", "Id": "Power", "Name": "Chassis Power", "PowerSupplies": [{"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/0", "Manufacturer": "SOLUM CO., LTD.", "MemberId": "0", "Model": "SG162F4C", "Name": "Chassis Power Supply 0", "Oem": {"Hpe": {"@odata.type": "#HpePowerSupply.v1_0_0.HpePowerSupply", "Faults": [{"Alert": {"MessageArgs": ["rack1/chassis_u1/psu0"], "MessageId": "RmcRegistry.2.0.ChassisPsOk"}, "Name": "Operation", "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu0"], "MessageId": "RmcRegistry.2.0.ResourceAcquitted"}, "Name": "Indictment", "Reasons": [], "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu0"], "MessageId": "RmcRegistry.2.0.PsInputRegained"}, "Name": "AC Input", "Status": "OK"}], "PhysicalLocationString": "rack1/chassis_u1/psu0", "Physloc": "FF01000101FFFF44"}}, "PartNumber": "060-0415-002", "Redundancy": [{"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/Redundancy/0"}], "SerialNumber": "PSSF162204CCNS1624C4BL2G0258", "Status": {"Health": "OK", "HealthRollup": "OK", "State": "Enabled"}}, {"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/1", "Manufacturer": "SOLUM CO., LTD.", "MemberId": "1", "Model": "SG162F4C", "Name": "Chassis Power Supply 1", "Oem": {"Hpe": {"@odata.type": "#HpePowerSupply.v1_0_0.HpePowerSupply", "Faults": [{"Alert": {"MessageArgs": ["rack1/chassis_u1/psu1"], "MessageId": "RmcRegistry.2.0.ChassisPsOk"}, "Name": "Operation", "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu1"], "MessageId": "RmcRegistry.2.0.ResourceAcquitted"}, "Name": "Indictment", "Reasons": [], "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu1"], "MessageId": "RmcRegistry.2.0.PsInputRegained"}, "Name": "AC Input", "Status": "OK"}], "PhysicalLocationString": "rack1/chassis_u1/psu1", "Physloc": "FF01010101FFFF44"}}, "PartNumber": "060-0415-002", "Redundancy": [{"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/Redundancy/0"}], "SerialNumber": "PSSF162204CCNS1624C4BK9N0477", "Status": {"Health": "OK", "HealthRollup": "OK", "State": "Enabled"}}, {"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/2", "Manufacturer": "SOLUM CO., LTD.", "MemberId": "2", "Model": "SG162F4C", "Name": "Chassis Power Supply 2", "Oem": {"Hpe": {"@odata.type": "#HpePowerSupply.v1_0_0.HpePowerSupply", "Faults": [{"Alert": {"MessageArgs": ["rack1/chassis_u1/psu2"], "MessageId": "RmcRegistry.2.0.ChassisPsOk"}, "Name": "Operation", "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu2"], "MessageId": "RmcRegistry.2.0.ResourceAcquitted"}, "Name": "Indictment", "Reasons": [], "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu2"], "MessageId": "RmcRegistry.2.0.PsInputRegained"}, "Name": "AC Input", "Status": "OK"}], "PhysicalLocationString": "rack1/chassis_u1/psu2", "Physloc": "FF01020101FFFF44"}}, "PartNumber": "060-0415-002", "Redundancy": [{"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/Redundancy/0"}], "SerialNumber": "PSSF162204CCNS1624C4BK9N0486", "Status": {"Health": "OK", "HealthRollup": "OK", "State": "Enabled"}}, {"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/3", "Manufacturer": "SOLUM CO., LTD.", "MemberId": "3", "Model": "SG162F4C", "Name": "Chassis Power Supply 3", "Oem": {"Hpe": {"@odata.type": "#HpePowerSupply.v1_0_0.HpePowerSupply", "Faults": [{"Alert": {"MessageArgs": ["rack1/chassis_u1/psu3"], "MessageId": "RmcRegistry.2.0.ChassisPsOk"}, "Name": "Operation", "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu3"], "MessageId": "RmcRegistry.2.0.ResourceAcquitted"}, "Name": "Indictment", "Reasons": [], "Status": "OK"}, {"Alert": {"MessageArgs": ["rack1/chassis_u1/psu3"], "MessageId": "RmcRegistry.2.0.PsInputRegained"}, "Name": "AC Input", "Status": "OK"}], "PhysicalLocationString": "rack1/chassis_u1/psu3", "Physloc": "FF01030101FFFF44"}}, "PartNumber": "060-0415-002", "Redundancy": [{"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/Redundancy/0"}], "SerialNumber": "PSSF162204CCNS1624C4BK9N0384", "Status": {"Health": "OK", "HealthRollup": "OK", "State": "Enabled"}}], "Redundancy": [{"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/Redundancy/0", "MaxNumSupported": 4, "MemberId": "0", "MinNumNeeded": 2, "Mode": "N+m", "Name": "Power Supply Redundancy", "RedundancySet": [{"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/0"}, {"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/1"}, {"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/2"}, {"@odata.id": "/redfish/v1/Chassis/r001i01b/Power#/PowerSupplies/3"}], "Status": {"Health": "OK", "HealthRollup": "OK", "State": "Enabled"}}]}