source: vendor/3.6.23/docs/manpages/smbcontrol.1

Last change on this file was 860, checked in by Silvan Scherrer, 11 years ago

Samba 3.6: updated vendor to latest version

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