blob: eb1c87f6af3b6dcad30c60def9510bc2a0967302 [file] [log] [blame]
Jayanth Othayothf8f6d552017-10-15 05:34:37 -05001#!/bin/bash
2#
Marri Devender Rao6d7f7532018-12-04 09:10:02 -06003# config: 1234 5
Jayanth Othayothf8f6d552017-10-15 05:34:37 -05004# @brief: Collect Chassis state information.
5#
6
7. $DREPORT_INCLUDE/functions
8
9desc="Chassis State"
10file_name="chassis-state.log"
11command="busctl get-property \
12 xyz.openbmc_project.State.Chassis \
13 /xyz/openbmc_project/state/chassis0 \
14 xyz.openbmc_project.State.Chassis \
15 CurrentPowerState"
16
17add_cmd_output "$command" "$file_name" "$desc"