Skip to content

Instantly share code, notes, and snippets.

@lxwinspur
Last active June 24, 2020 07:49
Show Gist options
  • Save lxwinspur/db1e6e37a14bdd626591b222e96f9d7e to your computer and use it in GitHub Desktop.
Save lxwinspur/db1e6e37a14bdd626591b222e96f9d7e to your computer and use it in GitHub Desktop.
Official PDR JSON file
{
"effecterPDRs": [
{
"pdrType": 11,
"entries": [
{
"type": 33,
"instance": 0,
"effecters": [
{
"set": {
"id": 196,
"size": 1,
"states": [
1,
2
]
},
"dbus": {
"path": "/xyz/openbmc_project/state/host0",
"interface": "xyz.openbmc_project.State.OperatingSystem.Status",
"property_name": "OperatingSystemState",
"property_type": "string",
"property_values": [
"xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Standby",
"xyz.openbmc_project.OperatingSystem.Status.OSStatus.BootComplete"
]
}
}
]
},
{
"type": 45,
"instance": 0,
"effecters": [
{
"set": {
"id": 260,
"size": 2,
"states": [
9
]
},
"dbus": {
"path": "/xyz/openbmc_project/state/chassis0",
"interface": "xyz.openbmc_project.State.Chassis",
"property_name": "RequestedPowerTransition",
"property_type": "string",
"property_values": [
"xyz.openbmc_project.State.Chassis.Transition.Off"
]
}
}
]
}
]
},
{
"pdrType": 9,
"entries": [
{
"type": 31,
"instance": 0,
"base_unit": 21,
"rate_unit": 3,
"effecter_resolutioninit": 1,
"effecter_data_size": 4,
"range_field_format": 4,
"dbus": {
"path": "/xyz/openbmc_project/state/scheduledHostTransition",
"interface": "xyz.openbmc_project.State.ScheduledHostTransition",
"property_name": "ScheduledTime",
"property_type": "uint64_t"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment