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

Last change on this file since 104 was 44, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25b

File size: 6.5 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "SMBCONTROL" 1 "" "" ""
21.SH "NAME"
22smbcontrol - send messages to smbd, nmbd or winbindd processes
23.SH "SYNOPSIS"
24.HP 1
25smbcontrol [-i] [-s]
26.HP 1
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 3n
44Print a summary of command line options.
45.RE
46.PP
47-s <configuration file>
48.RS 3n
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
50\fIsmb.conf\fR
51for more information. The default configuration file name is determined at compile time.
52.RE
53.PP
54-i
55.RS 3n
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 3n
61One of
62\fInmbd\fR,
63\fIsmbd\fR
64or a process ID.
65.sp
66The
67\fIsmbd\fR
68destination causes the message to "broadcast" to all smbd daemons.
69.sp
70The
71\fInmbd\fR
72destination causes the message to be sent to the nmbd daemon specified in the
73\fInmbd.pid\fR
74file.
75.sp
76If a single process ID is given, the message is sent to only that process.
77.RE
78.PP
79message-type
80.RS 3n
81Type of message to send. See the section
82\fBMESSAGE-TYPES\fR
83for details.
84.RE
85.PP
86parameters
87.RS 3n
88any parameters required for the message-type
89.RE
90.SH "MESSAGE-TYPES"
91.PP
92Available message types are:
93.PP
94close-share
95.RS 3n
96Order 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
97\fBsmbd\fR.
98.RE
99.PP
100debug
101.RS 3n
102Set debug level to the value specified by the parameter. This can be sent to any of the destinations.
103.RE
104.PP
105force-election
106.RS 3n
107This message causes the
108nmbd
109daemon to force a new browse master election.
110.RE
111.PP
112ping
113.RS 3n
114Send specified number of "ping" messages and wait for the same number of reply "pong" messages. This can be sent to any of the destinations.
115.RE
116.PP
117profile
118.RS 3n
119Change 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.
120.RE
121.PP
122debuglevel
123.RS 3n
124Request debuglevel of a certain daemon and write it to stdout. This can be sent to any of the destinations.
125.RE
126.PP
127profilelevel
128.RS 3n
129Request profilelevel of a certain daemon and write it to stdout. This can be sent to any smbd or nmbd destinations.
130.RE
131.PP
132printnotify
133.RS 3n
134Order smbd to send a printer notify message to any Windows NT clients connected to a printer. This message-type takes the following arguments:
135
136.RS 3n
137.PP
138queuepause printername
139.RS 3n
140Send a queue pause change notify message to the printer specified.
141.RE
142.PP
143queueresume printername
144.RS 3n
145Send a queue resume change notify message for the printer specified.
146.RE
147.PP
148jobpause printername unixjobid
149.RS 3n
150Send a job pause change notify message for the printer and unix jobid specified.
151.RE
152.PP
153jobresume printername unixjobid
154.RS 3n
155Send a job resume change notify message for the printer and unix jobid specified.
156.RE
157.PP
158jobdelete printername unixjobid
159.RS 3n
160Send a job delete change notify message for the printer and unix jobid specified.
161.RE
162.RE
163.IP "" 3n
164Note that this message only sends notification that an event has occured. It doesn't actually cause the event to happen.
165.sp
166This message can only be sent to
167\fBsmbd\fR.
168.RE
169.PP
170samsync
171.RS 3n
172Order smbd to synchronise sam database from PDC (being BDC). Can only be sent to
173\fBsmbd\fR.
174.sp
175.it 1 an-trap
176.nr an-no-space-flag 1
177.nr an-break-flag 1
178.br
179\fBNote\fR
180Not working at the moment
181.RE
182.PP
183samrepl
184.RS 3n
185Send sam replication message, with specified serial. Can only be sent to
186\fBsmbd\fR. Should not be used manually.
187.RE
188.PP
189dmalloc-mark
190.RS 3n
191Set a mark for dmalloc. Can be sent to both smbd and nmbd. Only available if samba is built with dmalloc support.
192.RE
193.PP
194dmalloc-log-changed
195.RS 3n
196Dump 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.
197.RE
198.PP
199shutdown
200.RS 3n
201Shut down specified daemon. Can be sent to both smbd and nmbd.
202.RE
203.PP
204pool-usage
205.RS 3n
206Print a human-readable description of all talloc(pool) memory usage by the specified daemon/process. Available for both smbd and nmbd.
207.RE
208.PP
209drvupgrade
210.RS 3n
211Force clients of printers using specified driver to update their local version of the driver. Can only be sent to smbd.
212.RE
213.PP
214reload-config
215.RS 3n
216Force daemon to reload smb.conf configuration file. Can be sent to
217\fBsmbd\fR,
218\fBnmbd\fR, or
219\fBwinbindd\fR.
220.RE
221.SH "VERSION"
222.PP
223This man page is correct for version 3.0 of the Samba suite.
224.SH "SEE ALSO"
225.PP
226\fBnmbd\fR(8)
227and
228\fBsmbd\fR(8).
229.SH "AUTHOR"
230.PP
231The 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.
232.PP
233The 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
234ftp://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.
235
Note: See TracBrowser for help on using the repository browser.