diff options
| author | Cheng C Yang <cheng.c.yang@linux.intel.com> | 2019-09-24 00:09:59 +0800 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2019-09-23 21:26:25 +0000 |
| commit | cecb4cb6f0423a86645b936b54b65707d1513f11 (patch) | |
| tree | d9ba0fcaca18c3e96a847ec0650696627ff8acf4 /redfish-core/include | |
| parent | 77ba66bffc681656ada625014b30e48fc66ead7f (diff) | |
| download | bmcweb-cecb4cb6f0423a86645b936b54b65707d1513f11.tar.gz bmcweb-cecb4cb6f0423a86645b936b54b65707d1513f11.zip | |
Add Power Unit Redundancy Log
Add Power Unit Redundancy Redfish Log.
Tested:
Tested:
When there are two PSU on the sytem, remove one AC cable on PSU. Then bellow
Redfish log will be created.
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/
1568504619_1",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-09-14T23:43:39+00:00",
"EntryType": "Event",
"Id": "1568504619_1",
"Message": "Power Unit Nonredundant but has sufficient resource.",
"MessageArgs": [],
"MessageId": "OpenBMC.0.1.PowerUnitNonRedundantSufficient",
"Name": "System Event Log Entry",
"Severity": "Warning"
},
Plug in the AC cable again, the Redfish log will show
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/
1568504628",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-09-14T23:43:48+00:00",
"EntryType": "Event",
"Id": "1568504628",
"Message": "Power Unit Redundancy regained.",
"MessageArgs": [],
"MessageId": "OpenBMC.0.1.PowerUnitRedundancyRegained",
"Name": "System Event Log Entry",
"Severity": "OK"
}
Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
Change-Id: I4f2d12e0dbc02f13062ea8e524b37248acf9c662
Diffstat (limited to 'redfish-core/include')
| -rw-r--r-- | redfish-core/include/registries/openbmc_message_registry.hpp | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp index 779a0a6..c3ec266 100644 --- a/redfish-core/include/registries/openbmc_message_registry.hpp +++ b/redfish-core/include/registries/openbmc_message_registry.hpp @@ -1205,6 +1205,98 @@ const std::array registry = { .resolution = "None.", }}, MessageEntry{ + "PowerUnitDegradedFromNonRedundant", + { + .description = + "Indicates that power unit is come back to redundant from" + "nonredundant but is still not in full redundancy mode.", + .message = "Power Unit degraded from nonredundant.", + .severity = "Warning", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{"PowerUnitDegradedFromRedundant", + { + .description = + "Indicates that power unit is degarded from full " + "redundancy mode.", + .message = "Power Unit degraded from redundant.", + .severity = "Warning", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{ + "PowerUnitRedundancyDegraded", + { + .description = + "Indicates that power unit redundancy has been degraded.", + .message = "Power Unit Redundancy degraded.", + .severity = "Warning", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{ + "PowerUnitNonRedundantFromInsufficient", + { + .description = + "Indicates that power unit is not in redundancy mode and get" + "sufficient power to support redundancy from insufficient" + "power.", + .message = + "Power Unit NonRedundant from insufficient to sufficient.", + .severity = "Warning", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{ + "PowerUnitNonRedundantInsufficient", + { + .description = "Indicates that power unit do not have sufficient " + "power to support redundancy.", + .message = "Power Unit NonRedundant and has insufficient resource.", + .severity = "Error", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{"PowerUnitRedundancyLost", + { + .description = + "Indicates that power unit redundancy has been lost.", + .message = "Power Unit Redundancy lost.", + .severity = "Warning", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{ + "PowerUnitRedundancyRegained", + { + .description = + "Indicates that power unit full redundancy has been regained.", + .message = "Power Unit Redundancy regained.", + .severity = "OK", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{ + "PowerUnitNonRedundantSufficient", + { + .description = + "Indicates that power unit is not in redundancy mode but still" + "has sufficient power to support redundancy.", + .message = "Power Unit Nonredundant but has sufficient resource.", + .severity = "Warning", + .numberOfArgs = 0, + .paramTypes = {}, + .resolution = "None.", + }}, + MessageEntry{ "ResetButtonPressed", { .description = "Indicates that the reset button was pressed.", |

