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

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 7.8 KB
Line 
1'\" t
2.\" Title: smbcontrol
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 10/25/2016
6.\" Manual: User Commands
7.\" Source: Samba 4.4
8.\" Language: English
9.\"
10.TH "SMBCONTROL" "1" "10/25/2016" "Samba 4\&.4" "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 [\-s] [\-t|\-\-timeout]
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\-t|\-\-timeout
52.RS 4
53Set timeout to seconds\&.
54.RE
55.PP
56destination
57.RS 4
58One of
59\fInmbd\fR,
60\fIsmbd\fR,
61\fIwinbindd\fR
62or a process ID\&.
63.sp
64The
65\fIall\fR
66destination 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\&.
67.sp
68The
69\fIsmbd\fR
70destination causes the message to be sent to the smbd daemon specified in the
71smbd\&.pid
72file\&.
73.sp
74The
75\fInmbd\fR
76destination causes the message to be sent to the nmbd daemon specified in the
77nmbd\&.pid
78file\&.
79.sp
80The
81\fIwinbindd\fR
82destination causes the message to be sent to the winbind daemon specified in the
83winbindd\&.pid
84file\&.
85.sp
86If a single process ID is given, the message is sent to only that process\&.
87.RE
88.PP
89message\-type
90.RS 4
91Type of message to send\&. See the section
92\fBMESSAGE\-TYPES\fR
93for details\&.
94.RE
95.PP
96parameters
97.RS 4
98any parameters required for the message\-type
99.RE
100.SH "MESSAGE-TYPES"
101.PP
102Available message types are:
103.PP
104close\-share
105.RS 4
106Order 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
107\fBsmbd\fR\&.
108.RE
109.PP
110debug
111.RS 4
112Set 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\&.
113.RE
114.PP
115kill\-client\-ip
116.RS 4
117Order smbd to close the client connections from a given IP address\&. This message\-type takes an argument of the IP address from which client connections will be closed\&. This message can only be sent to
118\fBsmbd\fR\&.
119.RE
120.PP
121force\-election
122.RS 4
123This message causes the
124nmbd
125daemon to force a new browse master election\&.
126.RE
127.PP
128ping
129.RS 4
130Send specified number of "ping" messages and wait for the same number of reply "pong" messages\&. This can be sent to any of the destinations\&.
131.RE
132.PP
133profile
134.RS 4
135Change 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\&.
136.RE
137.PP
138debuglevel
139.RS 4
140Request debuglevel of a certain daemon and write it to stdout\&. This can be sent to any of the destinations\&.
141.RE
142.PP
143profilelevel
144.RS 4
145Request profilelevel of a certain daemon and write it to stdout\&. This can be sent to any smbd or nmbd destinations\&.
146.RE
147.PP
148printnotify
149.RS 4
150Order smbd to send a printer notify message to any Windows NT clients connected to a printer\&. This message\-type takes the following arguments:
151.PP
152queuepause printername
153.RS 4
154Send a queue pause change notify message to the printer specified\&.
155.RE
156.PP
157queueresume printername
158.RS 4
159Send a queue resume change notify message for the printer specified\&.
160.RE
161.PP
162jobpause printername unixjobid
163.RS 4
164Send a job pause change notify message for the printer and unix jobid specified\&.
165.RE
166.PP
167jobresume printername unixjobid
168.RS 4
169Send a job resume change notify message for the printer and unix jobid specified\&.
170.RE
171.PP
172jobdelete printername unixjobid
173.RS 4
174Send a job delete change notify message for the printer and unix jobid specified\&.
175.RE
176.sp
177Note that this message only sends notification that an event has occurred\&. It doesn\*(Aqt actually cause the event to happen\&.
178.sp
179This message can only be sent to
180\fBsmbd\fR\&.
181.RE
182.PP
183dmalloc\-mark
184.RS 4
185Set a mark for dmalloc\&. Can be sent to both smbd and nmbd\&. Only available if samba is built with dmalloc support\&.
186.RE
187.PP
188dmalloc\-log\-changed
189.RS 4
190Dump 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\&.
191.RE
192.PP
193shutdown
194.RS 4
195Shut down specified daemon\&. Can be sent to both smbd and nmbd\&.
196.RE
197.PP
198pool\-usage
199.RS 4
200Print a human\-readable description of all talloc(pool) memory usage by the specified daemon/process\&. Available for both smbd and nmbd\&.
201.RE
202.PP
203drvupgrade
204.RS 4
205Force clients of printers using specified driver to update their local version of the driver\&. Can only be sent to smbd\&.
206.RE
207.PP
208reload\-config
209.RS 4
210Force daemon to reload smb\&.conf configuration file\&. Can be sent to
211\fBsmbd\fR,
212\fBnmbd\fR, or
213\fBwinbindd\fR\&.
214.RE
215.PP
216reload\-printers
217.RS 4
218Force smbd to reload printers\&. Can only be sent to
219\fBsmbd\fR\&.
220.RE
221.PP
222idmap
223.RS 4
224Notify about changes of id mapping\&. Can be sent to
225\fBsmbd\fR
226or (not implemented yet)
227\fBwinbindd\fR\&.
228.PP
229flush [uid|gid]
230.RS 4
231Flush caches for sid <\-> gid and/or sid <\-> uid mapping\&.
232.RE
233.PP
234delete <ID>
235.RS 4
236Remove 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"\&.
237.RE
238.PP
239kill <ID>
240.RS 4
241Remove a mapping from cache\&. Terminate
242\fBsmbd\fR
243if the id is currently in use\&.
244.RE
245.RE
246.PP
247num\-children
248.RS 4
249Query the number of smbd child processes\&. This message can only be sent to
250\fBsmbd\fR\&.
251.RE
252.SH "VERSION"
253.PP
254This man page is correct for version 3 of the Samba suite\&.
255.SH "SEE ALSO"
256.PP
257\fBnmbd\fR(8)
258and
259\fBsmbd\fR(8)\&.
260.SH "AUTHOR"
261.PP
262The 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\&.
263.PP
264The 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
265ftp://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.