1 .\" $NetBSD: chio.1,v 1.14 2002/09/25 15:18:37 wiz Exp $
3 .\" Copyright (c) 1996, 1998, 1999 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
8 .\" NASA Ames Research Center.
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" 2. Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
19 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 .\" POSSIBILITY OF SUCH DAMAGE.
36 .Nd medium changer control utility
49 is used to control the operation of medium changers, such as those found
50 in tape and optical disk jukeboxes.
52 The options are as follows:
53 .Bl -tag -width indent
57 rather than the default device
61 The default changer may be overridden by setting the environment variable
63 to the desired changer device.
65 A medium changer apparatus is made up of
67 There are four element types:
76 In this command description, the shorthand
78 will be used to represent an element type, and
80 will be used to represent an element unit.
81 For example, to represent
82 the first robotic arm in the changer, the ET would be
86 .Sh SUPPORTED COMMANDS
89 .Ar \*[Lt]from ET\*[Gt] \*[Lt]from EU\*[Gt] \*[Lt]to ET\*[Gt] \*[Lt]to EU\*[Gt]
92 Moves the media unit from
93 .Pa \*[Lt]from ET/EU\*[Gt]
95 .Pa \*[Lt]to ET/EU\*[Gt] .
96 If the optional modifier
98 is specified, the media unit will be inverted before insertion.
102 .Ar \*[Lt]src ET\*[Gt] \*[Lt]src EU\*[Gt] \*[Lt]dst1 ET\*[Gt] \*[Lt]dst1 EU\*[Gt]
103 .Op Ar \*[Lt]dst2 ET\*[Gt] \*[Lt]dst2 ET\*[Gt]
107 Performs a media unit exchange operation.
109 .Pa \*[Lt]src ET/EU\*[Gt]
111 .Pa \*[Lt]dst1 ET/EU\*[Gt]
112 and the media unit previously in
113 .Pa \*[Lt]dst1 ET/EU\*[Gt]
115 .Pa \*[Lt]dst2 ET/EU\*[Gt] .
116 In the case of a simple exchange,
117 .Pa \*[Lt]dst2 ET/EU\*[Gt]
118 is omitted and the values
119 .Pa \*[Lt]src ET/EU\*[Gt]
120 are used in their place.
121 The optional modifiers
125 specify whether the media units are to be inverted before insertion into
126 .Pa \*[Lt]dst1 ET/EU\*[Gt]
128 .Pa \*[Lt]dst2 ET/EU\*[Gt]
131 Note that not all medium changers support the
133 operation; The changer must have multiple free pickers or emulate
134 multiple free pickers with transient storage.
138 .Ar \*[Lt]to ET\*[Gt] \*[Lt]to EU\*[Gt]
141 Position the picker in front of the element described by
142 .Pa \*[Lt]to ET/EU\*[Gt] .
143 If the optional modifier
145 is specified, the media unit will be inverted before insertion.
147 Note that not all changers behave as expected when issued this command.
152 Report the number of slots, drives, pickers, and portals in the changer,
153 and which picker unit the changer is currently configured to use.
158 Report which picker unit the changer is currently configured to use.
164 Configure the changer to use picker
165 .Pa \*[Lt]unit\*[Gt] .
169 .Oo Ar \*[Lt]type\*[Gt] Oo unit Oo count Oc Oc Oc
172 Report the status of all elements in the changer.
175 is specified, report the status of all elements of type
176 .Pa \*[Lt]type\*[Gt] .
178 The status bits are defined as follows:
179 .Bl -tag -width indent
181 Element contains a media unit.
183 Media was deposited into element by an outside human operator.
185 Element is in an abnormal state.
187 Media in this element is accessible by a picker.
189 Element supports passing media (exporting) to an outside human operator.
191 Element supports receiving media (importing) from an outside human operator.
194 If the element is a drive, the device name of the drive will be reported
199 option is specified, primary and alternate volume tag information will
200 be reported, if available.
202 If the previous location of the media is available, it will also be reported.
208 .Em INITIALIZE ELEMENT STATUS
209 operation on the changer.
213 .Ar \*[Lt]sub-command\*[Gt]
216 This command is provided for controlling CD-ROM changer mechanisms which
217 cannot use the standard changer control interface.
218 ATAPI CD-ROM changers fall into this category.
219 There are 3 sub-commands:
220 .Bl -tag -width indent
222 Loads the media from the specified slot into the CD-ROM drive.
224 Unloads the media from the CD-ROM drive and returns it to the specified slot.
226 Aborts any pending load or unload operation.
229 /dev/ch0 - default changer device
231 .Dl chio -f /dev/ch0 move slot 3 drive 0
233 Moves the media in slot 3 (fourth slot) to drive 0 (first drive).
237 Configures the changer to use picker 2 (third picker) for operations.
239 .Dl chio -f /dev/cd0a cdlu load 1
241 Loads the media from slot (second slot) into the CD-ROM drive.
243 .Dl chio -f /dev/ch1 status
245 Returns status of all elements in the second changer.
252 program and SCSI changer driver were originally written by Jason R. Thorpe
253 for And Communications, http://www.and.com/.
254 Additional development was
255 done by Jason R. Thorpe for the Numerical Aerospace Simulation Facility,
256 NASA Ames Research Center.