diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-15 05:34:37 -0500 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-24 10:12:04 -0500 |
commit | f8f6d556c9dbe6f1fce78485fa778e519907b1ca (patch) | |
tree | 367ea5bf859192a856906d71ccff8769c0d44629 | |
parent | 0d426b8569f8a533c49789f2b738ae6bf55f46aa (diff) | |
download | phosphor-debug-collector-f8f6d556c9dbe6f1fce78485fa778e519907b1ca.tar.gz phosphor-debug-collector-f8f6d556c9dbe6f1fce78485fa778e519907b1ca.zip |
dreport: Added Chassis state plugin
Plugin used for collecting Chassis state information.
Change-Id: I9aafd402e6300d7139bdf1ffb4cea60bf0589020
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r-- | tools/dreport.d/plugins.d/chassisstate | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/chassisstate b/tools/dreport.d/plugins.d/chassisstate new file mode 100644 index 0000000..c29da11 --- /dev/null +++ b/tools/dreport.d/plugins.d/chassisstate @@ -0,0 +1,17 @@ +#!/bin/bash +# +# config: 123 5 +# @brief: Collect Chassis state information. +# + +. $DREPORT_INCLUDE/functions + +desc="Chassis State" +file_name="chassis-state.log" +command="busctl get-property \ + xyz.openbmc_project.State.Chassis \ + /xyz/openbmc_project/state/chassis0 \ + xyz.openbmc_project.State.Chassis \ + CurrentPowerState" + +add_cmd_output "$command" "$file_name" "$desc" |