Jayanth Othayoth | 42d6ab7 | 2017-10-15 05:42:48 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # config: 3 20 |
| 4 | # @brief: Collect only user initialized elog ID details. |
| 5 | # |
| 6 | |
| 7 | . $DREPORT_INCLUDE/functions |
| 8 | |
| 9 | if [ -z $elog_id ]; then |
| 10 | log_error "elog does not exist" |
| 11 | exit |
| 12 | fi |
| 13 | |
| 14 | desc="elog id:$elog_id" |
| 15 | file_name="elog-$elog_id.log" |
| 16 | command="busctl --verbose --no-pager \ |
| 17 | call xyz.openbmc_project.Logging \ |
| 18 | $optional_path \ |
| 19 | org.freedesktop.DBus.Properties GetAll s \ |
| 20 | xyz.openbmc_project.Logging.Entry" |
| 21 | |
| 22 | add_cmd_output "$command" "$file_name" "$desc" |