diff options
| author | Yong Li <yong.b.li@linux.intel.com> | 2019-07-11 15:46:09 +0800 |
|---|---|---|
| committer | Yong Li <yong.b.li@intel.com> | 2019-07-25 02:03:50 +0000 |
| commit | 93a2b2fcfce6ac12a117bd35c364f21bd139fccd (patch) | |
| tree | d536e2374d37d0e4e2395b11ab85f6f3b0aa01d7 /redfish-core/include | |
| parent | 2a833c77b5731239820f74eec8f312371b0b0e4f (diff) | |
| download | bmcweb-93a2b2fcfce6ac12a117bd35c364f21bd139fccd.tar.gz bmcweb-93a2b2fcfce6ac12a117bd35c364f21bd139fccd.zip | |
Add message entry for IPMI watchdog event
Log the IPMI watchdog event into redfish.
Tested:
Set a hard reset watchdog:
ipmitool raw 0x06 0x24 0x5 0x1 0x0 0x0 0x64 0x00
Start the timer:
ipmitool mc watchdog reset
Check the below log message in
https://$bmcip/redfish/v1/Systems/system/LogServices/EventLog/Entries
"Message": "Host Watchdog Event: Hard Reset – System reset due to Watchdog timeout",
"MessageArgs": [
"Hard Reset – System reset due to Watchdog timeout"
],
"MessageId": "OpenBMC.0.1.IPMIWatchdog",
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Change-Id: I652faf3b92489b2dd3216eb0cbaaf375e643c749
Diffstat (limited to 'redfish-core/include')
| -rw-r--r-- | redfish-core/include/registries/openbmc_message_registry.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp index f85f025..55b5299 100644 --- a/redfish-core/include/registries/openbmc_message_registry.hpp +++ b/redfish-core/include/registries/openbmc_message_registry.hpp @@ -281,6 +281,21 @@ const std::array registry = { }, .resolution = "None.", }}, + + MessageEntry{ + "IPMIWatchdog", + { + .description = "Indicates that there is a host watchdog event.", + .message = "Host Watchdog Event: %1", + .severity = "OK", + .numberOfArgs = 1, + .paramTypes = + { + "string", + }, + .resolution = "None.", + }}, + MessageEntry{ "LegacyPCIPERR", { |

