~roger.light/ubuntu/vivid/mosquitto/fix-for-1423037

« back to all changes in this revision

Viewing changes to man/mosquitto.8

  • Committer: Bazaar Package Importer
  • Author(s): Roger A. Light
  • Date: 2011-05-01 20:12:51 UTC
  • Revision ID: james.westby@ubuntu.com-20110501201251-omjk4eyw5hmx0v2j
Tags: upstream-0.10
ImportĀ upstreamĀ versionĀ 0.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" -*- coding: us-ascii -*-
 
2
.if \n(.g .ds T< \\FC
 
3
.if \n(.g .ds T> \\F[\n[.fam]]
 
4
.de URL
 
5
\\$2 \(la\\$1\(ra\\$3
 
6
..
 
7
.if \n(.g .mso www.tmac
 
8
.TH mosquitto 8 "29 April 2011" "" ""
 
9
.SH NAME
 
10
mosquitto \- an mqtt broker
 
11
.SH SYNOPSIS
 
12
'nh
 
13
.fi
 
14
.ad l
 
15
\fBmosquitto\fR \kx
 
16
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
 
17
'in \n(.iu+\nxu
 
18
[\fB-c\fR \fIconfig file\fR] [\fB-d\fR | \fB--daemon\fR] [\fB-p\fR \fIport number\fR]
 
19
'in \n(.iu-\nxu
 
20
.ad b
 
21
'hy
 
22
.SH DESCRIPTION
 
23
\fBmosquitto\fR is a broker for the mqtt protocol version 3.1.
 
24
.PP
 
25
It is intended to be a drop in replacement for rsmb, but it's a little way off yet.
 
26
.SH OPTIONS
 
27
.TP 
 
28
\*(T<\fB\-c\fR\*(T>, \*(T<\fB\-\-config\-file\fR\*(T>
 
29
Load configuration from a file. If not given, the default values as described in \fBmosquitto.conf\fR(5) are used.
 
30
.TP 
 
31
\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-\-daemon\fR\*(T>
 
32
Run \fBmosquitto\fR in the background as a daemon. All other behaviour remains the same.
 
33
.TP 
 
34
\*(T<\fB\-p\fR\*(T>, \*(T<\fB\-\-port\fR\*(T>
 
35
Listen on the port specified instead of the default 1883. This acts in addition to the port setting in the config file. May be specified multiple times to open multiple sockets listening on different ports. This socket will be bound to all network interfaces.
 
36
.SH LIMITATIONS
 
37
\fBmosquitto\fR implements all of the mqtt protocol version 3.1, but there are some significant limitations compared to rsmb.
 
38
.TP 0.2i
 
39
\(bu
 
40
There is only basic bridge support.
 
41
.TP 0.2i
 
42
\(bu
 
43
There are fewer configuration options.
 
44
.TP 0.2i
 
45
\(bu
 
46
There is less logging information.
 
47
.TP 0.2i
 
48
\(bu
 
49
The $SYS hierarchy is smaller.
 
50
.TP 0.2i
 
51
\(bu
 
52
It isn't as well tested or documented...
 
53
.PP
 
54
It should be noted that all of the above limitations should have "currently" included in them. They will all be fixed at some point.
 
55
.SH "BROKER STATUS"
 
56
Clients can find information about the broker by subscribing to topics in the $SYS hierarchy as follows. Topics marked as static are only sent once per client on subscription. All other topics are updated every \*(T<\fBsys_interval\fR\*(T> seconds. If \*(T<\fBsys_interval\fR\*(T> is 0, then updates are not sent.
 
57
.TP 
 
58
\*(T<\fB$SYS/broker/bytes/received\fR\*(T>
 
59
The total number of bytes received since the broker started.
 
60
.TP 
 
61
\*(T<\fB$SYS/broker/bytes/sent\fR\*(T>
 
62
The total number of bytes sent since the broker started.
 
63
.TP 
 
64
\*(T<\fB$SYS/broker/changeset\fR\*(T>
 
65
The repository changeset (revision) associated with this build.
 
66
.TP 
 
67
\*(T<\fB$SYS/broker/clients/total\fR\*(T>
 
68
The total number of clients currently either connected to the broker or disconnected but with clean session not set.
 
69
.TP 
 
70
\*(T<\fB$SYS/broker/heap/current size\fR\*(T>
 
71
The current size of the heap memory in use by
 
72
mosquitto. Note that this topic may be unavailable
 
73
depending on compile time options.
 
74
.TP 
 
75
\*(T<\fB$SYS/broker/messages/stored\fR\*(T>
 
76
The number of messages currently held in the message store.
 
77
.TP 
 
78
\*(T<\fB$SYS/broker/messages/received\fR\*(T>
 
79
The total number of messages received since the broker started.
 
80
.TP 
 
81
\*(T<\fB$SYS/broker/messages/sent\fR\*(T>
 
82
The total number of messages sent since the broker started.
 
83
.TP 
 
84
\*(T<\fB$SYS/broker/timestamp\fR\*(T>
 
85
The timestamp at which this particular build of the broker was made. Static.
 
86
.TP 
 
87
\*(T<\fB$SYS/broker/uptime\fR\*(T>
 
88
The amount of time in seconds the broker has been online.
 
89
.TP 
 
90
\*(T<\fB$SYS/broker/version\fR\*(T>
 
91
The version of the broker. Static.
 
92
.SH "WILDCARD TOPIC SUBSCRIPTIONS"
 
93
In addition to allowing clients to subscribe to specific topics,
 
94
mosquitto also allows the use of two wildcards in subscriptions.
 
95
\*(T<\fB+\fR\*(T> is the wildcard used to match a single level of
 
96
hierarchy. For example, for a topic of "a/b/c/d", the following example
 
97
subscriptions will match:
 
98
.TP 0.2i
 
99
\(bu
 
100
a/b/c/d
 
101
.TP 0.2i
 
102
\(bu
 
103
+/b/c/d
 
104
.TP 0.2i
 
105
\(bu
 
106
a/+/c/d
 
107
.TP 0.2i
 
108
\(bu
 
109
a/+/+/d
 
110
.TP 0.2i
 
111
\(bu
 
112
+/+/+/+
 
113
.PP
 
114
The following subscriptions will not match:
 
115
.TP 0.2i
 
116
\(bu
 
117
a/b/c
 
118
.TP 0.2i
 
119
\(bu
 
120
b/+/c/d
 
121
.TP 0.2i
 
122
\(bu
 
123
+/+/+
 
124
.PP
 
125
The second wildcard is \*(T<\fB#\fR\*(T> and is used to match
 
126
all subsequent levels of hierarchy. With a topic of "a/b/c/d", the
 
127
following example subscriptions will match:
 
128
.TP 0.2i
 
129
\(bu
 
130
a/b/c/d
 
131
.TP 0.2i
 
132
\(bu
 
133
#
 
134
.TP 0.2i
 
135
\(bu
 
136
a/#
 
137
.TP 0.2i
 
138
\(bu
 
139
a/b/#
 
140
.TP 0.2i
 
141
\(bu
 
142
a/b/c/#
 
143
.TP 0.2i
 
144
\(bu
 
145
+/b/c/#
 
146
.PP
 
147
The $SYS hierarchy does not match a subscription of
 
148
"#". If you want to observe the entire $SYS hierarchy, subscribe to
 
149
$SYS/#.
 
150
.PP
 
151
Note that the wildcards must be only ever used on their own, so a
 
152
subscription of "a/b+/c" is not valid use of a wildcard. The
 
153
\*(T<\fB#\fR\*(T> wildcard must only ever be used as the final
 
154
character of a subscription.
 
155
.SH BRIDGES
 
156
Multiple brokers can be connected together with the bridging
 
157
functionality. This is useful where it is desirable to share
 
158
information between locations, but where not all of the information
 
159
needs to be shared. An example could be where a number of users are
 
160
running a broker to help record power usage and for a number of other
 
161
reasons. The power usage could be shared through bridging all of the
 
162
user brokers to a common broker, allowing the power usage of all
 
163
users to be collected and compared. The other information would remain
 
164
local to each
 
165
broker.
 
166
.PP
 
167
For information on configuring bridges, see
 
168
\fBmosquitto.conf\fR(5).
 
169
.SH SIGNALS
 
170
.TP 
 
171
SIGUSR1
 
172
Upon receiving the SIGUSR1 signal, mosquitto will write the persistence database to disk. This signal is only acted upon if persistence is enabled.
 
173
.SH FILES
 
174
.TP 
 
175
\*(T<\fI/etc/mosquitto.conf\fR\*(T>
 
176
Configuration file. See \fBmosquitto.conf\fR(5).
 
177
.TP 
 
178
\*(T<\fI/var/lib/mosquitto/mosquitto.db\fR\*(T>
 
179
Persistent message data storage location if persist enabled.
 
180
.TP 
 
181
\*(T<\fI/etc/hosts.allow\fR\*(T>, \*(T<\fI/etc/hosts.deny\fR\*(T>
 
182
Host access control via tcp-wrappers as described in \fBhosts_access\fR(5).
 
183
.SH BUGS
 
184
\fBmosquitto\fR bug information can be found at http://launchpad.net/mosquitto.
 
185
.SH "SEE ALSO"
 
186
\fBmosquitto.conf\fR(5)
 
187
\fBhosts_access\fR(5)
 
188
\fBmosquitto_pub\fR(1)
 
189
\fBmosquitto_sub\fR(1)
 
190
\fBlibmosquitto\fR(3)
 
191
.SH THANKS
 
192
Thanks to Andy Stanford-Clark for being one of the people who came up with MQTT in the first place and providing clarifications of the protocol.
 
193
.PP
 
194
Thanks also to everybody at the Ubuntu UK Podcast and Linux Outlaws for organising OggCamp, where Andy gave a talk that inspired mosquitto.
 
195
.SH AUTHOR
 
196
Roger Light <\*(T<roger@atchoo.org\*(T>>