1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="smbcontrol.1">
6 <refentrytitle>smbcontrol</refentrytitle>
7 <manvolnum>1</manvolnum>
12 <refname>smbcontrol</refname>
13 <refpurpose>send messages to smbd, nmbd or winbindd processes</refpurpose>
18 <command>smbcontrol</command>
24 <command>smbcontrol</command>
25 <arg>destination</arg>
26 <arg>message-type</arg>
32 <title>DESCRIPTION</title>
34 <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
35 <manvolnum>7</manvolnum></citerefentry> suite.</para>
37 <para><command>smbcontrol</command> is a very small program, which
38 sends messages to a <citerefentry><refentrytitle>smbd</refentrytitle>
39 <manvolnum>8</manvolnum></citerefentry>, a <citerefentry><refentrytitle>nmbd</refentrytitle>
40 <manvolnum>8</manvolnum></citerefentry>, or a <citerefentry><refentrytitle>winbindd</refentrytitle>
41 <manvolnum>8</manvolnum></citerefentry> daemon running on the system.</para>
46 <title>OPTIONS</title>
53 <listitem><para>Run interactively. Individual commands
54 of the form destination message-type parameters can be entered
55 on STDIN. An empty command line or a "q" will quit the
56 program.</para></listitem>
60 <term>destination</term>
61 <listitem><para>One of <parameter>nmbd</parameter>, <parameter>smbd</parameter> or a process ID.</para>
63 <para>The <parameter>smbd</parameter> destination causes the
64 message to "broadcast" to all smbd daemons.</para>
66 <para>The <parameter>nmbd</parameter> destination causes the
67 message to be sent to the nmbd daemon specified in the
68 <filename>nmbd.pid</filename> file.</para>
70 <para>If a single process ID is given, the message is sent
71 to only that process.</para></listitem>
76 <term>message-type</term>
77 <listitem><para>Type of message to send. See
78 the section <constant>MESSAGE-TYPES</constant> for details.
79 </para></listitem></varlistentry>
84 <term>parameters</term>
85 <listitem><para>any parameters required for the message-type</para>
93 <title>MESSAGE-TYPES</title>
95 <para>Available message types are:</para>
98 <varlistentry><term>close-share</term>
99 <listitem><para>Order smbd to close the client
100 connections to the named share. Note that this doesn't affect client
101 connections to any other shares. This message-type takes an argument of the
102 share name for which client connections will be closed, or the
103 "*" character which will close all currently open shares.
104 This may be useful if you made changes to the access controls on the share.
105 This message can only be sent to <constant>smbd</constant>.</para>
111 <listitem><para>Set debug level to the value specified by the
112 parameter. This can be sent to any of the destinations.</para>
117 <term>force-election</term>
118 <listitem><para>This message causes the <command>nmbd</command> daemon to
119 force a new browse master election. </para>
120 </listitem></varlistentry>
125 Send specified number of "ping" messages and
126 wait for the same number of reply "pong" messages. This can be sent to
127 any of the destinations.</para>
133 <listitem><para>Change profile settings of a daemon, based on the
134 parameter. The parameter can be "on" to turn on profile stats
135 collection, "off" to turn off profile stats collection, "count"
136 to enable only collection of count stats (time stats are
137 disabled), and "flush" to zero the current profile stats. This can
138 be sent to any smbd or nmbd destinations.</para>
139 </listitem></varlistentry>
142 <term>debuglevel</term>
144 Request debuglevel of a certain daemon and write it to stdout. This
145 can be sent to any of the destinations.</para>
150 <term>profilelevel</term>
152 Request profilelevel of a certain daemon and write it to stdout.
153 This can be sent to any smbd or nmbd destinations.</para>
158 <term>printnotify</term>
160 Order smbd to send a printer notify message to any Windows NT clients
161 connected to a printer. This message-type takes the following arguments:
167 <term>queuepause printername</term>
168 <listitem><para>Send a queue pause change notify
169 message to the printer specified.</para></listitem>
173 <term>queueresume printername</term>
174 <listitem><para>Send a queue resume change notify
175 message for the printer specified.</para></listitem>
179 <term>jobpause printername unixjobid</term>
180 <listitem><para>Send a job pause change notify
181 message for the printer and unix jobid
182 specified.</para></listitem>
186 <term>jobresume printername unixjobid</term>
187 <listitem><para>Send a job resume change notify
188 message for the printer and unix jobid
189 specified.</para></listitem>
193 <term>jobdelete printername unixjobid</term>
194 <listitem><para>Send a job delete change notify
195 message for the printer and unix jobid
196 specified.</para></listitem>
201 Note that this message only sends notification that an
202 event has occured. It doesn't actually cause the
206 <para>This message can only be sent to <constant>smbd</constant>. </para>
212 <listitem><para>Order smbd to synchronise sam database from PDC (being BDC). Can only be sent to <constant>smbd</constant>. </para>
213 <note><para>Not working at the moment</para></note>
219 <listitem><para>Send sam replication message, with specified serial. Can only be sent to <constant>smbd</constant>. Should not be used manually.</para></listitem>
223 <term>dmalloc-mark</term>
224 <listitem><para>Set a mark for dmalloc. Can be sent to both smbd and nmbd. Only available if samba is built with dmalloc support. </para></listitem>
228 <term>dmalloc-log-changed</term>
230 Dump the pointers that have changed since the mark set by dmalloc-mark.
231 Can be sent to both smbd and nmbd. Only available if samba is built with dmalloc support. </para></listitem>
235 <term>shutdown</term>
236 <listitem><para>Shut down specified daemon. Can be sent to both smbd and nmbd.</para></listitem>
240 <term>pool-usage</term>
241 <listitem><para>Print a human-readable description of all
242 talloc(pool) memory usage by the specified daemon/process. Available
243 for both smbd and nmbd.</para></listitem>
247 <term>drvupgrade</term>
248 <listitem><para>Force clients of printers using specified driver
249 to update their local version of the driver. Can only be
250 sent to smbd.</para></listitem>
254 <term>reload-config</term>
255 <listitem><para>Force daemon to reload smb.conf configuration file. Can be sent
256 to <constant>smbd</constant>, <constant>nmbd</constant>, or <constant>winbindd</constant>.
264 <title>VERSION</title>
266 <para>This man page is correct for version 3.0 of
267 the Samba suite.</para>
271 <title>SEE ALSO</title>
272 <para><citerefentry><refentrytitle>nmbd</refentrytitle>
273 <manvolnum>8</manvolnum></citerefentry> and <citerefentry><refentrytitle>smbd</refentrytitle>
274 <manvolnum>8</manvolnum></citerefentry>.</para>
278 <title>AUTHOR</title>
280 <para>The original Samba software and related utilities
281 were created by Andrew Tridgell. Samba is now developed
282 by the Samba Team as an Open Source project similar
283 to the way the Linux kernel is developed.</para>
285 <para>The original Samba man pages were written by Karl Auer.
286 The man page sources were converted to YODL format (another
287 excellent piece of Open Source software, available at <ulink url="ftp://ftp.icce.rug.nl/pub/unix/">
288 ftp://ftp.icce.rug.nl/pub/unix/</ulink>) and updated for the Samba 2.0
289 release by Jeremy Allison. The conversion to DocBook for
290 Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 for
291 Samba 3.0 was done by Alexander Bokovoy.</para>