142d6ab7cSJayanth Othayoth#!/bin/bash
242d6ab7cSJayanth Othayoth#
3*6d7f753bSMarri Devender Rao# config: 34 20
442d6ab7cSJayanth Othayoth# @brief: Collect only user initialized elog ID details.
542d6ab7cSJayanth Othayoth#
642d6ab7cSJayanth Othayoth
742d6ab7cSJayanth Othayoth. $DREPORT_INCLUDE/functions
842d6ab7cSJayanth Othayoth
942d6ab7cSJayanth Othayothif [ -z $elog_id ]; then
1042d6ab7cSJayanth Othayoth    log_error "elog does not exist"
1142d6ab7cSJayanth Othayoth    exit
1242d6ab7cSJayanth Othayothfi
1342d6ab7cSJayanth Othayoth
1442d6ab7cSJayanth Othayothdesc="elog id:$elog_id"
1542d6ab7cSJayanth Othayothfile_name="elog-$elog_id.log"
1642d6ab7cSJayanth Othayothcommand="busctl --verbose --no-pager \
1742d6ab7cSJayanth Othayoth                  call xyz.openbmc_project.Logging \
1842d6ab7cSJayanth Othayoth                  $optional_path \
1942d6ab7cSJayanth Othayoth                  org.freedesktop.DBus.Properties GetAll s \
2042d6ab7cSJayanth Othayoth                  xyz.openbmc_project.Logging.Entry"
2142d6ab7cSJayanth Othayoth
2242d6ab7cSJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc"
23