Integration / D Bus Interview Questions
What is dbus-monitor used for?
dbus-monitor is a debugging tool that attaches to a bus and prints every message flowing across it in real time: method calls, method returns, errors, and signals, along with their sender, destination, path, interface, and arguments.
dbus-monitor --system "interface='org.freedesktop.NetworkManager'"
Because it can flood the terminal on a busy bus, it's typically run with a match rule filter, as shown above, so only traffic matching a specific interface, sender, or path is shown. This makes it invaluable for diagnosing whether a service is actually emitting the signal you expect, whether a method call is reaching its destination, or what the exact arguments and types of a message look like in practice.
It's a read-only observer; it doesn't send anything itself, which makes it safe to run alongside a live system without risk of interfering with it.
More Related questions...