source: vendor/current/docs/manpages/smbcontrol.1@ 746

Last change on this file since 746 was 746, checked in by Silvan Scherrer, 12 years ago

Samba Server: updated vendor to 3.6.9

File size: 8.1 KB
Line 
1'\" t
2.\" Title: smbcontrol
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 10/29/2012
6.\" Manual: User Commands
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "SMBCONTROL" "1" "10/29/2012" "Samba 3\&.6" "User Commands"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22smbcontrol \- send messages to smbd, nmbd or winbindd processes
23.SH "SYNOPSIS"
24.HP \w'\ 'u
25smbcontrol [\-i] [\-s]
26.HP \w'\ 'u
27smbcontrol [destination] [message\-type] [parameter]
28.SH "DESCRIPTION"
29.PP
30This tool is part of the
31\fBsamba\fR(7)
32suite\&.
33.PP
34smbcontrol
35is a very small program, which sends messages to a
36\fBsmbd\fR(8), a
37\fBnmbd\fR(8), or a
38\fBwinbindd\fR(8)
39daemon running on the system\&.
40.SH "OPTIONS"
41.PP
42\-h|\-\-help
43.RS 4
44Print a summary of command line options\&.
45.RE
46.PP
47\-s|\-\-configfile <configuration file>
48.RS 4
49The 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
50smb\&.conf
51for more information\&. The default configuration file name is determined at compile time\&.
52.RE
53.PP
54\-i
55.RS 4
56Run 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\&.
57.RE
58.PP
59destination
60.RS 4
61One of
62\fInmbd\fR,
63\fIsmbd\fR
64or a process ID\&.
65.sp
66The
67\fIall\fR
68destination causes the message to "broadcast" to all running daemons including nmbd and winbind\&. This is a change for Samba 3\&.3, prior to this the parameter smbd used to do this\&.
69.sp
70The
71\fIsmbd\fR
72destination causes the message to be sent to the smbd daemon specified in the
73smbd\&.pid
74file\&.
75.sp
76The
77\fInmbd\fR
78destination causes the message to be sent to the nmbd daemon specified in the
79nmbd\&.pid
80file\&.
81.sp
82The
83\fIwinbindd\fR
84destination causes the message to be sent to the winbind daemon specified in the
85winbindd\&.pid
86file\&.
87.sp
88If a single process ID is given, the message is sent to only that process\&.
89.RE
90.PP
91message\-type
92.RS 4
93Type of message to send\&. See the section
94\fBMESSAGE\-TYPES\fR
95for details\&.
96.RE
97.PP
98parameters
99.RS 4
100any parameters required for the message\-type
101.RE
102.SH "MESSAGE-TYPES"
103.PP
104Available message types are:
105.PP
106close\-share
107.RS 4
108Order 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
109\fBsmbd\fR\&.
110.RE
111.PP
112debug
113.RS 4
114Set debug level to the value specified by the parameter\&. This can be sent to any of the destinations\&. If this message is sent to either the smbd or winbindd daemons, the parent process will rebroadcast the message to all child processes changing the debug level in each one\&.
115.RE
116.PP
117force\-election
118.RS 4
119This message causes the
120nmbd
121daemon to force a new browse master election\&.
122.RE
123.PP
124ping
125.RS 4
126Send specified number of "ping" messages and wait for the same number of reply "pong" messages\&. This can be sent to any of the destinations\&.
127.RE
128.PP
129profile
130.RS 4
131Change 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\&.
132.RE
133.PP
134debuglevel
135.RS 4
136Request debuglevel of a certain daemon and write it to stdout\&. This can be sent to any of the destinations\&.
137.RE
138.PP
139profilelevel
140.RS 4
141Request profilelevel of a certain daemon and write it to stdout\&. This can be sent to any smbd or nmbd destinations\&.
142.RE
143.PP
144printnotify
145.RS 4
146Order smbd to send a printer notify message to any Windows NT clients connected to a printer\&. This message\-type takes the following arguments:
147.PP
148queuepause printername
149.RS 4
150Send a queue pause change notify message to the printer specified\&.
151.RE
152.PP
153queueresume printername
154.RS 4
155Send a queue resume change notify message for the printer specified\&.
156.RE
157.PP
158jobpause printername unixjobid
159.RS 4
160Send a job pause change notify message for the printer and unix jobid specified\&.
161.RE
162.PP
163jobresume printername unixjobid
164.RS 4
165Send a job resume change notify message for the printer and unix jobid specified\&.
166.RE
167.PP
168jobdelete printername unixjobid
169.RS 4
170Send a job delete change notify message for the printer and unix jobid specified\&.
171.RE
172.sp
173Note that this message only sends notification that an event has occurred\&. It doesn\'t actually cause the event to happen\&.
174.sp
175This message can only be sent to
176\fBsmbd\fR\&.
177.RE
178.PP
179samsync
180.RS 4
181Order smbd to synchronise sam database from PDC (being BDC)\&. Can only be sent to
182\fBsmbd\fR\&.
183.if n \{\
184.sp
185.\}
186.RS 4
187.it 1 an-trap
188.nr an-no-space-flag 1
189.nr an-break-flag 1
190.br
191.ps +1
192\fBNote\fR
193.ps -1
194.br
195Not working at the moment
196.sp .5v
197.RE
198.RE
199.PP
200samrepl
201.RS 4
202Send sam replication message, with specified serial\&. Can only be sent to
203\fBsmbd\fR\&. Should not be used manually\&.
204.RE
205.PP
206dmalloc\-mark
207.RS 4
208Set a mark for dmalloc\&. Can be sent to both smbd and nmbd\&. Only available if samba is built with dmalloc support\&.
209.RE
210.PP
211dmalloc\-log\-changed
212.RS 4
213Dump 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\&.
214.RE
215.PP
216shutdown
217.RS 4
218Shut down specified daemon\&. Can be sent to both smbd and nmbd\&.
219.RE
220.PP
221pool\-usage
222.RS 4
223Print a human\-readable description of all talloc(pool) memory usage by the specified daemon/process\&. Available for both smbd and nmbd\&.
224.RE
225.PP
226drvupgrade
227.RS 4
228Force clients of printers using specified driver to update their local version of the driver\&. Can only be sent to smbd\&.
229.RE
230.PP
231reload\-config
232.RS 4
233Force daemon to reload smb\&.conf configuration file\&. Can be sent to
234\fBsmbd\fR,
235\fBnmbd\fR, or
236\fBwinbindd\fR\&.
237.RE
238.PP
239idmap
240.RS 4
241Notify about changes of id mapping\&. Can be sent to
242\fBsmbd\fR
243or (not implemented yet)
244\fBwinbindd\fR\&.
245.PP
246flush [uid|gid]
247.RS 4
248Flush caches for sid <\-> gid and/or sid <\-> uid mapping\&.
249.RE
250.PP
251delete <ID>
252.RS 4
253Remove a mapping from cache\&. The mapping is given by <ID> which may either be a sid: S\-x\-\&.\&.\&., a gid: "GID number" or a uid: "UID number"\&.
254.RE
255.PP
256kill <ID>
257.RS 4
258Remove a mapping from cache\&. Terminate
259\fBsmbd\fR
260if the id is currently in use\&.
261.RE
262.RE
263.SH "VERSION"
264.PP
265This man page is correct for version 3 of the Samba suite\&.
266.SH "SEE ALSO"
267.PP
268\fBnmbd\fR(8)
269and
270\fBsmbd\fR(8)\&.
271.SH "AUTHOR"
272.PP
273The 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\&.
274.PP
275The 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
276ftp://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.