pldmtool: oem: Implement GetAlertStatus command
Tested:
pldmtool oem-ibm GetAlertStatus -i 0
Encode request successfully
Request Message:
08 01 80 3f f0 00
Success in creating the socket : RC = 4
Success in connecting to socket : RC = 0
Success in sending message type as pldm to mctp : RC = 0
Write to socket successful : RC = 6
Total length: 14
Shutdown Socket successful : RC = 0
Response Message:
08 01 00 3f f0 00 30 00 00 ff 30 80 00 00
GetAlertStatus Success:
rack entry: 0xff000030
pri cec node: 0x00008030
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I5650591f547abb4ea5961e51ff11af8d1d20b4f2
diff --git a/tool/oem/ibm/pldm_host_cmd.hpp b/tool/oem/ibm/pldm_host_cmd.hpp
new file mode 100644
index 0000000..d57ccd4
--- /dev/null
+++ b/tool/oem/ibm/pldm_host_cmd.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <CLI/CLI.hpp>
+
+namespace pldmtool
+{
+
+namespace oem_ibm
+{
+namespace power_host
+{
+
+void registerCommand(CLI::App& app);
+
+}
+
+} // namespace oem_ibm
+
+} // namespace pldmtool