DBUS-TEST-TOOL(1)
π DBUS-TEST-TOOL(1) β the dbus-test-tool girlies' guide π
okay so bestie, welcome to dbus-test-tool, a whole multi-purpose tool for debugging and profiling D-Bus β¨ (it's in the User Commands section of the manual, iykyk). she's a D-Bus traffic generator and test tool, and she ate, no cap π«Ά
πΈ SYNOPSIS πΈ
dbus-test-tool black-hole [--session | --system] [--name=NAME]
[--no-read]
dbus-test-tool echo [--session | --system] [--name=NAME] [--sleep-ms=MS]
dbus-test-tool spam [--session | --system] [--dest=NAME] [--count=N]
[--flood] [--ignore-errors] [--messages-per-conn=N]
[--no-reply] [--queue=N] [--seed=SEED] [--string |
--bytes | --empty] [--payload=S | --stdin |
--message-stdin | --random-size]
π¦ DESCRIPTION π¦
dbus-test-tool is literally a multi-purpose tool for debugging and profiling D-Bus. three modes, three vibes, one icon π.
dbus-test-tool black-hole connects to D-Bus, optionally requests a name, and then just... does not reply to messages π. she normally reads and discards messages from her D-Bus socket, but you can configure her to sleep forever without reading. main character energy: present, unbothered, unreachable.
dbus-test-tool echo connects to D-Bus, optionally requests a name, then sends back an empty reply to every method call, after an optional delay. she's giving customer service π "thanks for your message bestie, here's nothing back."
dbus-test-tool spam connects to D-Bus and makes repeated method calls, normally named com.example.Spam. yes she's that girl and she's not sorry π₯.
β¨ OPTIONS β¨
π Common options
--sessionβ connect to the session bus. this is the default, she lives here π--systemβ connect to the system bus. big-girl bus energy π
π³οΈ black-hole mode
--name=NAMEβ before proceeding, request ownership of the well-known bus name NAME, for examplecom.example.NoReply. by default, no name is requested, and the tool can only be addressed by a unique bus name such as:1.23.--no-readβ do not read from the D-Bus socket. literally not listening, not even a little π
πͺ echo mode
--name=NAMEβ before proceeding, request ownership of the well-known bus name NAME, for examplecom.example.Echo. by default, no name is requested, and the tool can only be addressed by a unique bus name such as:1.23.--sleep-ms=MSβ block for MS milliseconds before replying to a method call. the dramatic pause, the tension, the buildup π
πͺοΈ spam mode
--dest=NAMEβ send method calls to the well-known or unique bus name NAME. the default is the dbus-daemon,org.freedesktop.DBus.--count=Nβ send N method calls in total. the default is1. one (1) single call, she's pacing herself.--queue=Nβ send N method calls before waiting for any replies, then send one new call per reply received, keeping N method calls "in flight" at all times until the number of messages specified with the--countoption have been sent. the default is1, unless--floodis used. it's giving juggling, but make it D-Bus π€ΉββοΈ--floodβ send all messages without waiting for a reply, equivalent to--queuewith an arbitrarily large N. no thoughts, head empty, just messages π--no-replyβ set the "no reply desired" flag on the messages. this implies--flood, since it disables the replies that would be used for a finite--queuelength. don't @ her, she won't answer π--messages-per-conn=Nβ if given, send N method calls on the same connection, then disconnect and reconnect. the default is to use the same connection for all method calls. glow-up via rebrand, then come back π¦--stringβ the payload of each message is a UTF-8 string. this is the default. the actual string used is given by the--payloador--stdinoption, defaulting to"hello, world!"π--bytesβ the payload of each message is a byte-array. the actual bytes used are given by the--payloador--stdinoption, defaulting to the ASCII encoding of"hello, world!".--emptyβ the messages have no payload. minimalism, she invented it π--payload=Sβ use S as the--stringor--bytesin the messages. the default is"hello, world!".--stdinβ read from standard input until end-of-file is reached, and use that as the--stringor--bytesin the messages. feed her, she's hungry π«Ά--message-stdinβ read a complete binary D-Bus method call message from standard input, and use that for each method call. one message to rule them all π--random-sizeβ read whitespace-separated ASCII decimal numbers from standard input, choose one at random for each message, and send a message whose payload is a string of that length. chaos, but make it measured πͺοΈ--seed=SEEDβ use SEED as the seed for the pseudorandom number generator, to have somewhat repeatable sequences of random messages. "somewhat" is doing a lot of heavy lifting there, ngl π
β οΈ heads up bestie: --ignore-errors shows up in the synopsis for spam mode but has no dedicated description in this manual page β it's listed, so here it is in the synopsis, but there's no extra tea on it. same energy as a group chat message that got left on read π
π BUGS π
please send bug reports to the D-Bus bug tracker or mailing list. see https://www.freedesktop.org/wiki/Software/dbus/. be nice about it, the maintainers are people too π«Ά
π AUTHOR π
see https://dbus.freedesktop.org/doc/AUTHORS β the whole squad of legends is listed there π
β SEE ALSO β
dbus-send(1)β the other one you'll be googling at 2am, fr fr
π COPYRIGHT π
copyright Β© 2015 Collabora Ltd. π
this man page is distributed under the same terms as dbus-test-tool (GPL-2+). there is NO WARRANTY, to the extent permitted by law. no cap, zero warranty, read the license bestie π
and that's the tea π΅ β page brought to you by D-Bus 1.16.2, dated 03/03/2025, DBUS-TEST-TOOL(1), slaying since forever β¨π
π¦
π¦ where this page comes from
- alpine 3.22: dbus-doc 1.16.2-r1 Β· AFL-2.1 OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms