| 1 | .\" Title: rpcclient
|
|---|
| 2 | .\" Author:
|
|---|
| 3 | .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
|
|---|
| 4 | .\" Date: 05/21/2008
|
|---|
| 5 | .\" Manual: User Commands
|
|---|
| 6 | .\" Source: Samba 3.0
|
|---|
| 7 | .\"
|
|---|
| 8 | .TH "RPCCLIENT" "1" "05/21/2008" "Samba 3\.0" "User Commands"
|
|---|
| 9 | .\" disable hyphenation
|
|---|
| 10 | .nh
|
|---|
| 11 | .\" disable justification (adjust text to left margin only)
|
|---|
| 12 | .ad l
|
|---|
| 13 | .SH "NAME"
|
|---|
| 14 | rpcclient - tool for executing client side MS-RPC functions
|
|---|
| 15 | .SH "SYNOPSIS"
|
|---|
| 16 | .HP 1
|
|---|
| 17 | rpcclient [\-A\ authfile] [\-c\ <command\ string>] [\-d\ debuglevel] [\-h] [\-l\ logdir] [\-N] [\-s\ <smb\ config\ file>] [\-U\ username[%password]] [\-W\ workgroup] [\-N] [\-I\ destinationIP] {server}
|
|---|
| 18 | .SH "DESCRIPTION"
|
|---|
| 19 | .PP
|
|---|
| 20 | This tool is part of the
|
|---|
| 21 | \fBsamba\fR(7)
|
|---|
| 22 | suite\.
|
|---|
| 23 | .PP
|
|---|
| 24 | rpcclient
|
|---|
| 25 | is a utility initially developed to test MS\-RPC functionality in Samba itself\. It has undergone several stages of development and stability\. Many system administrators have now written scripts around it to manage Windows NT clients from their UNIX workstation\.
|
|---|
| 26 | .SH "OPTIONS"
|
|---|
| 27 | .PP
|
|---|
| 28 | server
|
|---|
| 29 | .RS 4
|
|---|
| 30 | NetBIOS name of Server to which to connect\. The server can be any SMB/CIFS server\. The name is resolved using the
|
|---|
| 31 | \fIname resolve order\fR
|
|---|
| 32 | line from
|
|---|
| 33 | \fBsmb.conf\fR(5)\.
|
|---|
| 34 | .RE
|
|---|
| 35 | .PP
|
|---|
| 36 | \-c|\-\-command=\'command string\'
|
|---|
| 37 | .RS 4
|
|---|
| 38 | execute semicolon separated commands (listed below))
|
|---|
| 39 | .RE
|
|---|
| 40 | .PP
|
|---|
| 41 | \-I IP\-address
|
|---|
| 42 | .RS 4
|
|---|
| 43 | \fIIP address\fR
|
|---|
| 44 | is the address of the server to connect to\. It should be specified in standard "a\.b\.c\.d" notation\.
|
|---|
| 45 | .sp
|
|---|
| 46 | Normally the client would attempt to locate a named SMB/CIFS server by looking it up via the NetBIOS name resolution mechanism described above in the
|
|---|
| 47 | \fIname resolve order\fR
|
|---|
| 48 | parameter above\. Using this parameter will force the client to assume that the server is on the machine with the specified IP address and the NetBIOS name component of the resource being connected to will be ignored\.
|
|---|
| 49 | .sp
|
|---|
| 50 | There is no default for this parameter\. If not supplied, it will be determined automatically by the client as described above\.
|
|---|
| 51 | .RE
|
|---|
| 52 | .PP
|
|---|
| 53 | \-d|\-\-debuglevel=level
|
|---|
| 54 | .RS 4
|
|---|
| 55 | \fIlevel\fR
|
|---|
| 56 | is an integer from 0 to 10\. The default value if this parameter is not specified is 0\.
|
|---|
| 57 | .sp
|
|---|
| 58 | The higher this value, the more detail will be logged to the log files about the activities of the server\. At level 0, only critical errors and serious warnings will be logged\. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\.
|
|---|
| 59 | .sp
|
|---|
| 60 | Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\.
|
|---|
| 61 | .sp
|
|---|
| 62 | Note that specifying this parameter here will override the
|
|---|
| 63 | \fIlog level\fR
|
|---|
| 64 | parameter in the
|
|---|
| 65 | \fIsmb\.conf\fR
|
|---|
| 66 | file\.
|
|---|
|
|---|