summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2017-10-15 05:31:43 -0500
committerJayanth Othayoth <ojayanth@in.ibm.com>2017-10-24 10:12:04 -0500
commit0d426b8569f8a533c49789f2b738ae6bf55f46aa (patch)
tree0db50fce7f268a0b3e13c8c8f8f7fa1990ddeb78
parent9d817ba6adab4f7fdd625c8c7f6c4b542a9a7cc2 (diff)
downloadphosphor-debug-collector-0d426b8569f8a533c49789f2b738ae6bf55f46aa.tar.gz
phosphor-debug-collector-0d426b8569f8a533c49789f2b738ae6bf55f46aa.zip
dreport: Added BMC state plugin
Plugin used for collecting BMC state information. Change-Id: Id22c18757acabf4944a2b136f1f14abf19021a6a Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r--tools/dreport.d/plugins.d/bmcstate17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/bmcstate b/tools/dreport.d/plugins.d/bmcstate
new file mode 100644
index 0000000..c5e31a7
--- /dev/null
+++ b/tools/dreport.d/plugins.d/bmcstate
@@ -0,0 +1,17 @@
+#!/bin/bash
+#
+# config: 123 5
+# @brief: Collect BMC state information.
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="BMC State"
+file_name="bmc-state.log"
+command="busctl get-property \
+ xyz.openbmc_project.State.BMC \
+ /xyz/openbmc_project/state/bmc0 \
+ xyz.openbmc_project.State.BMC \
+ CurrentBMCState"
+
+add_cmd_output "$command" "$file_name" "$desc"
OpenPOWER on IntegriCloud