Matt Spinler | 036c8f9 | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # config: 2 20 |
| 4 | # @brief: Get the IBM specific elog objects |
| 5 | # |
| 6 | |
| 7 | . $DREPORT_INCLUDE/functions |
| 8 | |
| 9 | desc="IBM elog" |
| 10 | |
| 11 | entries=$(busctl --list --no-pager tree \ |
| 12 | com.ibm.Logging | grep \ |
| 13 | '/xyz/openbmc_project/logging/entry/') |
| 14 | |
| 15 | #check for elog entries. |
| 16 | if [ -z "$entries" ]; then |
| 17 | log_info "No $desc entries" |
| 18 | exit 0 |
| 19 | fi |
| 20 | |
| 21 | command="busctl call --verbose --no-pager \ |
| 22 | com.ibm.Logging \ |
| 23 | /xyz/openbmc_project/logging \ |
| 24 | org.freedesktop.DBus.ObjectManager \ |
| 25 | GetManagedObjects" |
| 26 | |
| 27 | file_name="ibm_elogall.log" |
| 28 | |
| 29 | add_cmd_output "$command" "$file_name" "$desc" |