1AMSERVICE(8)            System Administration Commands            AMSERVICE(8)
2
3
4

NAME

6       amservice - run an amanda service on a client
7

SYNOPSIS

9       amservice [-f input_file [-s]] [-o configoption...] hostname auth
10                 service
11

DESCRIPTION

13       Amservice execute an Amanda service on a client. It can be used without
14       amanda server configuration (amanda.conf and disklist). It can be used
15       to check communication between a server and a client. Amservice reads
16       stdin to capture the REQ packet to send to the client.
17
18       See the amanda(8) man page for more details about Amanda.
19

OPTIONS

21       hostname
22           The hostname of the client.
23
24       auth
25           The auth to use, one of: bsd, bsdudp, bsdtcp, ssh, rsh or krb5. The
26           client must be configured with this auth.
27
28       service
29           The amanda service to execute on the client. One of noop, selfcheck
30           or sendsize.
31
32       -f input_file
33           Use the file input_file instead of stdin to read the REQ packet
34           from.
35
36       -s
37           Redirect the first connected stream to stdin/stdout. The -f
38           argument is required for the REQ packet, the REP packet is not
39           printed on stdout.
40
41       -o configoption
42           See the "CONFIGURATION OVERRIDE" section in amanda(8).
43

EXAMPLE

45       The noop service is easy to execute because it does not require a REQ
46       packet:
47       amservice hostname bsdtcp noop < /dev/null
48
49       The example executes the noop service on the client using bsdtcp auth.
50       This is useful for debugging connection problems. It print an OPTIONS
51       line upon success.
52
53       It is more difficult to execute the selfcheck or sendsize service, as
54       these require a valid REQ packet. If you have already uccessfully run
55       amanda, you can find valid REQ packets in the amandad.*.debug files.
56

EXIT CODE

58       The exit code of amservice is one of:
59        0  = success
60        1  = error executing amandad on the client.
61
62       As amservice doesn't parse the REP packet, it can only detect failures
63       in executing amandad on the client.  amservice can exit with value 0
64       even if the user is not authorized to execute the service. An error
65       message will be printed.
66

SEE ALSO

68       amanda(8), amanda(8), amcheck(8), amdump(8), amadmin(8)
69
70       The Amanda Wiki: : http://wiki.zmanda.com/
71

AUTHOR

73       Jean-Louis Martineau <martineau@zmanda.com>
74           Zmanda, Inc. (http://www.zmanda.com)
75
76
77
78Amanda 3.3.3                      01/10/2013                      AMSERVICE(8)
Impressum