amservice (8) - Linux Man Pages
amservice: run an amanda service on a client
amservice - run an amanda service on a client
input_file [-s]] [-o configoption...] hostname auth service
See the amanda(8) man page for more details about Amanda.
- The hostname of the client.
- The auth to use, one of: bsd, bsdudp, bsdtcp, ssh, rsh or krb5. The client must be configured with this auth.
- The amanda service to execute on the client. One of noop, selfcheck or sendsize.
- Use the file input_file instead of stdin to read the REQ packet from.
- Redirect the first connected stream to stdin/stdout. The -f argument is required for the REQ packet, the REP packet is not printed on stdout.
- See the "CONFIGURATION OVERRIDE" section in amanda(8).
The noop service is easy to execute because it does not require a REQ packet:
amservice hostname bsdtcp noop < /dev/null
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.
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.
The exit code of amservice is one of:
0 = success 1 = error executing amandad on the client.
As amservice doesn't parse the REP packet, it can only detect failures in executing amandad on the client. amservice can exit with value 0 even if the user is not authorized to execute the service. An error message will be printed.
Jean-Louis Martineau <martineau [at] zmanda.com>
- Zmanda, Inc. (http://www.zmanda.com)