blob: 33fd98e1ec304fcdb01a33e5dee57d1ac9cfa973 [file] [log] [blame]
Jayanth Othayoth35586cd2017-10-15 05:39:26 -05001#!/bin/bash
2#
3# config: 2 20
4# @brief: Get all the available elogs from BMC.
5#
6
7. $DREPORT_INCLUDE/functions
8
9desc="elog"
10
11entries=$(busctl --list --no-pager tree \
Patrick Williams9d26e4f2022-12-08 06:46:44 -060012 xyz.openbmc_project.Logging | grep \
13 '/xyz/openbmc_project/logging/entry/')
Jayanth Othayoth35586cd2017-10-15 05:39:26 -050014
15#check for elog entries.
16if [ -z "$entries" ]; then
17 log_info "No $desc entries"
18 exit 0
19fi
20
Jayanth Othayoth7533eb32017-11-03 06:00:37 -050021command="busctl call --verbose --no-pager \
22 xyz.openbmc_project.Logging \
23 /xyz/openbmc_project/logging \
24 org.freedesktop.DBus.ObjectManager \
25 GetManagedObjects"
Jayanth Othayoth35586cd2017-10-15 05:39:26 -050026
27file_name="elogall.log"
28
29add_cmd_output "$command" "$file_name" "$desc"