libredfish 0.2.0

A redfish library. Useful for querying server hardware from a BMC.
Documentation
{
    "Voltages": [
        {
            "Status": {
                "State": "Enabled"
            },
            "UpperThresholdCritical": 13.22,
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Systems/1"
                },
                {
                    "@odata.id": "/redfish/v1/Chassis/1"
                }
            ],
            "RelatedItem@odata.count": 2,
            "MemberId": "0",
            "ReadingVolts": 11.98,
            "Name": "SysBrd 12V",
            "SensorNumber": 97,
            "@odata.id": "/redfish/v1/Chassis/1/Power#/Voltages/0",
            "MaxReadingRange": 14.28,
            "LowerThresholdCritical": 10.81,
            "MinReadingRange": null,
            "PhysicalContext": "VoltageRegulator"
        },
        {
            "Status": {
                "State": "Enabled"
            },
            "UpperThresholdCritical": 5.5,
            "MinReadingRange": null,
            "ReadingVolts": 4.98,
            "MemberId": "1",
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Systems/1"
                },
                {
                    "@odata.id": "/redfish/v1/Chassis/1"
                }
            ],
            "Name": "SysBrd 5V",
            "SensorNumber": 99,
            "@odata.id": "/redfish/v1/Chassis/1/Power#/Voltages/1",
            "MaxReadingRange": 5.97,
            "LowerThresholdCritical": 4.49,
            "RelatedItem@odata.count": 2,
            "PhysicalContext": "VoltageRegulator"
        },
        {
            "Status": {
                "State": "Enabled"
            },
            "UpperThresholdCritical": 3.63,
            "MinReadingRange": null,
            "ReadingVolts": 3.27,
            "MemberId": "2",
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Systems/1"
                },
                {
                    "@odata.id": "/redfish/v1/Chassis/1"
                }
            ],
            "Name": "SysBrd 3.3V",
            "SensorNumber": 98,
            "@odata.id": "/redfish/v1/Chassis/1/Power#/Voltages/2",
            "MaxReadingRange": 3.95,
            "LowerThresholdCritical": 2.98,
            "RelatedItem@odata.count": 2,
            "PhysicalContext": "VoltageRegulator"
        },
        {
            "Status": {
                "State": "Enabled"
            },
            "LowerThresholdNonCritical": 2.39,
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Systems/1"
                },
                {
                    "@odata.id": "/redfish/v1/Chassis/1"
                }
            ],
            "Name": "CMOS Battery",
            "MemberId": "3",
            "ReadingVolts": 3.08,
            "RelatedItem@odata.count": 2,
            "SensorNumber": 3,
            "PhysicalContext": "VoltageRegulator",
            "MaxReadingRange": 3.32,
            "LowerThresholdCritical": 2.25,
            "MinReadingRange": null,
            "@odata.id": "/redfish/v1/Chassis/1/Power#/Voltages/3"
        }
    ],
    "Oem": {
        "Lenovo": {
            "WakeOnLANEnabled": true,
            "PowerRestorePolicy": "Restore",
            "@odata.type": "#LenovoPower.v1_0_0.Capabilities",
            "RandomDelay": false,
            "LocalPowerControlEnabled": true,
            "PowerOnPermissionEnabled": true
        }
    },
    "@odata.type": "#Power.v1_7_1.Power",
    "PowerSupplies@odata.count": 2,
    "PowerControl": [
        {
            "PowerAvailableWatts": 0,
            "PowerCapacityWatts": 1800,
            "PowerLimit": {
                "LimitException": "NoAction",
                "LimitInWatts": null
            },
            "Oem": {
                "Lenovo": {
                    "HistoryPowerMetric": {
                        "@odata.id": "/redfish/v1/Chassis/1/Power/PowerControl/0/Oem/Lenovo/HistoryPowerMetric"
                    },
                    "@odata.type": "#LenovoPower.v1_0_0.PowerControl",
                    "PowerUtilization": {
                        "EnablePowerCapping": false,
                        "GuaranteedInWatts": 601,
                        "LimitMode": "AC",
                        "MaxLimitInWatts": 1800,
                        "MinLimitInWatts": 0,
                        "EnablePowerCapping@Redfish.Deprecated": "The property is deprecated. Please use LimitInWatts instead.",
                        "CapacityMaxAC": 836,
                        "CapacityMaxDC": 798,
                        "CapacityMinAC": 601,
                        "CapacityMinDC": 574
                    }
                }
            },
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Chassis/1"
                }
            ],
            "PowerAllocatedWatts": 1800,
            "PowerConsumedWatts": 380,
            "Status": {
                "HealthRollup": "Critical",
                "State": "Enabled",
                "Health": "OK"
            },
            "RelatedItem@odata.count": 1,
            "PowerRequestedWatts": 836,
            "PhysicalContext": "Chassis",
            "PowerMetrics": {
                "MinConsumedWatts": 358,
                "AverageConsumedWatts": 358,
                "IntervalInMin": 1,
                "MaxConsumedWatts": 360
            },
            "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerControl/0",
            "MemberId": "0",
            "Name": "Server Power Control"
        },
        {
            "Status": {
                "HealthRollup": "OK",
                "State": "Enabled",
                "Health": "OK"
            },
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Systems/1/Processors"
                }
            ],
            "PowerConsumedWatts": 184,
            "RelatedItem@odata.count": 1,
            "PhysicalContext": "CPUSubsystem",
            "PowerMetrics": {
                "MinConsumedWatts": 184,
                "AverageConsumedWatts": 185,
                "IntervalInMin": 1,
                "MaxConsumedWatts": 188
            },
            "MemberId": "1",
            "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerControl/1",
            "Name": "CPU Sub-system Power"
        },
        {
            "Status": {
                "HealthRollup": "OK",
                "State": "Enabled",
                "Health": "OK"
            },
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Systems/1/Memory"
                }
            ],
            "PowerConsumedWatts": 8,
            "Name": "Memory Sub-system Power",
            "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerControl/2",
            "PowerMetrics": {
                "MinConsumedWatts": 8,
                "AverageConsumedWatts": 8,
                "IntervalInMin": 1,
                "MaxConsumedWatts": 9
            },
            "MemberId": "2",
            "RelatedItem@odata.count": 1,
            "PhysicalContext": "MemorySubsystem"
        }
    ],
    "Description": "Power Consumption and Power Limiting",
    "PowerSupplies": [
        {
            "SerialNumber": "P1ZS13P0233",
            "FirmwareVersion": "6.51",
            "LastPowerOutputWatts": 358,
            "PowerOutputWatts": 357,
            "Location": {
                "PartLocation": {
                    "LocationType": "Slot",
                    "ServiceLabel": "PSU1",
                    "LocationOrdinalValue": 1
                }
            },
            "LineInputVoltage": 220,
            "PowerInputWatts": 379,
            "EfficiencyPercent": 94,
            "Model": "LENOVO-SP57A80790",
            "PowerCapacityWatts": 1800,
            "PartNumber": "SP57A80790",
            "Oem": {
                "Lenovo": {
                    "@odata.type": "#LenovoPower.v1_0_0.PowerSupply",
                    "Location": {
                        "Info": "Slot 1",
                        "InfoFormat": "Slot X"
                    },
                    "FruPartNumber": "02JJ992",
                    "HistoryPowerSupplyMetric": {
                        "@odata.id": "/redfish/v1/Chassis/1/Power/PowerSupplies/0/Oem/Lenovo/HistoryPowerSupplyMetric"
                    },
                    "Location@Redfish.Deprecated": "The property is deprecated. Please use Location instead."
                }
            },
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Chassis/1"
                }
            ],
            "Status": {
                "State": "Enabled",
                "Health": "OK"
            },
            "MemberId": "0",
            "PowerSupplyType": "AC",
            "LineInputVoltageType": "ACMidLine",
            "HotPluggable": false,
            "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/0",
            "InputRanges": [
                {
                    "MinimumVoltage": 200,
                    "OutputWattage": 1800,
                    "MaximumVoltage": 240,
                    "InputType": "AC"
                }
            ],
            "Manufacturer": "ARTE",
            "RelatedItem@odata.count": 1,
            "Name": "PSU1"
        },
        {
            "SerialNumber": "P1ZS13P0148",
            "FirmwareVersion": "6.51",
            "LastPowerOutputWatts": 358,
            "PowerOutputWatts": null,
            "Location": {
                "PartLocation": {
                    "LocationType": "Slot",
                    "ServiceLabel": "PSU2",
                    "LocationOrdinalValue": 2
                }
            },
            "LineInputVoltage": null,
            "PowerInputWatts": null,
            "EfficiencyPercent": null,
            "Model": "LENOVO-SP57A80790",
            "PowerCapacityWatts": null,
            "PartNumber": "SP57A80790",
            "Oem": {
                "Lenovo": {
                    "@odata.type": "#LenovoPower.v1_0_0.PowerSupply",
                    "Location": {
                        "Info": "Slot 2",
                        "InfoFormat": "Slot X"
                    },
                    "FruPartNumber": "02JJ992",
                    "HistoryPowerSupplyMetric": {
                        "@odata.id": "/redfish/v1/Chassis/1/Power/PowerSupplies/1/Oem/Lenovo/HistoryPowerSupplyMetric"
                    },
                    "Location@Redfish.Deprecated": "The property is deprecated. Please use Location instead."
                }
            },
            "RelatedItem": [
                {
                    "@odata.id": "/redfish/v1/Chassis/1"
                }
            ],
            "InputRanges": [
                {
                    "MinimumVoltage": null,
                    "OutputWattage": null,
                    "MaximumVoltage": null,
                    "InputType": null
                }
            ],
            "MemberId": "1",
            "PowerSupplyType": "Unknown",
            "LineInputVoltageType": "Unknown",
            "HotPluggable": true,
            "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/1",
            "RelatedItem@odata.count": 1,
            "Manufacturer": "ARTE",
            "Status": {
                "State": "Enabled",
                "Health": "Critical"
            },
            "Name": "PSU2"
        }
    ],
    "@odata.etag": "\"30eab77d2cf8c2e19e878b\"",
    "Id": "Power",
    "Name": "Power",
    "Redundancy@odata.count": 1,
    "PowerControl@odata.count": 3,
    "Redundancy": [
        {
            "MaxNumSupported": 2,
            "Status": {
                "State": "Enabled",
                "Health": "OK"
            },
            "Oem": {
                "Lenovo": {
                    "NonRedundantAvailablePower": 1800,
                    "@odata.type": "#LenovoRedundancy.v1_0_0.LenovoRedundancyProperties",
                    "PowerRedundancySettings": {
                        "EstimatedUsage": "40.17%",
                        "PowerFailureLimit": 0,
                        "PowerRedundancyPolicy": "RedundantWithThrottling",
                        "MaxPowerLimitWatts": 1800
                    }
                }
            },
            "RedundancySet@odata.count": 2,
            "Mode": "N+m",
            "MemberId": "0",
            "Name": "PSU Redundancy",
            "@odata.id": "/redfish/v1/Chassis/1/Power#/Redundancy/0",
            "MinNumNeeded": 2,
            "RedundancySet": [
                {
                    "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/0"
                },
                {
                    "@odata.id": "/redfish/v1/Chassis/1/Power#/PowerSupplies/1"
                }
            ],
            "RedundancyEnabled": true
        }
    ],
    "Voltages@odata.count": 4,
    "@odata.id": "/redfish/v1/Chassis/1/Power",
    "@odata.context": "/redfish/v1/$metadata#Power.Power"
}