summaryrefslogtreecommitdiffstats
path: root/tools/dreport.d/plugins.d/bmcstate
blob: c5e31a75e8fc5715284a94d814c1d7779942a026 (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 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