mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
docs-xml: Update smbclient manpage for new cmdline opition parser
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
7b70a72b15
commit
74b2a52eeb
@ -20,57 +20,94 @@
|
||||
<refsynopsisdiv>
|
||||
<cmdsynopsis>
|
||||
<command>smbclient</command>
|
||||
<arg choice="opt">-b <buffer size></arg>
|
||||
<arg choice="opt">-d debuglevel</arg>
|
||||
<arg choice="opt">-e</arg>
|
||||
<arg choice="opt">-L <netbios name></arg>
|
||||
<arg choice="opt">-U username</arg>
|
||||
<arg choice="opt">-I destinationIP</arg>
|
||||
<arg choice="opt">-M <netbios name></arg>
|
||||
<arg choice="opt">-m maxprotocol</arg>
|
||||
<arg choice="opt">-A authfile</arg>
|
||||
<arg choice="opt">-N</arg>
|
||||
<arg choice="opt">-C</arg>
|
||||
<arg choice="opt">-g</arg>
|
||||
<arg choice="opt">-i scope</arg>
|
||||
<arg choice="opt">-O <socket options></arg>
|
||||
<arg choice="opt">-p port</arg>
|
||||
<arg choice="opt">-R <name resolve order></arg>
|
||||
<arg choice="opt">-s <smb config file></arg>
|
||||
<arg choice="opt">-t <per-operation timeout in seconds></arg>
|
||||
<arg choice="opt">-k</arg>
|
||||
<arg choice="opt">-P</arg>
|
||||
<arg choice="opt">-c <command></arg>
|
||||
<arg choice="opt">-M|--message=HOST</arg>
|
||||
<arg choice="opt">-I|--ip-address=IP</arg>
|
||||
<arg choice="opt">-E|--stderr</arg>
|
||||
<arg choice="opt">-L|--list=HOST</arg>
|
||||
<arg choice="opt">-T|--tar=<c|x>IXFvgbNan</arg>
|
||||
<arg choice="opt">-D|--directory=DIR</arg>
|
||||
<arg choice="opt">-b|--send-buffer=BYTES</arg>
|
||||
<arg choice="opt">-t|--timeout=SECONDS</arg>
|
||||
<arg choice="opt">-p|--port=PORT</arg>
|
||||
<arg choice="opt">-g|--grepable</arg>
|
||||
<arg choice="opt">-q|--quiet</arg>
|
||||
<arg choice="opt">-B|--browse</arg>
|
||||
<arg choice="opt">-?|--help</arg>
|
||||
<arg choice="opt">--usage</arg>
|
||||
<arg choice="opt">-d|--debuglevel=DEBUGLEVEL</arg>
|
||||
<arg choice="opt">--debug-stdout</arg>
|
||||
<arg choice="opt">-s|--configfile=CONFIGFILE</arg>
|
||||
<arg choice="opt">--option=name=value</arg>
|
||||
<arg choice="opt">-l|--log-basename=LOGFILEBASE</arg>
|
||||
<arg choice="opt">--leak-report</arg>
|
||||
<arg choice="opt">--leak-report-full</arg>
|
||||
<arg choice="opt">-R|--name-resolve=NAME-RESOLVE-ORDER</arg>
|
||||
<arg choice="opt">-O|--socket-options=SOCKETOPTIONS</arg>
|
||||
<arg choice="opt">-m|--maxprotocol=MAXPROTOCOL</arg>
|
||||
<arg choice="opt">-n|--netbiosname=NETBIOSNAME</arg>
|
||||
<arg choice="opt">--netbios-scope=SCOPE</arg>
|
||||
<arg choice="opt">-W|--workgroup=WORKGROUP</arg>
|
||||
<arg choice="opt">--realm=REALM</arg>
|
||||
<arg choice="opt">-U|--user=[DOMAIN/]USERNAME%[PASSWORD]</arg>
|
||||
<arg choice="opt">-N|--no-pass</arg>
|
||||
<arg choice="opt">--password=STRING</arg>
|
||||
<arg choice="opt">--pw-nt-hash</arg>
|
||||
<arg choice="opt">-A|--authentication-file=FILE</arg>
|
||||
<arg choice="opt">-P|--machine-pass</arg>
|
||||
<arg choice="opt">--simple-bind-dn=DN</arg>
|
||||
<arg choice="opt">--use-kerberos=desired|required|off</arg>
|
||||
<arg choice="opt">--use-krb5-ccache=CCACHE</arg>
|
||||
<arg choice="opt">--use-winbind-ccache</arg>
|
||||
<arg choice="opt">--client-protection=sign|encrypt|off</arg>
|
||||
<arg choice="opt">-V|--version</arg>
|
||||
<arg choice="opt">-c|--command=STRING</arg>
|
||||
</cmdsynopsis>
|
||||
|
||||
<cmdsynopsis>
|
||||
<command>smbclient</command>
|
||||
<arg choice="req">servicename</arg>
|
||||
<arg choice="opt">password</arg>
|
||||
<arg choice="opt">-b <buffer size></arg>
|
||||
<arg choice="opt">-d debuglevel</arg>
|
||||
<arg choice="opt">-e</arg>
|
||||
<arg choice="opt">-D Directory</arg>
|
||||
<arg choice="opt">-U username</arg>
|
||||
<arg choice="opt">-W workgroup</arg>
|
||||
<arg choice="opt">-M <netbios name></arg>
|
||||
<arg choice="opt">-m maxprotocol</arg>
|
||||
<arg choice="opt">-A authfile</arg>
|
||||
<arg choice="opt">-N</arg>
|
||||
<arg choice="opt">-C</arg>
|
||||
<arg choice="opt">-g</arg>
|
||||
<arg choice="opt">-l log-basename</arg>
|
||||
<arg choice="opt">-I destinationIP</arg>
|
||||
<arg choice="opt">-E</arg>
|
||||
<arg choice="opt">-c <command string></arg>
|
||||
<arg choice="opt">-i scope</arg>
|
||||
<arg choice="opt">-O <socket options></arg>
|
||||
<arg choice="opt">-p port</arg>
|
||||
<arg choice="opt">-R <name resolve order></arg>
|
||||
<arg choice="opt">-s <smb config file></arg>
|
||||
<arg choice="opt">-t <per-operation timeout in seconds></arg>
|
||||
<arg choice="opt">-T<c|x>IXFvgbNan</arg>
|
||||
<arg choice="opt">-k</arg>
|
||||
<arg choice="opt">-?|--help</arg>
|
||||
<arg choice="opt">--usage</arg>
|
||||
<arg choice="opt">-M|--message=HOST</arg>
|
||||
<arg choice="opt">-I|--ip-address=IP</arg>
|
||||
<arg choice="opt">-E|--stderr</arg>
|
||||
<arg choice="opt">-L|--list=HOST</arg>
|
||||
<arg choice="opt">-T|--tar=<c|x>IXFvgbNan</arg>
|
||||
<arg choice="opt">-D|--directory=DIR</arg>
|
||||
<arg choice="opt">-b|--send-buffer=BYTES</arg>
|
||||
<arg choice="opt">-t|--timeout=SECONDS</arg>
|
||||
<arg choice="opt">-p|--port=PORT</arg>
|
||||
<arg choice="opt">-g|--grepable</arg>
|
||||
<arg choice="opt">-q|--quiet</arg>
|
||||
<arg choice="opt">-B|--browse</arg>
|
||||
<arg choice="opt">-d|--debuglevel=DEBUGLEVEL</arg>
|
||||
<arg choice="opt">--debug-stdout</arg>
|
||||
<arg choice="opt">-s|--configfile=CONFIGFILE</arg>
|
||||
<arg choice="opt">--option=name=value</arg>
|
||||
<arg choice="opt">-l|--log-basename=LOGFILEBASE</arg>
|
||||
<arg choice="opt">--leak-report</arg>
|
||||
<arg choice="opt">--leak-report-full</arg>
|
||||
<arg choice="opt">-R|--name-resolve=NAME-RESOLVE-ORDER</arg>
|
||||
<arg choice="opt">-O|--socket-options=SOCKETOPTIONS</arg>
|
||||
<arg choice="opt">-n|--netbiosname=NETBIOSNAME</arg>
|
||||
<arg choice="opt">-W|--workgroup=WORKGROUP</arg>
|
||||
<arg choice="opt">--realm=REALM</arg>
|
||||
<arg choice="opt">--netbios-scope=SCOPE</arg>
|
||||
<arg choice="opt">-m|--maxprotocol=MAXPROTOCOL</arg>
|
||||
<arg choice="opt">-U|--user=[DOMAIN/]USERNAME%[PASSWORD]</arg>
|
||||
<arg choice="opt">-N|--no-pass</arg>
|
||||
<arg choice="opt">--password=STRING</arg>
|
||||
<arg choice="opt">--pw-nt-hash</arg>
|
||||
<arg choice="opt">-A|--authentication-file=FILE</arg>
|
||||
<arg choice="opt">-P|--machine-pass</arg>
|
||||
<arg choice="opt">--simple-bind-dn=DN</arg>
|
||||
<arg choice="opt">--use-kerberos=desired|required|off</arg>
|
||||
<arg choice="opt">--use-krb5-ccache=CCACHE</arg>
|
||||
<arg choice="opt">--use-winbind-ccache</arg>
|
||||
<arg choice="opt">--client-protection=sign|encrypt|off</arg>
|
||||
<arg choice="opt">-V|--version</arg>
|
||||
<arg choice="opt">-k|--kerberos=STRING</arg>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
@ -114,7 +151,7 @@
|
||||
</para>
|
||||
|
||||
<para>The server name is looked up according to either
|
||||
the <parameter>-R</parameter> parameter to <command>smbclient</command> or
|
||||
the <parameter>-R|--name-resolve</parameter> parameter to <command>smbclient</command> or
|
||||
using the name resolve order parameter in
|
||||
the <citerefentry><refentrytitle>smb.conf</refentrytitle>
|
||||
<manvolnum>5</manvolnum></citerefentry> file,
|
||||
@ -147,63 +184,6 @@
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>-R|--name-resolve <name resolve order></term>
|
||||
<listitem><para>This option is used by the programs in the Samba
|
||||
suite to determine what naming services and in what order to resolve
|
||||
host names to IP addresses. The option takes a space-separated
|
||||
string of different name resolution options.</para>
|
||||
|
||||
<para>The options are :"lmhosts", "host", "wins" and "bcast". They
|
||||
cause names to be resolved as follows:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para><constant>lmhosts</constant>: Lookup an IP
|
||||
address in the Samba lmhosts file. If the line in lmhosts has
|
||||
no name type attached to the NetBIOS name (see
|
||||
the <citerefentry><refentrytitle>lmhosts</refentrytitle>
|
||||
<manvolnum>5</manvolnum></citerefentry> for details) then
|
||||
any name type matches for lookup.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem><para><constant>host</constant>: Do a standard host
|
||||
name to IP address resolution, using the system <filename>/etc/hosts
|
||||
</filename>, NIS, or DNS lookups. This method of name resolution
|
||||
is operating system dependent, for instance on IRIX or Solaris this
|
||||
may be controlled by the <filename>/etc/nsswitch.conf</filename>
|
||||
file). Note that this method is only used if the NetBIOS name
|
||||
type being queried is the 0x20 (server) name type, otherwise
|
||||
it is ignored.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem><para><constant>wins</constant>: Query a name with
|
||||
the IP address listed in the <parameter>wins server</parameter>
|
||||
parameter. If no WINS server has
|
||||
been specified this method will be ignored.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem><para><constant>bcast</constant>: Do a broadcast on
|
||||
each of the known local interfaces listed in the
|
||||
<parameter>interfaces</parameter>
|
||||
parameter. This is the least reliable of the name resolution
|
||||
methods as it depends on the target host being on a locally
|
||||
connected subnet.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>If this parameter is not set then the name resolve order
|
||||
defined in the <citerefentry><refentrytitle>smb.conf</refentrytitle>
|
||||
<manvolnum>5</manvolnum></citerefentry> file parameter
|
||||
(name resolve order) will be used. </para>
|
||||
|
||||
<para>The default order is lmhosts, host, wins, bcast and without
|
||||
this parameter or any entry in the <parameter>name resolve order
|
||||
</parameter> parameter of the <citerefentry><refentrytitle>smb.conf</refentrytitle>
|
||||
<manvolnum>5</manvolnum></citerefentry> file the name resolution
|
||||
methods will be attempted in this order. </para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
<varlistentry>
|
||||
<term>-M|--message NetBIOS name</term>
|
||||
<listitem><para>This options allows you to send messages, using
|
||||
@ -335,12 +315,6 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
&stdarg.client.debug;
|
||||
&popt.common.samba;
|
||||
&popt.common.credentials;
|
||||
&popt.common.connection;
|
||||
&popt.autohelp;
|
||||
|
||||
<varlistentry>
|
||||
<term>-t|--timeout <timeout-seconds></term>
|
||||
<listitem><para>This allows the user to tune the default
|
||||
@ -432,6 +406,7 @@
|
||||
archive bit to be reset when a file is backed up. Useful with the
|
||||
<parameter>g</parameter> and <parameter>c</parameter> flags.
|
||||
</para></listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
||||
<para><emphasis>Tar Long File Names</emphasis></para>
|
||||
@ -504,6 +479,10 @@
|
||||
to the server, e.g. <command>-c 'print -'</command>. </para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
&popt.autohelp;
|
||||
&cmdline.common.samba.client;
|
||||
&cmdline.common.connection;
|
||||
&cmdline.common.credentials;
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user