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