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