1 .\" $NetBSD: chio.1,v 1.4 1997/10/02 00:41:25 hubertf Exp $
3 .\" Copyright (c) 1996 Jason R. Thorpe <thorpej@and.com>
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. All advertising materials mentioning features or use of this software
15 .\" must display the following acknowledgements:
16 .\" This product includes software developed by Jason R. Thorpe
17 .\" for And Communications, http://www.and.com/
18 .\" 4. The name of the author may not be used to endorse or promote products
19 .\" derived from this software without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 .Nd medium changer control utility
50 utility is used to control the operation of medium changers, such as those
51 found in tape and optical disk jukeboxes.
53 The options are as follows:
54 .Bl -tag -width indent
58 rather than the default device
62 A medium changer apparatus is made up of
64 There are five element types:
74 (select by volume identifier).
77 pseudo-element type allows the selection of tapes by their volume tag
78 (typically a barcode on the tape).
80 In this command description, the shorthand
82 will be used to represent an element type, and
84 will be used to represent an element unit.
85 For example, to represent the first robotic arm in the changer, the
93 .Sh SUPPORTED COMMANDS
94 .Bl -tag -width indent
96 .Ar <from ET> <from EU> <to ET> <to EU>
99 Move the media unit from
103 If the optional modifier
105 is specified, the media unit will be inverted before insertion.
107 .Ar <src ET> <src EU> <dst1 ET> <dst1 EU>
108 .Op Ar <dst2 ET> <dst2 ET>
112 Perform a media unit exchange operation.
117 and the media unit previously in
121 In the case of a simple exchange,
123 is omitted and the values
125 are used in their place.
126 The optional modifiers
130 specify whether the media units are to be inverted before insertion into
136 Note that not all medium changers support the
138 operation; the changer must have multiple free pickers or emulate
139 multiple free pickers with transient storage.
141 .Ar <from ET> <from EU>
143 Return the media unit to its source element.
144 This command will query the status of the specified media unit, and
145 will move it to the element specified in its source attribute.
146 This is a convenient way to return media from a drive or portal
147 to its previous element in the changer.
152 Position the picker in front of the element described by
154 If the optional modifier
156 is specified, the media unit will be inverted before insertion.
158 Note that not all changers behave as expected when issued this command.
160 Report the number of slots, drives, pickers, and portals in the changer,
161 and which picker unit the changer is currently configured to use.
163 Report which picker unit the changer is currently configured to use.
167 Configure the changer to use picker
173 .Em INITIALIZE ELEMENT STATUS
174 operation on the changer.
177 parameter may be given to specify a timeout in seconds for the
179 This may be used if the operation takes unusually long
180 because of buggy firmware or the like.
188 Change volume tag for an element in the media changer.
190 is only supported by few media changers.
191 If it is not supported by a
192 device, using this command will usually result in an "Invalid Field in
193 CDB" error message on the console.
197 flag is specified, the volume tag of the specified element is
201 flag is specified, the volume tag is superseded with the specified
202 volume tag even if a volume tag is already defined for the element.
203 It is an error to not specify the
205 flag when trying to set a label for an element which already has
206 volume tag information defined.
208 The command works with the primary volume tag or, if the
210 flag is given, with the alternate volume tag.
215 Report the status of all elements in the changer.
218 is specified, report the status of all elements of type
221 Print the primary volume tag for each loaded medium, if any.
226 Print the alternate volume tag for each loaded medium, if any.
228 Print the additional sense code and additional sense code qualifier for
231 Print the element source address for each element.
233 Print SCSI bus information for each element.
234 Note that this information
235 is valid only for drives.
237 Print the internal element addresses for each element.
239 element address is not normally used with this driver.
241 for diagnostic purposes only.
243 Print all additional information (as in
247 The status bits are defined as follows:
248 .Bl -tag -width indent
250 Element contains a media unit.
252 Media was deposited into element by an outside human operator.
254 Element is in an abnormal state.
256 Media in this element is accessible by a picker.
258 Element supports passing media (exporting) to an outside human operator.
260 Element supports receiving media (importing) from an outside human operator.
263 .Bl -tag -width CHANGER
265 The default changer may be overridden by setting this environmental
266 variable to the desired changer device.
269 .Bl -tag -width /dev/ch0 -compact
271 default changer device
274 .Bl -tag -width indent
275 .It Li chio move slot 3 drive 0
276 Move the media in slot 3 (fourth slot) to drive 0 (first drive).
277 .It Li chio move voltag VOLUME01 drive 0
278 Move the media with the barcode VOLUME01 to drive 0 (first drive).
279 .It Li chio return drive 0
280 Remove the tape from drive 0 (first drive) and return it to its original
281 location in the rack.
282 .It Li chio setpicker 2
283 Configure the changer to use picker 2 (third picker) for operations.
300 program and SCSI changer driver were written by
301 .An Jason R. Thorpe Aq Mt thorpej@and.com
302 for And Communications,
303 .Pa http://www.and.com/ .
306 .An Hans Huebner Aq Mt hans@artcom.de
308 .An Steve Gunn Aq Mt csg@waterspout.com .