1*42d6ab7cSJayanth Othayoth#!/bin/bash
2*42d6ab7cSJayanth Othayoth#
3*42d6ab7cSJayanth Othayoth# config: 3 20
4*42d6ab7cSJayanth Othayoth# @brief: Collect only user initialized elog ID details.
5*42d6ab7cSJayanth Othayoth#
6*42d6ab7cSJayanth Othayoth
7*42d6ab7cSJayanth Othayoth. $DREPORT_INCLUDE/functions
8*42d6ab7cSJayanth Othayoth
9*42d6ab7cSJayanth Othayothif [ -z $elog_id ]; then
10*42d6ab7cSJayanth Othayoth    log_error "elog does not exist"
11*42d6ab7cSJayanth Othayoth    exit
12*42d6ab7cSJayanth Othayothfi
13*42d6ab7cSJayanth Othayoth
14*42d6ab7cSJayanth Othayothdesc="elog id:$elog_id"
15*42d6ab7cSJayanth Othayothfile_name="elog-$elog_id.log"
16*42d6ab7cSJayanth Othayothcommand="busctl --verbose --no-pager \
17*42d6ab7cSJayanth Othayoth                  call xyz.openbmc_project.Logging \
18*42d6ab7cSJayanth Othayoth                  $optional_path \
19*42d6ab7cSJayanth Othayoth                  org.freedesktop.DBus.Properties GetAll s \
20*42d6ab7cSJayanth Othayoth                  xyz.openbmc_project.Logging.Entry"
21*42d6ab7cSJayanth Othayoth
22*42d6ab7cSJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc"
23