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