1 .TH ejabberdctl 1M "18 March 2008" "Version 2.0.5" "ejabberdctl"
4 ejabberdctl \(em ejabberd Jabber/XMPP server control interface
8 \fBejabberdctl\fR \fI[--node node] [vhost server] command [options]\fP
12 \fBejabberd\fR is packaged as a SMF service on OpenSolaris, and should
13 be started and stopped using SMF. Its service name is:
15 svc:/network/xmpp:ejabberd
17 \fBejabberdctl\fR can be used to debug \fBejabberd\fR server, and
18 perform many other administrative tasks.
20 User should have Ejabberd Management profile to manage \fBejabberd\fR
21 service and to run \fBejabberdctl\fR command, otherwise there would be
22 cookie file access permission issue.
27 Specifies the erlang node on which command will be performed. Default
28 value is ejabberd@localhost. Node name has the following syntax:
32 host can either be a short hostname (usually it coincides with
33 \fI\(gahostname\(ga\fP) or a FQDN (see \fBerl\fR(1) manual page
34 and look for options \fI-name\fP and \fI-sname\fP for details).
36 If the node name does not contain symbol \fI@\fP, then a short hostname
37 (that is, \fI\(gahostname\(ga\fP) is appended by \fBerlang\fR
38 runtime system automatically.
42 Specifies the virtual host \fIserver\fP for which command will be
43 executed. There are only few commands that needs \fIvhost\fP argument.
48 Start an ejabberd node in background mode. This is the default method.
52 Start an ejabberd node in live(interactive) mode. An erlang shell is
53 attached to the started server, showing log messages and allowing to
54 execute interactive commands.
58 Attach an interactive Erlang shell to a running ejabberd node. This allows
59 to execute commands interactively on a running ejabberd server. To detach
60 it, press Ctrl+G, q, <Return>.
64 Stop ejabberd server and shut down the node.
68 Restart ejabberd server.
72 Get ejabberd server status.
76 Request ejabberd server to reopen its log file.
79 .BI register " user server password"
80 Register a \fIuser\fP with \fIpassword\fP for a virtual \fIserver\fP.
83 .BI unregister " user server"
84 Unregister \fIuser\fP from virtual \fIserver\fP.
88 Backup ejabberd user database to a \fIfile\fP.
92 Restore ejabberd user database from backup \fIfile\fP.
95 .BI install-fallback " file"
96 Install a database fallback from \fIfile\fP.
100 Dump ejabberd user database to a text \fIfile\fP.
104 Restore ejabberd user database from a text \fIfile\fP.
107 .BI import-file " file"
108 Import user data from jabberd 1.4 spool \fIfile\fP. For example, if
109 \fIfile\fP is \fI.../example.org/user.xml\fP then imported username
110 will be \fIuser\fP and it will be imported to virtual server
114 .BI import-dir " dir"
115 Import user data from jabberd 1.4 spool \fIdir\fP. Directory
116 name should be the name of virtual server to import users.
119 .BI delete-expired-messages
120 Delete expired offline messages from database.
123 .BI delete-old-messages n
124 Delete offline messages older than \fIn\fP days from database.
128 Show informatoin of Mnesia system.
131 .BI incoming-s2s-number
132 Print number of incoming s2s connections on the node
135 .BI outgoing-s2s-number
136 Print number of outgoing s2s connections on the node
139 .BI user-resources " user server"
140 List all connected resources of user \fIuser@server\fP.
143 .BI connected-users-number
144 Report number of established users' sessions.
148 List all established users' sessions.
151 The following commands are vhost specific:
155 List all registered users for specified virtual \fIserver\fP.
162 Config file for ejabberd. Default is /etc/ejabberd/ejabberd.cfg.
165 .BI --ctl-config file
166 Config file for ejabberdctl. Default is /etc/ejabberd/ejabberdctl.cfg.
170 Directory for log files. Default is /var/ejabberd/log.
174 Database spool dir. Default is /var/ejabberd/db/ejabberd.
178 \fBerl\fR(1), \fBmnesia\fR(3).
181 Ejabberd documentation is available at
182 \fIhttp://www.process-one.net/en/projects/ejabberd/\fP.
186 This manual page was adapted by Sergei Golovan <sgolovan@nes.ru> for
187 the \fBDebian\fP system (but may be used by others) from the
188 \fBejabberd\fP documentation written by Alexey Shchepin <alexey@sevcom.net>.
190 Permission is granted to copy, distribute and/or modify this document
191 under the terms of the GNU General Public License, Version 2 any
192 later version published by the Free Software Foundation.
194 The complete text of the GNU General Public License can be found
195 at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
197 The manual page was modified for ejabberd-2.0.5 on OpenSolaris.