1*f5a66f83SJayanth Othayoth#!/bin/bash
2*f5a66f83SJayanth Othayoth#
3*f5a66f83SJayanth Othayoth# config: 123 5
4*f5a66f83SJayanth Othayoth# @brief: Collect Host state information.
5*f5a66f83SJayanth Othayoth#
6*f5a66f83SJayanth Othayoth
7*f5a66f83SJayanth Othayoth. $DREPORT_INCLUDE/functions
8*f5a66f83SJayanth Othayoth
9*f5a66f83SJayanth Othayothdesc="Host State"
10*f5a66f83SJayanth Othayothfile_name="host-state.log"
11*f5a66f83SJayanth Othayothcommand="busctl get-property \
12*f5a66f83SJayanth Othayoth                    xyz.openbmc_project.State.Host \
13*f5a66f83SJayanth Othayoth                    /xyz/openbmc_project/state/host0 \
14*f5a66f83SJayanth Othayoth                    xyz.openbmc_project.State.Host \
15*f5a66f83SJayanth Othayoth                    CurrentHostState"
16*f5a66f83SJayanth Othayoth
17*f5a66f83SJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc"
18