2001-12-20 23:02:47 +03:00
|
|
|
.\" $NetBSD: chio.1,v 1.11 2001/12/20 20:02:47 wiz Exp $
|
1996-04-03 04:34:38 +04:00
|
|
|
.\"
|
1999-09-10 03:24:29 +04:00
|
|
|
.\" Copyright (c) 1996, 1998, 1999 The NetBSD Foundation, Inc.
|
1996-04-03 04:34:38 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
1999-09-10 03:24:29 +04:00
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
|
|
|
|
.\" NASA Ames Research Center.
|
|
|
|
.\"
|
1996-04-03 04:34:38 +04:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
1999-09-10 03:24:29 +04:00
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
1996-04-03 04:34:38 +04:00
|
|
|
.\"
|
1999-09-10 03:24:29 +04:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
1996-04-03 04:34:38 +04:00
|
|
|
.\"
|
1999-09-10 03:24:29 +04:00
|
|
|
.Dd September 8, 1999
|
1996-04-03 04:34:38 +04:00
|
|
|
.Dt CHIO 1
|
1999-03-22 21:25:43 +03:00
|
|
|
.Os
|
1996-04-03 04:34:38 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm chio
|
|
|
|
.Nd medium changer control utility
|
|
|
|
.Sh SYNOPSIS
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
1996-04-03 04:34:38 +04:00
|
|
|
.Op Fl f Ar changer
|
|
|
|
.Ar command
|
|
|
|
.Ar arg1
|
|
|
|
.Ar arg2
|
|
|
|
.Oo
|
|
|
|
.Ar arg3 Oo ...
|
|
|
|
.Oc
|
|
|
|
.Oc
|
|
|
|
.Sh DESCRIPTION
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
1996-04-03 04:34:38 +04:00
|
|
|
is used to control the operation of medium changers, such as those found
|
|
|
|
in tape and optical disk jukeboxes.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl f Ar changer
|
|
|
|
Use the device
|
|
|
|
.Pa changer
|
|
|
|
rather than the default device
|
|
|
|
.Pa /dev/ch0 .
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The default changer may be overridden by setting the environment variable
|
1997-09-15 17:23:01 +04:00
|
|
|
.Ev CHANGER
|
1996-04-03 04:34:38 +04:00
|
|
|
to the desired changer device.
|
|
|
|
.Pp
|
|
|
|
A medium changer apparatus is made up of
|
|
|
|
.Pa elements .
|
|
|
|
There are four element types:
|
|
|
|
.Pa picker
|
|
|
|
(medium transport),
|
|
|
|
.Pa slot
|
|
|
|
(storage),
|
|
|
|
.Pa portal
|
|
|
|
(import/export), and
|
|
|
|
.Pa drive
|
|
|
|
(data transfer). In this command description, the shorthand
|
1997-09-15 17:23:01 +04:00
|
|
|
.Ic ET
|
1996-04-03 04:34:38 +04:00
|
|
|
will be used to represent an element type, and
|
1997-09-15 17:23:01 +04:00
|
|
|
.Ic EU
|
1996-04-03 04:34:38 +04:00
|
|
|
will be used to represent an element unit. For example, to represent
|
|
|
|
the first robotic arm in the changer, the ET would be
|
|
|
|
.Dq picker
|
|
|
|
and the EU would be
|
|
|
|
.Dq 0 .
|
|
|
|
.Sh SUPPORTED COMMANDS
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
|
|
|
.Ic move
|
1996-04-03 04:34:38 +04:00
|
|
|
.Ar <from ET> <from EU> <to ET> <to EU>
|
|
|
|
.Op Ar inv
|
|
|
|
.Pp
|
|
|
|
Moves the media unit from
|
|
|
|
.Pa <from ET/EU>
|
|
|
|
to
|
|
|
|
.Pa <to ET/EU> .
|
|
|
|
If the optional modifier
|
|
|
|
.Pa inv
|
|
|
|
is specified, the media unit will be inverted before insertion.
|
|
|
|
.Pp
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
|
|
|
.Ic exchange
|
1996-04-03 04:34:38 +04:00
|
|
|
.Ar <src ET> <src EU> <dst1 ET> <dst1 EU>
|
|
|
|
.Op Ar <dst2 ET> <dst2 ET>
|
|
|
|
.Op Ar inv1
|
|
|
|
.Op Ar inv2
|
|
|
|
.Pp
|
|
|
|
Performs a media unit exchange operation. The media unit in
|
|
|
|
.Pa <src ET/EU>
|
|
|
|
is moved to
|
|
|
|
.Pa <dst1 ET/EU>
|
|
|
|
and the media unit previously in
|
|
|
|
.Pa <dst1 ET/EU>
|
|
|
|
is moved to
|
|
|
|
.Pa <dst2 ET/EU> .
|
|
|
|
In the case of a simple exchange,
|
|
|
|
.Pa <dst2 ET/EU>
|
|
|
|
is omitted and the values
|
|
|
|
.Pa <src ET/EU>
|
|
|
|
are used in their place.
|
|
|
|
The optional modifiers
|
|
|
|
.Pa inv1
|
|
|
|
and
|
|
|
|
.Pa inv2
|
|
|
|
specify whether the media units are to be inverted before insertion into
|
|
|
|
.Pa <dst1 ET/EU>
|
|
|
|
and
|
|
|
|
.Pa <dst2 ET/EU>
|
1997-10-02 04:41:25 +04:00
|
|
|
respectively.
|
1996-04-03 04:34:38 +04:00
|
|
|
.Pp
|
|
|
|
Note that not all medium changers support the
|
1997-09-15 17:23:01 +04:00
|
|
|
.Ic exchange
|
1996-04-03 04:34:38 +04:00
|
|
|
operation; The changer must have multiple free pickers or emulate
|
|
|
|
multiple free pickers with transient storage.
|
|
|
|
.Pp
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
|
|
|
.Ic position
|
1996-04-03 04:34:38 +04:00
|
|
|
.Ar <to ET> <to EU>
|
|
|
|
.Op Ar inv
|
|
|
|
.Pp
|
|
|
|
Position the picker in front of the element described by
|
|
|
|
.Pa <to ET/EU> .
|
|
|
|
If the optional modifier
|
|
|
|
.Pa inv
|
|
|
|
is specified, the media unit will be inverted before insertion.
|
|
|
|
.Pp
|
|
|
|
Note that not all changers behave as expected when issued this command.
|
|
|
|
.Pp
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
|
|
|
.Ic params
|
1996-04-03 04:34:38 +04:00
|
|
|
.Pp
|
|
|
|
Report the number of slots, drives, pickers, and portals in the changer,
|
|
|
|
and which picker unit the changer is currently configured to use.
|
|
|
|
.Pp
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
|
|
|
.Ic getpicker
|
1996-04-03 04:34:38 +04:00
|
|
|
.Pp
|
|
|
|
Report which picker unit the changer is currently configured to use.
|
|
|
|
.Pp
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
|
|
|
.Ic setpicker
|
1996-04-03 04:34:38 +04:00
|
|
|
.Ar <unit>
|
|
|
|
.Pp
|
|
|
|
Configure the changer to use picker
|
|
|
|
.Pa <unit> .
|
|
|
|
.Pp
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
|
|
|
.Ic status
|
1999-09-10 03:24:29 +04:00
|
|
|
.Oo Ar <type> Oo unit Oo count Oc Oc Oc
|
|
|
|
.Op Ar voltags
|
1996-04-03 04:34:38 +04:00
|
|
|
.Pp
|
|
|
|
Report the status of all elements in the changer. If
|
|
|
|
.Pa <type>
|
|
|
|
is specified, report the status of all elements of type
|
|
|
|
.Pa <type> .
|
|
|
|
.Pp
|
|
|
|
The status bits are defined as follows:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Nm FULL
|
|
|
|
Element contains a media unit.
|
|
|
|
.It Nm IMPEXP
|
|
|
|
Media was deposited into element by an outside human operator.
|
|
|
|
.It Nm EXCEPT
|
|
|
|
Element is in an abnormal state.
|
|
|
|
.It Nm ACCESS
|
|
|
|
Media in this element is accessible by a picker.
|
|
|
|
.It Nm EXENAB
|
1997-10-02 04:41:25 +04:00
|
|
|
Element supports passing media (exporting) to an outside human operator.
|
1996-04-03 04:34:38 +04:00
|
|
|
.It Nm INENAB
|
|
|
|
Element supports receiving media (importing) from an outside human operator.
|
|
|
|
.El
|
|
|
|
.Pp
|
1999-09-10 03:24:29 +04:00
|
|
|
If the element is a drive, the device name of the drive will be reported
|
|
|
|
if it is available.
|
|
|
|
.Pp
|
|
|
|
If the
|
|
|
|
.Op Ar voltags
|
|
|
|
option is specified, primary and alternate volume tag information will
|
|
|
|
be reported, if available.
|
|
|
|
.Pp
|
|
|
|
If the previous location of the media is available, it will also be reported.
|
|
|
|
.Pp
|
1997-10-02 04:41:25 +04:00
|
|
|
.Nm
|
1997-09-29 21:32:23 +04:00
|
|
|
.Ic ielem
|
|
|
|
.Pp
|
|
|
|
Perform an \fBINITIALIZE ELEMENT STATUS\fR
|
|
|
|
operation on the changer.
|
|
|
|
.Pp
|
1998-07-13 16:06:18 +04:00
|
|
|
.Nm
|
|
|
|
.Ic cdlu
|
|
|
|
.Ar <sub-command>
|
|
|
|
.Ar <slot>
|
|
|
|
.Pp
|
|
|
|
This command is provided for controlling CD-ROM changer mechanisms which
|
|
|
|
cannot use the standard changer control interface. ATAPI CD-ROM changers
|
|
|
|
fall into this category. There are 3 sub-commands:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Nm load
|
|
|
|
Loads the media from the specified slot into the CD-ROM drive.
|
|
|
|
.It Nm unload
|
|
|
|
Unloads the media from the CD-ROM drive and returns it to the specified slot.
|
|
|
|
.It Nm abort
|
|
|
|
Aborts any pending load or unload operation.
|
|
|
|
.El
|
2001-12-20 23:02:47 +03:00
|
|
|
.Sh FILES
|
|
|
|
/dev/ch0 - default changer device
|
1996-04-03 04:34:38 +04:00
|
|
|
.Sh EXAMPLES
|
1999-08-05 06:47:09 +04:00
|
|
|
.Dl chio -f /dev/ch0 move slot 3 drive 0
|
1996-04-03 04:34:38 +04:00
|
|
|
.Pp
|
|
|
|
Moves the media in slot 3 (fourth slot) to drive 0 (first drive).
|
|
|
|
.Pp
|
1997-09-15 17:23:01 +04:00
|
|
|
.Dl chio setpicker 2
|
|
|
|
.Pp
|
1996-04-03 04:34:38 +04:00
|
|
|
Configures the changer to use picker 2 (third picker) for operations.
|
|
|
|
.Pp
|
1998-07-13 16:06:18 +04:00
|
|
|
.Dl chio -f /dev/cd0a cdlu load 1
|
|
|
|
.Pp
|
|
|
|
Loads the media from slot (second slot) into the CD-ROM drive.
|
|
|
|
.Pp
|
1999-08-05 06:47:09 +04:00
|
|
|
.Dl chio -f /dev/ch1 status
|
|
|
|
.Pp
|
2001-12-20 22:31:48 +03:00
|
|
|
Returns status of all elements in the second changer.
|
1996-04-03 04:34:38 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mt 1 ,
|
1998-05-22 22:27:50 +04:00
|
|
|
.Xr mount 8
|
2001-12-20 23:02:47 +03:00
|
|
|
.Sh AUTHORS
|
1996-04-03 04:34:38 +04:00
|
|
|
The
|
1997-09-15 17:23:01 +04:00
|
|
|
.Nm
|
1999-09-10 03:24:29 +04:00
|
|
|
program and SCSI changer driver were originally written by Jason R. Thorpe
|
|
|
|
for And Communications, http://www.and.com/. Additional development was
|
|
|
|
done by Jason R. Thorpe for the Numerical Aerospace Simulation Facility,
|
|
|
|
NASA Ames Research Center.
|