summaryrefslogtreecommitdiffstats
path: root/tools/dreport.d/plugins.d/chassisstate
blob: c29da115c8f8aa60a5e341be17cc1e4ca17ecf8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"
OpenPOWER on IntegriCloud