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]] [--config CONFIG]
10                 [--features FEATURES-STRING] [--stream NAME,IN,OUT]*
11                      [-o configoption...] hostname auth service
12

DESCRIPTION

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

OPTIONS

22       hostname
23           The hostname of the client.
24
25       auth
26           The auth to use, one of: bsd, bsdudp, bsdtcp, ssh, rsh or krb5. The
27           client must be configured with this auth.
28
29       service
30           The amanda service to execute on the client. One of noop, selfcheck
31           or sendsize.
32
33       -f input_file
34           Use the file input_file instead of stdin to read the REQ packet
35           from.
36
37       -s
38           Redirect the first connected stream to stdin/stdout. The -f
39           argument is required for the REQ packet, the REP packet is not
40           printed on stdout.
41
42       --config
43           The amanda configuration.
44
45       --features FEATURES-STRING
46           The features of the remote client.
47
48       --stream NAME,IN,OUT
49           The vstream to open, their name and the two file descriptors.
50
51       -o configoption
52           See the "CONFIGURATION OVERRIDE" section in amanda(8).
53

EXAMPLE

55       The noop service is easy to execute because it does not require a REQ
56       packet:
57       amservice hostname bsdtcp noop < /dev/null
58
59       The example executes the noop service on the client using bsdtcp auth.
60       This is useful for debugging connection problems. It print an OPTIONS
61       line upon success.
62
63       It is more difficult to execute the selfcheck or sendsize service, as
64       these require a valid REQ packet. If you have already uccessfully run
65       amanda, you can find valid REQ packets in the amandad.*.debug files.
66

EXIT CODE

68       The exit code of amservice is one of:
69        0  = success
70        1  = error executing amandad on the client.
71
72       As amservice doesn't parse the REP packet, it can only detect failures
73       in executing amandad on the client.  amservice can exit with value 0
74       even if the user is not authorized to execute the service. An error
75       message will be printed.
76

SEE ALSO

78       amanda(8), amanda(8), amcheck(8), amdump(8), amadmin(8)
79
80       The Amanda Wiki: : http://wiki.zmanda.com/
81

AUTHOR

83       Jean-Louis Martineau <martineau@zmanda.com>
84           Zmanda, Inc. (http://www.zmanda.com)
85
86
87
88Amanda 3.5.1                      12/01/2017                      AMSERVICE(8)
Impressum