diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-11-03 06:00:37 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-11-10 16:25:48 +0000 |
commit | 7533eb3f90ddc90a70281bec4ba9c64e9e05471a (patch) | |
tree | 2579f3c3f396c3414d25f3586fddeb0908a0ed5a | |
parent | d8166111d65e77c7358814d4e741f0cce21d9765 (diff) | |
download | phosphor-debug-collector-7533eb3f90ddc90a70281bec4ba9c64e9e05471a.tar.gz phosphor-debug-collector-7533eb3f90ddc90a70281bec4ba9c64e9e05471a.zip |
Added GetManagedObjects based elog data collection
GetManagedObjects based elog data collection will reduce
to one d-bus call, for entire elog properties dump.
Change-Id: I2d2a5922418e0c26b5cf93d94203747121910a50
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r-- | tools/dreport.d/plugins.d/elogall | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/dreport.d/plugins.d/elogall b/tools/dreport.d/plugins.d/elogall index fbbe345..0d500f6 100644 --- a/tools/dreport.d/plugins.d/elogall +++ b/tools/dreport.d/plugins.d/elogall @@ -18,13 +18,11 @@ if [ -z "$entries" ]; then exit 0 fi -command="busctl --list --no-pager tree \ - xyz.openbmc_project.Logging | grep \ - '/xyz/openbmc_project/logging/entry/' \ - | xargs -I {} busctl --verbose --no-pager \ - call xyz.openbmc_project.Logging {} \ - org.freedesktop.DBus.Properties GetAll s \ - xyz.openbmc_project.Logging.Entry" +command="busctl call --verbose --no-pager \ + xyz.openbmc_project.Logging \ + /xyz/openbmc_project/logging \ + org.freedesktop.DBus.ObjectManager \ + GetManagedObjects" file_name="elogall.log" |