diff options
author | Cheng C Yang <cheng.c.yang@linux.intel.com> | 2019-09-05 11:19:39 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-09-11 01:19:53 +0300 |
commit | dac62eefae32e5a2be5fc918af2ec39c7ca39ea6 (patch) | |
tree | b59d763fa9ec121d905a5cd3059ab43fdc5673a9 /redfish-core/include/registries | |
parent | 944ffaf9ccae2a084cd650370facfb3f76701186 (diff) | |
download | bmcweb-dac62eefae32e5a2be5fc918af2ec39c7ca39ea6.tar.xz |
Add PSU Deassert Event
Add PSU Deassert Event for AC Lost, Predictive Failure, Failure, Fan Fault.
Tested:
Create a Fan Fault and then recover the Fan, check redfish log:
{
"@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/
1566427122_10",
"@odata.type": "#LogEntry.v1_4_0.LogEntry",
"Created": "2019-08-21T22:38:42+00:00",
"EntryType": "Event",
"Id": "1566427122_10",
"Message": "Power supply PSU1 fan fan1 recovered.",
"MessageArgs": [
"PSU1"
],
"MessageId": "OpenBMC.0.1.PowerSupplyFanRecovered",
"Name": "System Event Log Entry",
"Severity": "OK"
},
Signed-off-by: Cheng C Yang <cheng.c.yang@linux.intel.com>
Change-Id: I224510c56ad87d1a2fc8e7ae5b3546fc34243d12
Diffstat (limited to 'redfish-core/include/registries')
-rw-r--r-- | redfish-core/include/registries/openbmc_message_registry.hpp | 63 |
1 files changed, 53 insertions, 10 deletions
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp index f73adf7f4c..5f8fef2fa6 100644 --- a/redfish-core/include/registries/openbmc_message_registry.hpp +++ b/redfish-core/include/registries/openbmc_message_registry.hpp @@ -1023,16 +1023,6 @@ const std::array registry = { .resolution = "None.", }}, MessageEntry{ - "PowerSupplyACLost", - { - .description = "Indicates that a power supply has lost AC power.", - .message = "Power supply %1 AC power lost.", - .severity = "Critical", - .numberOfArgs = 1, - .paramTypes = {"string"}, - .resolution = "None.", - }}, - MessageEntry{ "PowerSupplyConfigurationError", { .description = "Indicates an error in power supply configuration.", @@ -1053,6 +1043,17 @@ const std::array registry = { .paramTypes = {"string", "string"}, .resolution = "None.", }}, + MessageEntry{ + "PowerSupplyFanRecovered", + { + .description = + "Indicates that the power supply fan recovered from a failure.", + .message = "Power supply %1 fan %2 recovered.", + .severity = "OK", + .numberOfArgs = 2, + .paramTypes = {"string", "string"}, + .resolution = "None.", + }}, MessageEntry{"PowerSupplyFailed", { .description = "Indicates that a power supply has failed.", @@ -1094,6 +1095,48 @@ const std::array registry = { .paramTypes = {"number"}, .resolution = "None.", }}, + MessageEntry{"PowerSupplyPowerLost", + { + .description = + "Indicates that a power supply has lost input power.", + .message = "Power supply %1 power lost.", + .severity = "Critical", + .numberOfArgs = 1, + .paramTypes = {"string"}, + .resolution = "None.", + }}, + MessageEntry{ + "PowerSupplyPowerRestored", + { + .description = + "Indicates that a power supply input power was restored.", + .message = "Power supply %1 power restored.", + .severity = "OK", + .numberOfArgs = 1, + .paramTypes = {"string"}, + .resolution = "None.", + }}, + MessageEntry{"PowerSupplyPredictedFailureRecovered", + { + .description = "Indicates that a power supply recovered " + "from a predicted failure.", + .message = "Power supply %1 predicted failure recovered.", + .severity = "OK", + .numberOfArgs = 1, + .paramTypes = {"string"}, + .resolution = "None.", + }}, + MessageEntry{ + "PowerSupplyRecovered", + { + .description = + "Indicates that a power supply recovered from a failure.", + .message = "Power supply %1 recovered.", + .severity = "OK", + .numberOfArgs = 1, + .paramTypes = {"string"}, + .resolution = "None.", + }}, MessageEntry{ "PowerSupplyRemoved", { |