1998-09-15 07:48:51 +00:00
|
|
|
.\" $NetBSD: chio.1,v 1.4 1997/10/02 00:41:25 hubertf Exp $
|
2005-01-10 08:39:26 +00:00
|
|
|
.\"-
|
1997-03-06 15:30:06 +00:00
|
|
|
.\" Copyright (c) 1996 Jason R. Thorpe <thorpej@and.com>
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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
|
|
|
|
.\" must display the following acknowledgements:
|
|
|
|
.\" This product includes software developed by Jason R. Thorpe
|
|
|
|
.\" for And Communications, http://www.and.com/
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
|
|
|
|
.\"
|
1999-08-27 23:15:48 +00:00
|
|
|
.\" $FreeBSD$
|
1998-05-06 06:51:42 +00:00
|
|
|
.\"
|
2016-10-02 14:42:46 +00:00
|
|
|
.Dd October 2, 2016
|
1997-03-06 15:30:06 +00:00
|
|
|
.Dt CHIO 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm chio
|
|
|
|
.Nd medium changer control utility
|
|
|
|
.Sh SYNOPSIS
|
1998-09-15 07:48:51 +00:00
|
|
|
.Nm
|
1997-03-06 15:30:06 +00:00
|
|
|
.Op Fl f Ar changer
|
|
|
|
.Ar command
|
1998-09-15 07:48:51 +00:00
|
|
|
.Op Fl <flags>
|
1997-03-06 15:30:06 +00:00
|
|
|
.Ar arg1
|
|
|
|
.Ar arg2
|
2000-12-21 15:31:28 +00:00
|
|
|
.Op Ar arg3 Op ...
|
1997-03-06 15:30:06 +00:00
|
|
|
.Sh DESCRIPTION
|
2003-03-24 16:09:07 +00:00
|
|
|
The
|
1998-09-15 07:48:51 +00:00
|
|
|
.Nm
|
2003-03-24 16:09:07 +00:00
|
|
|
utility is used to control the operation of medium changers, such as those
|
|
|
|
found in tape and optical disk jukeboxes.
|
1997-03-06 15:30:06 +00:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl f Ar changer
|
|
|
|
Use the device
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar changer
|
1997-03-06 15:30:06 +00:00
|
|
|
rather than the default device
|
|
|
|
.Pa /dev/ch0 .
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
A medium changer apparatus is made up of
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em elements .
|
2000-09-18 06:09:11 +00:00
|
|
|
There are five element types:
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em picker
|
1997-03-06 15:30:06 +00:00
|
|
|
(medium transport),
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em slot
|
1997-03-06 15:30:06 +00:00
|
|
|
(storage),
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em portal
|
2000-09-18 06:09:11 +00:00
|
|
|
(import/export),
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em drive
|
2000-09-18 06:09:11 +00:00
|
|
|
(data transfer), and
|
|
|
|
.Em voltag
|
2004-07-02 21:04:19 +00:00
|
|
|
(select by volume identifier).
|
|
|
|
The
|
2000-09-18 06:09:11 +00:00
|
|
|
.Em voltag
|
|
|
|
pseudo-element type allows the selection of tapes by their volume tag
|
|
|
|
(typically a barcode on the tape).
|
|
|
|
.Pp
|
|
|
|
In this command description, the shorthand
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em ET
|
1997-03-06 15:30:06 +00:00
|
|
|
will be used to represent an element type, and
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em EU
|
2000-09-18 06:09:11 +00:00
|
|
|
will be used to represent an element unit.
|
|
|
|
For example, to represent the first robotic arm in the changer, the
|
1998-05-06 06:51:42 +00:00
|
|
|
.Em ET
|
|
|
|
would be
|
1997-03-06 15:30:06 +00:00
|
|
|
.Dq picker
|
1998-05-06 06:51:42 +00:00
|
|
|
and the
|
|
|
|
.Em EU
|
|
|
|
would be
|
1997-03-06 15:30:06 +00:00
|
|
|
.Dq 0 .
|
|
|
|
.Sh SUPPORTED COMMANDS
|
1998-05-06 06:51:42 +00:00
|
|
|
.Bl -tag -width indent
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic move Xo
|
1997-03-06 15:30:06 +00:00
|
|
|
.Ar <from ET> <from EU> <to ET> <to EU>
|
2000-09-19 16:15:54 +00:00
|
|
|
.Op Cm inv
|
1998-05-06 06:51:42 +00:00
|
|
|
.Xc
|
|
|
|
Move the media unit from
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <from ET/EU>
|
1997-03-06 15:30:06 +00:00
|
|
|
to
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <to ET/EU> .
|
1997-03-06 15:30:06 +00:00
|
|
|
If the optional modifier
|
2000-09-19 16:15:54 +00:00
|
|
|
.Cm inv
|
1997-03-06 15:30:06 +00:00
|
|
|
is specified, the media unit will be inverted before insertion.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic exchange Xo
|
1997-03-06 15:30:06 +00:00
|
|
|
.Ar <src ET> <src EU> <dst1 ET> <dst1 EU>
|
|
|
|
.Op Ar <dst2 ET> <dst2 ET>
|
2000-09-19 16:15:54 +00:00
|
|
|
.Op Cm inv1
|
|
|
|
.Op Cm inv2
|
1998-05-06 06:51:42 +00:00
|
|
|
.Xc
|
2004-07-02 21:04:19 +00:00
|
|
|
Perform a media unit exchange operation.
|
|
|
|
The media unit in
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <src ET/EU>
|
1997-03-06 15:30:06 +00:00
|
|
|
is moved to
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <dst1 ET/EU>
|
1997-03-06 15:30:06 +00:00
|
|
|
and the media unit previously in
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <dst1 ET/EU>
|
1997-03-06 15:30:06 +00:00
|
|
|
is moved to
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <dst2 ET/EU> .
|
1997-03-06 15:30:06 +00:00
|
|
|
In the case of a simple exchange,
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <dst2 ET/EU>
|
1997-03-06 15:30:06 +00:00
|
|
|
is omitted and the values
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <src ET/EU>
|
1997-03-06 15:30:06 +00:00
|
|
|
are used in their place.
|
|
|
|
The optional modifiers
|
2000-09-19 16:15:54 +00:00
|
|
|
.Cm inv1
|
1997-03-06 15:30:06 +00:00
|
|
|
and
|
2000-09-19 16:15:54 +00:00
|
|
|
.Cm inv2
|
1997-03-06 15:30:06 +00:00
|
|
|
specify whether the media units are to be inverted before insertion into
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <dst1 ET/EU>
|
1997-03-06 15:30:06 +00:00
|
|
|
and
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <dst2 ET/EU>
|
1997-09-13 16:01:53 +00:00
|
|
|
respectively.
|
1997-03-06 15:30:06 +00:00
|
|
|
.Pp
|
|
|
|
Note that not all medium changers support the
|
1998-09-15 07:48:51 +00:00
|
|
|
.Ic exchange
|
1999-06-07 13:53:57 +00:00
|
|
|
operation; the changer must have multiple free pickers or emulate
|
1997-03-06 15:30:06 +00:00
|
|
|
multiple free pickers with transient storage.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic return Xo
|
2000-09-18 06:09:11 +00:00
|
|
|
.Ar <from ET> <from EU>
|
|
|
|
.Xc
|
|
|
|
Return the media unit to its source element.
|
|
|
|
This command will query the status of the specified media unit, and
|
|
|
|
will move it to the element specified in its source attribute.
|
|
|
|
This is a convenient way to return media from a drive or portal
|
|
|
|
to its previous element in the changer.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic position Xo
|
1997-03-06 15:30:06 +00:00
|
|
|
.Ar <to ET> <to EU>
|
2000-09-19 16:15:54 +00:00
|
|
|
.Op Cm inv
|
1998-05-06 06:51:42 +00:00
|
|
|
.Xc
|
1997-03-06 15:30:06 +00:00
|
|
|
Position the picker in front of the element described by
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <to ET/EU> .
|
1997-03-06 15:30:06 +00:00
|
|
|
If the optional modifier
|
2000-09-19 16:15:54 +00:00
|
|
|
.Cm inv
|
1997-03-06 15:30:06 +00:00
|
|
|
is specified, the media unit will be inverted before insertion.
|
|
|
|
.Pp
|
|
|
|
Note that not all changers behave as expected when issued this command.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic params
|
1997-03-06 15:30:06 +00:00
|
|
|
Report the number of slots, drives, pickers, and portals in the changer,
|
|
|
|
and which picker unit the changer is currently configured to use.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic getpicker
|
1997-03-06 15:30:06 +00:00
|
|
|
Report which picker unit the changer is currently configured to use.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic setpicker Xo
|
1997-03-06 15:30:06 +00:00
|
|
|
.Ar <unit>
|
1998-05-06 06:51:42 +00:00
|
|
|
.Xc
|
1997-03-06 15:30:06 +00:00
|
|
|
Configure the changer to use picker
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <unit> .
|
|
|
|
.It Ic ielem Xo
|
|
|
|
.Op Ar <timeout>
|
1998-09-15 07:48:51 +00:00
|
|
|
.Xc
|
2000-09-19 09:46:01 +00:00
|
|
|
Perform an
|
|
|
|
.Em INITIALIZE ELEMENT STATUS
|
2004-07-02 21:04:19 +00:00
|
|
|
operation on the changer.
|
|
|
|
The optional
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <timeout>
|
1998-09-15 07:48:51 +00:00
|
|
|
parameter may be given to specify a timeout in seconds for the
|
2004-07-02 21:04:19 +00:00
|
|
|
operations.
|
|
|
|
This may be used if the operation takes unusually long
|
1998-09-15 07:48:51 +00:00
|
|
|
because of buggy firmware or the like.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic voltag Xo
|
1998-09-15 07:48:51 +00:00
|
|
|
.Op Fl fca
|
|
|
|
.Ar <ET>
|
|
|
|
.Ar <EU>
|
|
|
|
.Op Ar <label>
|
|
|
|
.Op Ar <serial>
|
|
|
|
.Xc
|
2004-07-02 21:04:19 +00:00
|
|
|
Change volume tag for an element in the media changer.
|
|
|
|
This command
|
|
|
|
is only supported by few media changers.
|
|
|
|
If it is not supported by a
|
2003-01-01 18:49:04 +00:00
|
|
|
device, using this command will usually result in an "Invalid Field in
|
1998-09-15 07:48:51 +00:00
|
|
|
CDB" error message on the console.
|
|
|
|
.Pp
|
2001-07-15 07:53:42 +00:00
|
|
|
If the
|
1998-09-15 07:48:51 +00:00
|
|
|
.Fl c
|
|
|
|
flag is specified, the volume tag of the specified element is
|
2004-07-02 21:04:19 +00:00
|
|
|
cleared.
|
|
|
|
If the
|
1998-09-15 07:48:51 +00:00
|
|
|
.Fl f
|
1998-11-30 23:05:38 +00:00
|
|
|
flag is specified, the volume tag is superseded with the specified
|
1998-09-15 07:48:51 +00:00
|
|
|
volume tag even if a volume tag is already defined for the element.
|
|
|
|
It is an error to not specify the
|
|
|
|
.Fl f
|
|
|
|
flag when trying to set a label for an element which already has
|
|
|
|
volume tag information defined.
|
|
|
|
.Pp
|
|
|
|
The command works with the primary volume tag or, if the
|
|
|
|
.Fl a
|
|
|
|
flag is given, with the alternate volume tag.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Ic status Xo
|
1998-09-15 07:48:51 +00:00
|
|
|
.Op Fl vVsSbIa
|
1997-03-06 15:30:06 +00:00
|
|
|
.Op Ar <type>
|
1998-05-06 06:51:42 +00:00
|
|
|
.Xc
|
2004-07-02 21:04:19 +00:00
|
|
|
Report the status of all elements in the changer.
|
|
|
|
If
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <type>
|
1997-03-06 15:30:06 +00:00
|
|
|
is specified, report the status of all elements of type
|
2000-09-19 09:46:01 +00:00
|
|
|
.Ar <type> .
|
1998-09-15 07:48:51 +00:00
|
|
|
.It Fl v
|
2004-07-02 21:04:19 +00:00
|
|
|
Print the primary volume tag for each loaded medium, if any.
|
|
|
|
The volume
|
2000-09-19 09:46:01 +00:00
|
|
|
tag is printed as
|
|
|
|
.Dq <LABEL:SERIAL> .
|
1998-09-15 07:48:51 +00:00
|
|
|
.It Fl V
|
|
|
|
Print the alternate volume tag for each loaded medium, if any.
|
|
|
|
.It Fl s
|
|
|
|
Print the additional sense code and additional sense code qualifier for
|
|
|
|
each element.
|
|
|
|
.It Fl S
|
|
|
|
Print the element source address for each element.
|
|
|
|
.It Fl b
|
2004-07-02 21:04:19 +00:00
|
|
|
Print SCSI bus information for each element.
|
|
|
|
Note that this information
|
1998-09-15 07:48:51 +00:00
|
|
|
is valid only for drives.
|
|
|
|
.It Fl I
|
2004-07-02 21:04:19 +00:00
|
|
|
Print the internal element addresses for each element.
|
|
|
|
The internal
|
|
|
|
element address is not normally used with this driver.
|
|
|
|
It is reported
|
1998-09-15 07:48:51 +00:00
|
|
|
for diagnostic purposes only.
|
|
|
|
.It Fl a
|
|
|
|
Print all additional information (as in
|
2001-08-10 17:35:21 +00:00
|
|
|
.Fl vVsSba ) .
|
1998-05-06 06:51:42 +00:00
|
|
|
.El
|
1997-03-06 15:30:06 +00:00
|
|
|
.Pp
|
|
|
|
The status bits are defined as follows:
|
|
|
|
.Bl -tag -width indent
|
1998-05-06 06:51:42 +00:00
|
|
|
.It FULL
|
1997-03-06 15:30:06 +00:00
|
|
|
Element contains a media unit.
|
1998-05-06 06:51:42 +00:00
|
|
|
.It IMPEXP
|
1997-03-06 15:30:06 +00:00
|
|
|
Media was deposited into element by an outside human operator.
|
1998-05-06 06:51:42 +00:00
|
|
|
.It EXCEPT
|
1997-03-06 15:30:06 +00:00
|
|
|
Element is in an abnormal state.
|
1998-05-06 06:51:42 +00:00
|
|
|
.It ACCESS
|
1997-03-06 15:30:06 +00:00
|
|
|
Media in this element is accessible by a picker.
|
1998-05-06 06:51:42 +00:00
|
|
|
.It EXENAB
|
1998-06-04 21:06:07 +00:00
|
|
|
Element supports passing media (exporting) to an outside human operator.
|
1998-05-06 06:51:42 +00:00
|
|
|
.It INENAB
|
1997-03-06 15:30:06 +00:00
|
|
|
Element supports receiving media (importing) from an outside human operator.
|
|
|
|
.El
|
2016-10-02 14:42:46 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Bl -tag -width CHANGER
|
|
|
|
.It Ev CHANGER
|
|
|
|
The default changer may be overridden by setting this environmental
|
|
|
|
variable to the desired changer device.
|
|
|
|
.El
|
2005-01-16 16:41:59 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /dev/ch0 -compact
|
|
|
|
.It Pa /dev/ch0
|
|
|
|
default changer device
|
|
|
|
.El
|
1997-03-06 15:30:06 +00:00
|
|
|
.Sh EXAMPLES
|
1998-05-06 06:51:42 +00:00
|
|
|
.Bl -tag -width indent
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Li chio move slot 3 drive 0
|
1998-05-06 06:51:42 +00:00
|
|
|
Move the media in slot 3 (fourth slot) to drive 0 (first drive).
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Li chio move voltag VOLUME01 drive 0
|
2000-09-18 06:09:11 +00:00
|
|
|
Move the media with the barcode VOLUME01 to drive 0 (first drive).
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Li chio return drive 0
|
2000-09-18 06:09:11 +00:00
|
|
|
Remove the tape from drive 0 (first drive) and return it to its original
|
|
|
|
location in the rack.
|
2000-09-19 09:46:01 +00:00
|
|
|
.It Li chio setpicker 2
|
1998-05-06 06:51:42 +00:00
|
|
|
Configure the changer to use picker 2 (third picker) for operations.
|
|
|
|
.El
|
1997-03-06 15:30:06 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mt 1 ,
|
2000-11-15 16:44:24 +00:00
|
|
|
.Xr mount 8
|
1998-03-19 07:26:37 +00:00
|
|
|
.Sh AUTHORS
|
2000-11-22 09:23:54 +00:00
|
|
|
.An -nosplit
|
1997-03-06 15:30:06 +00:00
|
|
|
The
|
1998-05-06 06:51:42 +00:00
|
|
|
.Nm
|
1998-03-19 07:26:37 +00:00
|
|
|
program and SCSI changer driver were written by
|
2014-06-20 09:40:43 +00:00
|
|
|
.An Jason R. Thorpe Aq Mt thorpej@and.com
|
2000-11-22 09:23:54 +00:00
|
|
|
for And Communications,
|
|
|
|
.Pa http://www.and.com/ .
|
2000-11-10 17:46:15 +00:00
|
|
|
.Pp
|
1998-09-15 07:48:51 +00:00
|
|
|
Additional work by
|
2014-06-20 09:40:43 +00:00
|
|
|
.An Hans Huebner Aq Mt hans@artcom.de
|
2000-11-10 17:46:15 +00:00
|
|
|
and
|
2014-06-20 09:40:43 +00:00
|
|
|
.An Steve Gunn Aq Mt csg@waterspout.com .
|