Jayanth Othayoth | f5a66f8 | 2017-10-15 05:38:29 -0500 | [diff] [blame] | 1 | #!/bin/bash |
2 | # | ||||
3 | # config: 123 5 | ||||
4 | # @brief: Collect Host state information. | ||||
5 | # | ||||
6 | |||||
7 | . $DREPORT_INCLUDE/functions | ||||
8 | |||||
9 | desc="Host State" | ||||
10 | file_name="host-state.log" | ||||
11 | command="busctl get-property \ | ||||
12 | xyz.openbmc_project.State.Host \ | ||||
13 | /xyz/openbmc_project/state/host0 \ | ||||
14 | xyz.openbmc_project.State.Host \ | ||||
15 | CurrentHostState" | ||||
16 | |||||
17 | add_cmd_output "$command" "$file_name" "$desc" |