diff options
-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" |