1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
5 <!-- entities files to use -->
6 <!ENTITY % global_entities SYSTEM 'global.entities'>
10 <refentry id='amdevcheck.8'>
13 <refentrytitle>amdevcheck</refentrytitle>
14 <manvolnum>8</manvolnum>
20 <refname>amdevcheck</refname>
21 <refpurpose>Validate an Amanda device and volume.</refpurpose>
26 <!-- body begins here -->
29 <command>amdevcheck</command>
31 <arg choice='plain'>--label</arg>
34 <arg choice='plain'>-properties <replaceable>list</replaceable></arg>
36 &configoverride.synopsis;
37 <arg choice='plain'><replaceable>config</replaceable></arg>
39 <arg choice='plain'><replaceable>device-name</replaceable></arg>
44 <refsect1><title>DESCRIPTION</title>
46 <emphasis remap='B'>Amdevcheck</emphasis> provides a way to check that a
47 particular Amanda device is accessible, whether or not it contains a volume,
48 and whether or not that volume is labeled. Some devices can't distinguish
49 between all of these cases; a missing volume and an unlabeled volume might
50 generate the same error code, for example. In those cases, this tool
51 reports all possible causes of the error. Optionally this tools lists the
52 properties for the device.
56 <manref name="amanda" vol="8"/>
57 man page for more details about Amanda. See
58 <manref name="amanda-devices" vol="7"/>
59 for more information on devices.
63 <refsect1><title>OPTIONS</title>
64 <variablelist remap='TP'>
66 <term><replaceable>config</replaceable></term>
69 Amanda configuration to use. Note that <command>amdevcheck</command>
70 ignores any tape changer configuration.
76 <term><replaceable>device</replaceable></term>
79 Amanda device to use. This option overrides any tapedev configuration
80 specified in the configuration file.
86 <term><replaceable>--label</replaceable></term>
89 Get the device's label. If this option is given, the usual check
90 output is omitted, and the label of the loaded volume is printed to stdout.
91 Returns with error if the label is not found.
97 <term><replaceable>--properties [list]</replaceable></term>
100 List device properties. If this option is given, the usual check
101 output is omitted, and property values are printed to stdout, one
102 per line, as a property name, followed by '=', followed by the
104 Returns with error if properties are not available.
107 If <replaceable>list</replaceable> is given, it is treated as a
108 comma-separated list of properties to display. If it is omitted,
109 all supported properties are displayed.
114 &configoverride.varlistentry;
119 <refsect1><title>OUTPUT</title>
120 <para><emphasis remap='B'>amdevcheck</emphasis> 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.</para>
121 <para><emphasis remap='B'>Amdevcheck</emphasis> returns one or more of the following lines. If multiple lines appear, then at least one, but not necessarily all of
122 the messages apply. This situation can occur when working with hardware or
123 operating systems which cannot distinguish, for example, between a
124 malfunctioning drive and a functional but unloaded drive.</para>
126 <variablelist remap='TP'>
128 <term><emphasis remap='B'>SUCCESS</emphasis></term>
129 <listitem><para>A tape is ready.</para></listitem>
132 <term><emphasis remap='B'>DEVICE_ERROR</emphasis></term>
133 <listitem><para>A device error has occurred.</para></listitem>
136 <term><emphasis remap='B'>DEVICE_BUSY</emphasis></term>
137 <listitem><para>The device is busy.</para></listitem>
140 <term><emphasis remap='B'>VOLUME_MISSING</emphasis></term>
141 <listitem><para>No tape is loaded in the drive.</para></listitem>
144 <term><emphasis remap='B'>VOLUME_UNLABELED</emphasis></term>
145 <listitem><para>The tape in the drive is unlabeled.</para></listitem>
148 <term><emphasis remap='B'>VOLUME_ERROR</emphasis></term>
149 <listitem><para>A volume error has occurred.</para></listitem>
152 <term><emphasis remap='B'>MESSAGE</emphasis> <emphasis remap='I'>text</emphasis></term>
153 <listitem><para>Where text provides a human-readable description of the problem.</para></listitem>
159 <manref name="amanda-devices" vol="7"/>