summaryrefslogtreecommitdiffstats
path: root/tools/dreport.d/plugins.d/hoststate
blob: 4c64ff18b241e925d5382a80ba1514eeb789d50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# config: 1234 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"
OpenPOWER on IntegriCloud