source: branches/samba-3.0/docs/manpages/smbcontrol.1

Last change on this file was 336, checked in by Herwig Bauernfeind, 16 years ago

Update 3.0 to 3.0.37 (unsupported security update)

File size: 10.4 KB
Line 
1.\" Title: smbcontrol
2.\" Author: [see the "AUTHOR" section]
3.\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
4.\" Date: 09/30/2009
5.\" Manual: User Commands
6.\" Source: Samba 3.0
7.\" Language: English
8.\"
9.TH "SMBCONTROL" "1" "09/30/2009" "Samba 3\&.0" "User Commands"
10.\" -----------------------------------------------------------------
11.\" * (re)Define some macros
12.\" -----------------------------------------------------------------
13.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14.\" toupper - uppercase a string (locale-aware)
15.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16.de toupper
17.tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
18\\$*
19.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
20..
21.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22.\" SH-xref - format a cross-reference to an SH section
23.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24.de SH-xref
25.ie n \{\
26.\}
27.toupper \\$*
28.el \{\
29\\$*
30.\}
31..
32.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33.\" SH - level-one heading that works better for non-TTY output
34.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35.de1 SH
36.\" put an extra blank line of space above the head in non-TTY output
37.if t \{\
38.sp 1
39.\}
40.sp \\n[PD]u
41.nr an-level 1
42.set-an-margin
43.nr an-prevailing-indent \\n[IN]
44.fi
45.in \\n[an-margin]u
46.ti 0
47.HTML-TAG ".NH \\n[an-level]"
48.it 1 an-trap
49.nr an-no-space-flag 1
50.nr an-break-flag 1
51\." make the size of the head bigger
52.ps +3
53.ft B
54.ne (2v + 1u)
55.ie n \{\
56.\" if n (TTY output), use uppercase
57.toupper \\$*
58.\}
59.el \{\
60.nr an-break-flag 0
61.\" if not n (not TTY), use normal case (not uppercase)
62\\$1
63.in \\n[an-margin]u
64.ti 0
65.\" if not n (not TTY), put a border/line under subheading
66.sp -.6
67\l'\n(.lu'
68.\}
69..
70.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71.\" SS - level-two heading that works better for non-TTY output
72.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73.de1 SS
74.sp \\n[PD]u
75.nr an-level 1
76.set-an-margin
77.nr an-prevailing-indent \\n[IN]
78.fi
79.in \\n[IN]u
80.ti \\n[SN]u
81.it 1 an-trap
82.nr an-no-space-flag 1
83.nr an-break-flag 1
84.ps \\n[PS-SS]u
85\." make the size of the head bigger
86.ps +2
87.ft B
88.ne (2v + 1u)
89.if \\n[.$] \&\\$*
90..
91.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92.\" BB/BE - put background/screen (filled box) around block of text
93.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
94.de BB
95.if t \{\
96.sp -.5
97.br
98.in +2n
99.ll -2n
100.gcolor red
101.di BX
102.\}
103..
104.de EB
105.if t \{\
106.if "\\$2"adjust-for-leading-newline" \{\
107.sp -1
108.\}
109.br
110.di
111.in
112.ll
113.gcolor
114.nr BW \\n(.lu-\\n(.i
115.nr BH \\n(dn+.5v
116.ne \\n(BHu+.5v
117.ie "\\$2"adjust-for-leading-newline" \{\
118\M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
119.\}
120.el \{\
121\M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
122.\}
123.in 0
124.sp -.5v
125.nf
126.BX
127.in
128.sp .5v
129.fi
130.\}
131..
132.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133.\" BM/EM - put colored marker in margin next to block of text
134.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135.de BM
136.if t \{\
137.br
138.ll -2n
139.gcolor red
140.di BX
141.\}
142..
143.de EM
144.if t \{\
145.br
146.di
147.ll
148.gcolor
149.nr BH \\n(dn
150.ne \\n(BHu
151\M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
152.in 0
153.nf
154.BX
155.in
156.fi
157.\}
158..
159.\" -----------------------------------------------------------------
160.\" * set default formatting
161.\" -----------------------------------------------------------------
162.\" disable hyphenation
163.nh
164.\" disable justification (adjust text to left margin only)
165.ad l
166.\" -----------------------------------------------------------------
167.\" * MAIN CONTENT STARTS HERE *
168.\" -----------------------------------------------------------------
169.SH "Name"
170smbcontrol \- send messages to smbd, nmbd or winbindd processes
171.SH "Synopsis"
172.fam C
173.HP \w'\ 'u
174\FCsmbcontrol\F[] [\-i] [\-s]
175.fam
176.fam C
177.HP \w'\ 'u
178\FCsmbcontrol\F[] [destination] [message\-type] [parameter]
179.fam
180.SH "DESCRIPTION"
181.PP
182This tool is part of the
183\fBsamba\fR(7)
184suite\&.
185.PP
186\FCsmbcontrol\F[]
187is a very small program, which sends messages to a
188\fBsmbd\fR(8), a
189\fBnmbd\fR(8), or a
190\fBwinbindd\fR(8)
191daemon running on the system\&.
192.SH "OPTIONS"
193.PP
194\-h|\-\-help
195.RS 4
196Print a summary of command line options\&.
197.RE
198.PP
199\-s <configuration file>
200.RS 4
201The file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See
202\FCsmb\&.conf\F[]
203for more information\&. The default configuration file name is determined at compile time\&.
204.RE
205.PP
206\-i
207.RS 4
208Run interactively\&. Individual commands of the form destination message\-type parameters can be entered on STDIN\&. An empty command line or a "q" will quit the program\&.
209.RE
210.PP
211destination
212.RS 4
213One of
214\fInmbd\fR,
215\fIsmbd\fR
216or a process ID\&.
217.sp
218The
219\fIsmbd\fR
220destination causes the message to "broadcast" to all smbd daemons\&.
221.sp
222The
223\fInmbd\fR
224destination causes the message to be sent to the nmbd daemon specified in the
225\FCnmbd\&.pid\F[]
226file\&.
227.sp
228If a single process ID is given, the message is sent to only that process\&.
229.RE
230.PP
231message\-type
232.RS 4
233Type of message to send\&. See the section
234\fBMESSAGE\-TYPES\fR
235for details\&.
236.RE
237.PP
238parameters
239.RS 4
240any parameters required for the message\-type
241.RE
242.SH "MESSAGE-TYPES"
243.PP
244Available message types are:
245.PP
246close\-share
247.RS 4
248Order smbd to close the client connections to the named share\&. Note that this doesn\'t affect client connections to any other shares\&. This message\-type takes an argument of the share name for which client connections will be closed, or the "*" character which will close all currently open shares\&. This may be useful if you made changes to the access controls on the share\&. This message can only be sent to
249\fBsmbd\fR\&.
250.RE
251.PP
252debug
253.RS 4
254Set debug level to the value specified by the parameter\&. This can be sent to any of the destinations\&.
255.RE
256.PP
257force\-election
258.RS 4
259This message causes the
260\FCnmbd\F[]
261daemon to force a new browse master election\&.
262.RE
263.PP
264ping
265.RS 4
266Send specified number of "ping" messages and wait for the same number of reply "pong" messages\&. This can be sent to any of the destinations\&.
267.RE
268.PP
269profile
270.RS 4
271Change profile settings of a daemon, based on the parameter\&. The parameter can be "on" to turn on profile stats collection, "off" to turn off profile stats collection, "count" to enable only collection of count stats (time stats are disabled), and "flush" to zero the current profile stats\&. This can be sent to any smbd or nmbd destinations\&.
272.RE
273.PP
274debuglevel
275.RS 4
276Request debuglevel of a certain daemon and write it to stdout\&. This can be sent to any of the destinations\&.
277.RE
278.PP
279profilelevel
280.RS 4
281Request profilelevel of a certain daemon and write it to stdout\&. This can be sent to any smbd or nmbd destinations\&.
282.RE
283.PP
284printnotify
285.RS 4
286Order smbd to send a printer notify message to any Windows NT clients connected to a printer\&. This message\-type takes the following arguments:
287.PP
288queuepause printername
289.RS 4
290Send a queue pause change notify message to the printer specified\&.
291.RE
292.PP
293queueresume printername
294.RS 4
295Send a queue resume change notify message for the printer specified\&.
296.RE
297.PP
298jobpause printername unixjobid
299.RS 4
300Send a job pause change notify message for the printer and unix jobid specified\&.
301.RE
302.PP
303jobresume printername unixjobid
304.RS 4
305Send a job resume change notify message for the printer and unix jobid specified\&.
306.RE
307.PP
308jobdelete printername unixjobid
309.RS 4
310Send a job delete change notify message for the printer and unix jobid specified\&.
311.RE
312.sp
313Note that this message only sends notification that an event has occured\&. It doesn\'t actually cause the event to happen\&.
314.sp
315This message can only be sent to
316\fBsmbd\fR\&.
317.RE
318.PP
319samsync
320.RS 4
321Order smbd to synchronise sam database from PDC (being BDC)\&. Can only be sent to
322\fBsmbd\fR\&.
323.if n \{\
324.sp
325.\}
326.RS 4
327.BM yellow
328.it 1 an-trap
329.nr an-no-space-flag 1
330.nr an-break-flag 1
331.br
332.ps +1
333\fBNote\fR
334.ps -1
335.br
336Not working at the moment
337.sp .5v
338.EM yellow
339.RE
340.RE
341.PP
342samrepl
343.RS 4
344Send sam replication message, with specified serial\&. Can only be sent to
345\fBsmbd\fR\&. Should not be used manually\&.
346.RE
347.PP
348dmalloc\-mark
349.RS 4
350Set a mark for dmalloc\&. Can be sent to both smbd and nmbd\&. Only available if samba is built with dmalloc support\&.
351.RE
352.PP
353dmalloc\-log\-changed
354.RS 4
355Dump the pointers that have changed since the mark set by dmalloc\-mark\&. Can be sent to both smbd and nmbd\&. Only available if samba is built with dmalloc support\&.
356.RE
357.PP
358shutdown
359.RS 4
360Shut down specified daemon\&. Can be sent to both smbd and nmbd\&.
361.RE
362.PP
363pool\-usage
364.RS 4
365Print a human\-readable description of all talloc(pool) memory usage by the specified daemon/process\&. Available for both smbd and nmbd\&.
366.RE
367.PP
368drvupgrade
369.RS 4
370Force clients of printers using specified driver to update their local version of the driver\&. Can only be sent to smbd\&.
371.RE
372.PP
373reload\-config
374.RS 4
375Force daemon to reload smb\&.conf configuration file\&. Can be sent to
376\fBsmbd\fR,
377\fBnmbd\fR, or
378\fBwinbindd\fR\&.
379.RE
380.SH "VERSION"
381.PP
382This man page is correct for version 3\&.0 of the Samba suite\&.
383.SH "SEE ALSO"
384.PP
385\fBnmbd\fR(8)
386and
387\fBsmbd\fR(8)\&.
388.SH "AUTHOR"
389.PP
390The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
391.PP
392The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
393ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
Note: See TracBrowser for help on using the repository browser.