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

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

Samba 3.6: updated vendor to latest version

File size: 8.3 KB
RevLine 
[860]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