blob: c03abaf3e9350e6792538b82f0615dc1c6963b52 [file] [log] [blame]
Jayanth Othayoth42d6ab72017-10-15 05:42:48 -05001#!/bin/bash
2#
Marri Devender Rao6d7f7532018-12-04 09:10:02 -06003# config: 34 20
Jayanth Othayoth42d6ab72017-10-15 05:42:48 -05004# @brief: Collect only user initialized elog ID details.
5#
6
7. $DREPORT_INCLUDE/functions
8
9if [ -z $elog_id ]; then
10 log_error "elog does not exist"
11 exit
12fi
13
14desc="elog id:$elog_id"
15file_name="elog-$elog_id.log"
16command="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
22add_cmd_output "$command" "$file_name" "$desc"