-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Milestone
Description
Currently the power capacity is retrieved only from the list of power supplies. But on some models only the total capacity is available from PowerControl.
I report here an example output from direct cURL call:
[
{
"@odata.context": "/redfish/v1/$metadata#Power.Power",
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1/Power/PowerControl",
"@odata.type": "#Power.v1_4_0.PowerControl",
"MemberId": "PowerControl",
"Name": "System Power Control",
"PowerAllocatedWatts": 1106,
"PowerAvailableWatts": 0,
"PowerCapacityWatts": 1106,
"PowerConsumedWatts": 101,
"PowerLimit": {
"CorrectionInMs": 0,
"LimitException": "HardPowerOff",
"LimitInWatts": 32767
},
"PowerMetrics": {
"AverageConsumedWatts": 103,
"IntervalInMin": 1,
"MaxConsumedWatts": 111,
"MinConsumedWatts": 96
},
"PowerRequestedWatts": 406,
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/System.Embedded.1"
},
{
"@odata.id": "/redfish/v1/Systems/System.Embedded.1"
}
],
"RelatedItem@odata.count": 2
}
]Currently, the capacity is retrieved from PowerSupplies, falling back to InputRanges is the capacity is None. But on this system the capacity for each power supply is reported to be 0. An easy patch would be to provide an extra power_control element in the inventory tree.
bb-Ricardo
Metadata
Metadata
Assignees
Labels
No labels