blob: 673efeca06b922e90ff3146b5f81f125ada5305d [file] [log] [blame]
Jayanth Othayoth0d426b82017-10-15 05:31:43 -05001#!/bin/bash
2#
Marri Devender Rao6d7f7532018-12-04 09:10:02 -06003# config: 1234 5
Jayanth Othayoth0d426b82017-10-15 05:31:43 -05004# @brief: Collect BMC state information.
5#
6
7. $DREPORT_INCLUDE/functions
8
9desc="BMC State"
10file_name="bmc-state.log"
11command="busctl get-property \
12 xyz.openbmc_project.State.BMC \
13 /xyz/openbmc_project/state/bmc0 \
14 xyz.openbmc_project.State.BMC \
15 CurrentBMCState"
16
17add_cmd_output "$command" "$file_name" "$desc"