2002-10-01 17:16:07 +00:00
. \" This manpage has been automatically generated by docbook2man
. \" from a DocBook document. This tool can be found at:
. \" <http://shell.ipoline.com/~elmert/comp/docbook2X/>
2001-02-22 17:28:24 +00:00
. \" Please send any bug reports, improvements, comments, patches,
. \" etc. to Steve Cheng <steve@ggi-project.org>.
2003-03-04 19:34:30 +00:00
.TH "SMBCONTROL" "1" "04 March 2003" "" ""
2001-02-22 17:28:24 +00:00
.SH NAME
2002-07-15 10:35:28 +00:00
smbcontrol \- send messages to smbd, nmbd or winbindd processes
2001-02-22 17:28:24 +00:00
.SH SYNOPSIS
2002-10-01 17:16:07 +00:00
\fB smbcontrol\fR [ \fB -i\fR ]
\fB smbcontrol\fR [ \fB destination\fR ] [ \fB message-type\fR ] [ \fB parameter\fR ]
2001-02-22 17:28:24 +00:00
.SH "DESCRIPTION"
.PP
2002-10-01 17:16:07 +00:00
This tool is part of the Samba suite.
2001-02-22 17:28:24 +00:00
.PP
\fB smbcontrol\fR is a very small program, which
2002-10-01 17:16:07 +00:00
sends messages to an smbd(8)
2002-07-15 10:35:28 +00:00
an nmbd(8)
2002-10-01 17:16:07 +00:00
or a winbindd(8)
2002-07-15 10:35:28 +00:00
daemon running on the system.
2001-02-22 17:28:24 +00:00
.SH "OPTIONS"
.TP
2001-02-23 22:15:08 +00:00
\fB -i\fR
2001-02-22 17:28:24 +00:00
Run 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.
.TP
\fB destination\fR
One of \fI nmbd\fR
\fI smbd\fR or a process ID.
The \fI smbd\fR destination causes the
message to "broadcast" to all smbd daemons.
The \fI nmbd\fR destination causes the
message to be sent to the nmbd daemon specified in the
\fI nmbd.pid\fR file.
If a single process ID is given, the message is sent
to only that process.
.TP
\fB message-type\fR
2001-12-06 07:37:58 +00:00
One of: close-share,
debug,
2001-02-22 17:28:24 +00:00
force-election, ping
2002-10-01 17:16:07 +00:00
, profile, debuglevel, profilelevel,
2002-08-17 14:15:33 +00:00
or printnotify.
2001-02-22 17:28:24 +00:00
2001-12-06 07:37:58 +00:00
The close-share message-type sends a
message to smbd which will then 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
2002-07-15 10:35:28 +00:00
share name for which client connections will be closed, or the
2001-12-06 07:37:58 +00:00
"*" character which will close all currently open shares.
2002-07-15 10:35:28 +00:00
This may be useful if you made changes to the access controls on the share.
2001-12-06 07:37:58 +00:00
This message can only be sent to smbd.
2001-02-22 17:28:24 +00:00
The debug message-type allows
the debug level to be set to the value specified by the
parameter. This can be sent to any of the destinations.
The force-election message-type can only be
sent to the nmbd destination. This message
causes the \fB nmbd\fR daemon to force a new browse
master election.
The ping message-type sends the
number of "ping" messages specified by the parameter and waits
2002-10-01 17:16:07 +00:00
for the same number of reply "pong" messages. This can be sent to
2001-02-22 17:28:24 +00:00
any of the destinations.
The profile message-type sends a
message to an smbd to change the profile settings 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
2002-07-15 10:35:28 +00:00
be sent to any smbd or nmbd destinations.
2001-02-22 17:28:24 +00:00
The debuglevel message-type sends
a "request debug level" message. The current debug level setting
2002-10-01 17:16:07 +00:00
is returned by a "debuglevel" message. This can be
2001-02-22 17:28:24 +00:00
sent to any of the destinations.
The profilelevel message-type sends
2002-10-01 17:16:07 +00:00
a "request profile level" message. The current profile level
setting is returned by a "profilelevel" message. This can be sent
2002-07-15 10:35:28 +00:00
to any smbd or nmbd destinations.
2001-02-22 17:28:24 +00:00
2002-08-17 14:15:33 +00:00
The printnotify message-type sends a
2001-02-22 17:28:24 +00:00
message to smbd which in turn sends a printer notify message to
2002-08-17 14:15:33 +00:00
any Windows NT clients connected to a printer. This message-type
takes the following arguments:
.RS
.TP
\fB queuepause printername\fR
Send a queue pause change notify
message to the printer specified.
.TP
\fB queueresume printername\fR
Send a queue resume change notify
message for the printer specified.
.TP
\fB jobpause printername unixjobid\fR
Send a job pause change notify
message for the printer and unix jobid
specified.
.TP
\fB jobresume printername unixjobid\fR
Send a job resume change notify
message for the printer and unix jobid
specified.
.TP
\fB jobdelete printername unixjobid\fR
Send a job delete change notify
message for the printer and unix jobid
specified.
.RE
Note that this message only sends notification that an
2002-10-01 17:16:07 +00:00
event has occured. It doesn't actually cause the
2002-08-17 14:15:33 +00:00
event to happen.
This message can only be sent to smbd.
2001-02-22 17:28:24 +00:00
.TP
\fB parameters\fR
any parameters required for the message-type
.SH "VERSION"
.PP
This man page is correct for version 2.2 of
the Samba suite.
.SH "SEE ALSO"
.PP
2002-10-01 17:16:07 +00:00
\fB nmbd(8)\fR
and \fB smbd(8)\fR
2001-02-22 17:28:24 +00:00
.SH "AUTHOR"
.PP
The 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.
.PP
The 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
ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
2002-10-01 17:16:07 +00:00
release by Jeremy Allison. The conversion to DocBook for
2001-02-22 17:28:24 +00:00
Samba 2.2 was done by Gerald Carter