1#!/bin/bash 2# 3# config: 2 20 4# @brief: Get all the available elogs from BMC. 5# 6 7# shellcheck source=tools/dreport.d/include.d/functions 8. "$DREPORT_INCLUDE"/functions 9 10desc="elog" 11 12entries=$(busctl --list --no-pager tree \ 13 xyz.openbmc_project.Logging | grep \ 14 '/xyz/openbmc_project/logging/entry/') 15 16#check for elog entries. 17if [ -z "$entries" ]; then 18 log_info "No $desc entries" 19 exit 0 20fi 21 22command="busctl call --verbose --no-pager \ 23 xyz.openbmc_project.Logging \ 24 /xyz/openbmc_project/logging \ 25 org.freedesktop.DBus.ObjectManager \ 26 GetManagedObjects" 27 28file_name="elogall.log" 29 30add_cmd_output "$command" "$file_name" "$desc" 31