dreport: Migrate from dbus-send to busctl
Recent versions of openbmc has removed dbus-send in favor of busctl.
This change migrates the shell command to move over to using busctl.
Tested: Tested on a yosemite4 host and ensured that the tarball
contained the correct info.
Change-Id: I81c68cd9f69b10c59f0fc30cbee3c36357b81639
Signed-off-by: Amithash Prasad <amithash@meta.com>
diff --git a/tools/dreport.d/plugins.d/dbusstats b/tools/dreport.d/plugins.d/dbusstats
index 49a046a..5ff30a2 100644
--- a/tools/dreport.d/plugins.d/dbusstats
+++ b/tools/dreport.d/plugins.d/dbusstats
@@ -1,17 +1,16 @@
#!/bin/bash
#
# config: 2 50
-# @brief: Get the internal dbus information.
+# @brief: Get the internal D-bus information.
#
# shellcheck source=/dev/null
. "$DREPORT_INCLUDE"/functions
-desc="dbus internal stats"
+desc="D-bus internal stats"
-command="dbus-send --system --dest=org.freedesktop.DBus \
- --type=method_call --print-reply \
- /org/freedesktop/DBus org.freedesktop.DBus.Debug.Stats.GetStats"
+command="busctl call org.freedesktop.DBus /org/freedesktop/DBus \
+ org.freedesktop.DBus.Debug.Stats GetStats \"\" a{sv} --verbose"
file_name="dbusstats.log"