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

NAME

6       amdevcheck - Validate an Amanda device and volume.
7

SYNOPSIS

9       amdevcheck config [device-name] [--label] [-properties list]
10                  [{-o configoption}...]
11

DESCRIPTION

13       Amdevcheck provides a way to check that a particular Amanda device is
14       accessible, whether or not it contains a volume, and whether or not
15       that volume is labeled. Some devices can´t distinguish between all of
16       these cases; a missing volume and an unlabeled volume might generate
17       the same error code, for example. In those cases, this tool reports all
18       possible causes of the error. Optionally this tools lists the
19       properties for the device.
20
21       See the amanda(8) man page for more details about Amanda. See amanda-
22       devices(7) for more information on devices.
23

OPTIONS

25       config
26           Amanda configuration to use. Note that amdevcheck ignores any tape
27           changer configuration.
28
29       device
30           Amanda device to use. This option overrides any tapedev
31           configuration specified in the configuration file.
32
33       --label
34           Get the device´s label. If this option is given, the usual check
35           output is omitted, and the label of the loaded volume is printed to
36           stdout. Returns with error if the label is not found.
37
38       --properties [list]
39           List device properties. If this option is given, the usual check
40           output is omitted, and property values are printed to stdout, one
41           per line, as a property name, followed by ´=´, followed by the
42           property value. Returns with error if properties are not available.
43
44           If list is given, it is treated as a comma-separated list of
45           properties to display. If it is omitted, all supported properties
46           are displayed.
47
48       -o configoption
49           See the "CONFIGURATION OVERRIDE" section in amanda(8).
50

OUTPUT

52       amdevcheck exit with code 0 if the device is working of if it get an
53       expected error, look at the MESSAGE line for the error. It exit with
54       code 1 if it get an unexpected error.
55
56       Amdevcheck returns one or more of the following lines. If multiple
57       lines appear, then at least one, but not necessarily all of the
58       messages apply. This situation can occur when working with hardware or
59       operating systems which cannot distinguish, for example, between a
60       malfunctioning drive and a functional but unloaded drive.
61
62       SUCCESS
63           A tape is ready.
64
65       DEVICE_ERROR
66           A device error has occurred.
67
68       DEVICE_BUSY
69           The device is busy.
70
71       VOLUME_MISSING
72           No tape is loaded in the drive.
73
74       VOLUME_UNLABELED
75           The tape in the drive is unlabeled.
76
77       VOLUME_ERROR
78           A volume error has occurred.
79
80       MESSAGE text
81           Where text provides a human-readable description of the problem.
82

SEE ALSO

84       amanda(8), amanda-devices(7)
85
86       The Amanda Wiki: : http://wiki.zmanda.com/
87

AUTHOR

89       Ian Turner <ian@zmanda.com>
90           Zmanda, Inc. (http://www.zmanda.com)
91
92
93
94Amanda 3.1.3                      10/04/2010                     AMDEVCHECK(8)
Impressum