3 .\" Author: Ian Turner <ian@zmanda.com>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.2.1
10 .TH "AMDEVCHECK" "8" "12/14/2010" "Amanda 3\&.2\&.1" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 amdevcheck \- Validate an Amanda device and volume\&.
24 .HP \w'\fBamdevcheck\fR\ 'u
25 \fBamdevcheck\fR [\-\-label] [\-properties\ \fIlist\fR] [\fB\-o\fR\ \fIconfigoption\fR...] \fIconfig\fR [\fIdevice\-name\fR]
30 provides a way to check that a particular Amanda device is accessible, whether or not it contains a volume, and whether or not that volume is labeled\&. Some devices can\'t distinguish between all of these cases; a missing volume and an unlabeled volume might generate the same error code, for example\&. In those cases, this tool reports all possible causes of the error\&. Optionally this tools lists the properties for the device\&.
34 man page for more details about Amanda\&. See
35 \fBamanda-devices\fR(7)
36 for more information on devices\&.
41 Amanda configuration to use\&. Note that
43 ignores any tape changer configuration\&.
48 Amanda device to use\&. This option overrides any tapedev configuration specified in the configuration file\&.
53 Get the device\'s label\&. If this option is given, the usual check output is omitted, and the label of the loaded volume is printed to stdout\&. Returns with error if the label is not found\&.
56 \fI\-\-properties [list]\fR
58 List device properties\&. If this option is given, the usual check output is omitted, and property values are printed to stdout, one per line, as a property name, followed by \'=\', followed by the property value\&. Returns with error if properties are not available\&.
62 is given, it is treated as a comma\-separated list of properties to display\&. If it is omitted, all supported properties are displayed\&.
65 \fB\-o \fR\fB\fIconfigoption\fR\fR
67 See the "CONFIGURATION OVERRIDE" section in
73 exit with code 0 if the device is working of if it get an expected error, look at the MESSAGE line for the error\&. It exit with code 1 if it get an unexpected error\&.
76 returns one or more of the following lines\&. If multiple lines appear, then at least one, but not necessarily all of the messages apply\&. This situation can occur when working with hardware or operating systems which cannot distinguish, for example, between a malfunctioning drive and a functional but unloaded drive\&.
85 A device error has occurred\&.
95 No tape is loaded in the drive\&.
98 \fBVOLUME_UNLABELED\fR
100 The tape in the drive is unlabeled\&.
105 A volume error has occurred\&.
108 \fBMESSAGE\fR \fItext\fR
110 Where text provides a human\-readable description of the problem\&.
115 \fBamanda-devices\fR(7)
118 : http://wiki.zmanda.com/
121 \fBIan Turner\fR <\&ian@zmanda\&.com\&>
123 Zmanda, Inc\&. (http://www\&.zmanda\&.com)