1#!/bin/bash 2# 3# config: 1234 5 4# @brief: Collect BMC state information. 5# 6 7# shellcheck source=tools/dreport.d/include.d/functions 8. "$DREPORT_INCLUDE"/functions 9 10desc="BMC State" 11file_name="bmc-state.log" 12command="busctl get-property \ 13 xyz.openbmc_project.State.BMC \ 14 /xyz/openbmc_project/state/bmc0 \ 15 xyz.openbmc_project.State.BMC \ 16 CurrentBMCState" 17 18add_cmd_output "$command" "$file_name" "$desc" 19