dbus-marshal-byteswap: Byte-swap Unix fd indexes if needed
[platform/upstream/dbus.git] / doc / dbus-monitor.1.xml.in
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3                    "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
4 <refentry id='dbusmonitor1'>
5
6 <!--  dbus&bsol;-monitor manual page.
7  Copyright (C) 2003 Red Hat, Inc. -->
8
9 <refmeta>
10 <refentrytitle>dbus-monitor</refentrytitle>
11 <manvolnum>1</manvolnum>
12 <refmiscinfo class="manual">User Commands</refmiscinfo>
13 <refmiscinfo class="source">D-Bus</refmiscinfo>
14 <refmiscinfo class="version">@DBUS_VERSION@</refmiscinfo>
15 </refmeta>
16 <refnamediv>
17 <refname>dbus-monitor</refname>
18 <refpurpose>debug probe to print message bus messages</refpurpose>
19 </refnamediv>
20 <!-- body begins here -->
21 <refsynopsisdiv id='synopsis'>
22 <cmdsynopsis>
23   <command>dbus-monitor</command>
24     <group choice='opt'><arg choice='plain'>--system </arg><arg choice='plain'>--session </arg><arg choice='plain'>--address <replaceable>ADDRESS</replaceable></arg></group>
25     <group choice='opt'><arg choice='plain'>--profile </arg><arg choice='plain'>--monitor </arg><arg choice='plain'>--pcap </arg><arg choice='plain'>--binary </arg></group>
26     <arg choice='opt'><arg choice='plain'><replaceable>watch</replaceable></arg><arg choice='plain'><replaceable>expressions</replaceable></arg></arg>
27     <sbr/>
28 </cmdsynopsis>
29 </refsynopsisdiv>
30
31
32 <refsect1 id='description'><title>DESCRIPTION</title>
33 <para>The <command>dbus-monitor</command> command is used to monitor messages going
34 through a D-Bus message bus.  See
35 <ulink url='http://www.freedesktop.org/software/dbus/'>http://www.freedesktop.org/software/dbus/</ulink> for more information about
36 the big picture.</para>
37
38
39 <para>There are two well-known message buses: the systemwide message bus
40 (installed on many systems as the "messagebus" service) and the
41 per-user-login-session message bus (started each time a user logs in).
42 The --system and --session options direct <command>dbus-monitor</command> to
43 monitor the system or session buses respectively.  If neither is
44 specified, <command>dbus-monitor</command> monitors the session bus.</para>
45
46
47 <para><command>dbus-monitor</command> has two different text output
48 modes: the 'classic'-style
49 monitoring mode, and profiling mode. The profiling format is a compact
50 format with a single line per message and microsecond-resolution timing
51 information. The --profile and --monitor options select the profiling
52 and monitoring output format respectively.</para>
53
54 <para><command>dbus-monitor</command> also has two binary output modes.
55   The binary mode, selected by <literal>--binary</literal>, outputs the
56   entire binary message stream (without the initial authentication handshake).
57   The PCAP mode, selected by <literal>--pcap</literal>, adds a
58   PCAP file header to the beginning of the output, and prepends a PCAP
59   message header to each message; this produces a binary file that can
60   be read by, for instance, Wireshark.</para>
61
62 <para>If no mode is specified,
63 <command>dbus-monitor</command> uses the monitoring output format.</para>
64
65
66 <para>In order to get <command>dbus-monitor</command> to see the messages you are interested
67 in, you should specify a set of watch expressions as you would expect to
68 be passed to the <emphasis remap='I'>dbus_bus_add_match</emphasis> function.</para>
69
70
71 <para>The message bus configuration may keep <command>dbus-monitor</command> from seeing
72 all messages, especially if you run the monitor as a non-root user.</para>
73
74 </refsect1>
75
76 <refsect1 id='options'><title>OPTIONS</title>
77 <variablelist remap='TP'>
78   <varlistentry>
79   <term><option>--system</option></term>
80   <listitem>
81 <para>Monitor the system message bus.</para>
82   </listitem>
83   </varlistentry>
84   <varlistentry>
85   <term><option>--session</option></term>
86   <listitem>
87 <para>Monitor the session message bus.  (This is the default.)</para>
88   </listitem>
89   </varlistentry>
90   <varlistentry>
91   <term><option>--address ADDRESS</option></term>
92   <listitem>
93 <para>Monitor an arbitrary message bus given at ADDRESS.</para>
94   </listitem>
95   </varlistentry>
96   <varlistentry>
97   <term><option>--profile</option></term>
98   <listitem>
99 <para>Use the profiling output format.</para>
100   </listitem>
101   </varlistentry>
102   <varlistentry>
103   <term><option>--monitor</option></term>
104   <listitem>
105 <para>Use the monitoring output format.  (This is the default.)</para>
106
107   </listitem>
108   </varlistentry>
109 </variablelist>
110 </refsect1>
111
112 <refsect1 id='example'><title>EXAMPLE</title>
113 <para>Here is an example of using dbus-monitor to watch for the gnome typing
114 monitor to say things</para>
115 <literallayout remap='.nf'>
116
117   dbus-monitor "type='signal',sender='org.gnome.TypingMonitor',interface='org.gnome.TypingMonitor'"
118
119 </literallayout> <!-- .fi -->
120
121 </refsect1>
122
123 <refsect1 id='author'><title>AUTHOR</title>
124 <para>dbus-monitor was written by Philip Blundell.
125 The profiling output mode was added by Olli Salli.</para>
126
127 </refsect1>
128
129 <refsect1 id='bugs'><title>BUGS</title>
130 <para>Please send bug reports to the D-Bus mailing list or bug tracker,
131 see <ulink url='http://www.freedesktop.org/software/dbus/'>http://www.freedesktop.org/software/dbus/</ulink></para>
132 </refsect1>
133 </refentry>