1 <samba:parameter name="addport command"
4 advanced="1" developer="1"
5 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
7 <para>Samba 3.0.23 introduced support for adding printer ports
8 remotely using the Windows "Add Standard TCP/IP Port Wizard".
9 This option defines an external program to be executed when
10 smbd receives a request to add a new Port to the system.
11 The script is passed two parameters:</para>
14 <listitem><para><parameter moreinfo="none">port name</parameter></para></listitem>
15 <listitem><para><parameter moreinfo="none">device URI</parameter></para></listitem>
18 <para>The deviceURI is in the format of socket://<hostname>[:<portnumber>]
19 or lpd://<hostname>/<queuename>.</para>
22 <related>enum ports command</related>
24 <value type="default"></value>
25 <value type="example">/etc/samba/scripts/addport.sh</value>