1AMSERVICE(8) System Administration Commands AMSERVICE(8)
2
3
4
6 amservice - run an amanda service on a client
7
9 amservice hostname auth service [-f input_file] [{-o configoption}...]
10
12 Amservice execute an Amanda service on a client. It can be used without
13 amanda server configuration (amanda.conf and disklist). It can be used
14 to check communication between a server and a client. Amservice reads
15 stdin to capture the REQ packet to send to the client.
16
17 See the amanda(8) man page for more details about Amanda.
18
20 hostname
21 The hostname of the client.
22
23 auth
24 The auth to use, one of: bsd, bsdudp, bsdtcp, ssh, rsh or krb5. The
25 client must be configured with this auth.
26
27 service
28 The amanda service to execute on the client. One of noop, selfcheck
29 or sendsize.
30
31 -f input_file
32 Use the file input_file instead of stdin to read the REQ packet
33 from.
34
35 -o configoption
36 See the "CONFIGURATION OVERRIDE" section in amanda(8).
37
39 The noop service is easy to execute because it does not require a REQ
40 packet:
41 amservice hostname bsdtcp noop < /dev/null.fi
42
43 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.
44
45 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.
46
48 The exit code of amservice is one of:
49 0 = success
50 1 = error executing amandad on the client.
51
52 As amservice doesn´t parse the REP packet, it can only detect failures
53 in executing amandad on the client. amservice can exit with value 0
54 even if the user is not authorized to execute the service. An error
55 message will be printed.
56
58 amanda(8), amanda(8), amcheck(8), amdump(8), amadmin(8)
59
60 The Amanda Wiki: : http://wiki.zmanda.com/
61
63 Jean-Louis Martineau <martineau@zmanda.com>
64 Zmanda, Inc. (http://www.zmanda.com)
65
66
67
68Amanda 3.1.3 10/04/2010 AMSERVICE(8)