blob: 5bd956ad343803e4ee2ccd615f8ae1d059f97013 [file] [log] [blame]
Jayanth Othayoth42d6ab72017-10-15 05:42:48 -05001#!/bin/bash
2#
3# config: 3 20
4# @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"