blob: 4c64ff18b241e925d5382a80ba1514eeb789d50b [file] [log] [blame]
Jayanth Othayothf5a66f82017-10-15 05:38:29 -05001#!/bin/bash
2#
Marri Devender Rao6d7f7532018-12-04 09:10:02 -06003# config: 1234 5
Jayanth Othayothf5a66f82017-10-15 05:38:29 -05004# @brief: Collect Host state information.
5#
6
7. $DREPORT_INCLUDE/functions
8
9desc="Host State"
10file_name="host-state.log"
11command="busctl get-property \
12 xyz.openbmc_project.State.Host \
13 /xyz/openbmc_project/state/host0 \
14 xyz.openbmc_project.State.Host \
15 CurrentHostState"
16
17add_cmd_output "$command" "$file_name" "$desc"