1SMBCONTROL(1)                                                    SMBCONTROL(1)
2
3
4

NAME

6       smbcontrol - send messages to smbd, nmbd or winbindd processes
7

SYNOPSIS

9       smbcontrol [-i] [-s]
10
11       smbcontrol [destination] [message-type] [parameter]
12

DESCRIPTION

14       This tool is part of the samba(7) suite.
15
16       smbcontrol  is a very small program, which sends messages to a smbd(8),
17       a nmbd(8), or a winbindd(8) daemon running on the system.
18

OPTIONS

20       -h|--help
21          Print a summary of command line options.
22
23       -s <configuration file>
24          The file specified contains the configuration  details  required  by
25          the  server.  The  information in this file includes server-specific
26          information such as what printcap file to use, as well  as  descrip‐
27          tions  of  all  the  services  that  the  server  is to provide. See
28          smb.conf for more information. The default configuration  file  name
29          is determined at compile time.
30
31       -i
32          Run  interactively. Individual commands of the form destination mes‐
33          sage-type parameters can be entered on STDIN. An empty command  line
34          or a "q" will quit the program.
35
36       destination
37          One of nmbd, smbd or a process ID.
38
39          The  smbd  destination causes the message to "broadcast" to all smbd
40          daemons.
41
42          The nmbd destination causes the message to be sent to the nmbd  dae‐
43          mon specified in the nmbd.pid file.
44
45          If  a  single  process ID is given, the message is sent to only that
46          process.
47
48       message-type
49          Type of message to send. See the section MESSAGE-TYPES for details.
50
51       parameters
52          any parameters required for the message-type
53

MESSAGE-TYPES

55       Available message types are:
56
57       close-share
58          Order smbd to close the client connections to the named share.  Note
59          that  this  doesn't  affect  client connections to any other shares.
60          This message-type takes an argument of  the  share  name  for  which
61          client  connections  will be closed, or the "*" character which will
62          close all currently open shares. This may  be  useful  if  you  made
63          changes  to  the access controls on the share. This message can only
64          be sent to smbd.
65
66       debug
67          Set debug level to the value specified by the parameter. This can be
68          sent to any of the destinations.
69
70       force-election
71          This  message  causes  the  nmbd daemon to force a new browse master
72          election.
73
74       ping
75          Send specified number of "ping" messages and wait for the same  num‐
76          ber  of reply "pong" messages. This can be sent to any of the desti‐
77          nations.
78
79       profile
80          Change profile settings of a daemon, based  on  the  parameter.  The
81          parameter  can be "on" to turn on profile stats collection, "off" to
82          turn off profile stats collection, "count" to enable only collection
83          of  count  stats  (time stats are disabled), and "flush" to zero the
84          current profile stats. This can be sent to any smbd or nmbd destina‐
85          tions.
86
87       debuglevel
88          Request  debuglevel of a certain daemon and write it to stdout. This
89          can be sent to any of the destinations.
90
91       profilelevel
92          Request profilelevel of a certain daemon and  write  it  to  stdout.
93          This can be sent to any smbd or nmbd destinations.
94
95       printnotify
96          Order  smbd  to  send  a  printer  notify  message to any Windows NT
97          clients connected to a printer. This message-type takes the  follow‐
98          ing arguments:
99
100
101             queuepause printername
102                Send a queue pause change notify message to the printer speci‐
103                fied.
104
105             queueresume printername
106                Send a queue resume change  notify  message  for  the  printer
107                specified.
108
109             jobpause printername unixjobid
110                Send  a  job  pause  change notify message for the printer and
111                unix jobid specified.
112
113             jobresume printername unixjobid
114                Send a job resume change notify message for  the  printer  and
115                unix jobid specified.
116
117             jobdelete printername unixjobid
118                Send  a  job  delete change notify message for the printer and
119                unix jobid specified.
120
121             Note that this message only sends notification that an event  has
122             occured. It doesn't actually cause the event to happen.
123
124             This message can only be sent to smbd.
125
126       samsync
127          Order  smbd  to  synchronise  sam database from PDC (being BDC). Can
128          only be sent to smbd.
129
130          Note
131          Not working at the moment
132
133       samrepl
134          Send sam replication message, with specified  serial.  Can  only  be
135          sent to smbd. Should not be used manually.
136
137       dmalloc-mark
138          Set  a  mark  for  dmalloc.  Can be sent to both smbd and nmbd. Only
139          available if samba is built with dmalloc support.
140
141       dmalloc-log-changed
142          Dump the pointers that have changed since the mark set  by  dmalloc-
143          mark.  Can be sent to both smbd and nmbd. Only available if samba is
144          built with dmalloc support.
145
146       shutdown
147          Shut down specified daemon. Can be sent to both smbd and nmbd.
148
149       pool-usage
150          Print a human-readable description of all talloc(pool) memory  usage
151          by the specified daemon/process. Available for both smbd and nmbd.
152
153       drvupgrade
154          Force  clients  of  printers  using specified driver to update their
155          local version of the driver. Can only be sent to smbd.
156
157       reload-config
158          Force daemon to reload smb.conf configuration file. Can be  sent  to
159          smbd, nmbd, or winbindd.
160

VERSION

162       This man page is correct for version 3.0 of the Samba suite.
163

SEE ALSO

165       nmbd(8) and smbd(8).
166

AUTHOR

168       The  original  Samba  software  and  related  utilities were created by
169       Andrew Tridgell. Samba is now developed by the Samba Team  as  an  Open
170       Source project similar to the way the Linux kernel is developed.
171
172       The  original  Samba  man pages were written by Karl Auer. The man page
173       sources were converted to YODL format (another excellent piece of  Open
174       Source  software,  available  at  ftp://ftp.icce.rug.nl/pub/unix/)  and
175       updated for the Samba 2.0 release by Jeremy Allison. The conversion  to
176       DocBook for Samba 2.2 was done by Gerald Carter. The conversion to Doc‐
177       Book XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
178
179
180
181
182                                                                 SMBCONTROL(1)
Impressum