3 .\" Author: Jean-Louis Martineau <martineau@zmanda.com>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.1.0
10 .TH "AMSERVICE" "8" "06/01/2010" "Amanda 3\&.1\&.0" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 amservice \- run an amanda service on a client
24 .HP \w'\fBamservice\fR\ 'u
25 \fBamservice\fR \fIhostname\fR \fIauth\fR \fIservice\fR [\-f\ \fIinput_file\fR] [{\fB\-o\fR\ \fIconfigoption\fR}...]
29 execute an Amanda service on a client\&. It can be used without amanda server configuration (amanda\&.conf and disklist)\&. It can be used to check communication between a server and a client\&. Amservice reads stdin to capture the REQ packet to send to the client\&.
33 man page for more details about Amanda\&.
38 The hostname of the client\&.
43 The auth to use, one of: bsd, bsdudp, bsdtcp, ssh, rsh or krb5\&. The client must be configured with this auth\&.
48 The amanda service to execute on the client\&. One of noop, selfcheck or sendsize\&.
53 Use the file input_file instead of stdin to read the REQ packet from\&.
56 \fB\-o \fR\fB\fIconfigoption\fR\fR
58 See the "CONFIGURATION OVERRIDE" section in
63 The noop service is easy to execute because it does not require a REQ packet:
65 amservice hostname bsdtcp noop < /dev/null.fi
67 The example executes the noop service on the client using bsdtcp auth\&. This is useful for debugging connection problems\&. It print an OPTIONS line upon success\&.
69 It is more difficult to execute the selfcheck or sendsize service, as these require a valid REQ packet\&. If you have already uccessfully run amanda, you can find valid REQ packets in the amandad\&.*\&.debug files\&.
72 The exit code of \fBamservice\fR is one of:
75 1 = error executing amandad on the client\&.
80 doesn\'t parse the REP packet, it can only detect failures in executing amandad on the client\&.
82 can exit with value 0 even if the user is not authorized to execute the service\&. An error message will be printed\&.
92 : http://wiki.zmanda.com/
95 \fBJean\-Louis Martineau\fR <\&martineau@zmanda\&.com\&>
97 Zmanda, Inc\&. (http://www\&.zmanda\&.com)