1224c8a5bSJoerg Wunsch.\" $NetBSD: $ 2224c8a5bSJoerg Wunsch.\" 3224c8a5bSJoerg Wunsch.\" Copyright (c) 1996 Jason R. Thorpe <thorpej@and.com> 4224c8a5bSJoerg Wunsch.\" All rights reserved. 5224c8a5bSJoerg Wunsch.\" 6224c8a5bSJoerg Wunsch.\" Redistribution and use in source and binary forms, with or without 7224c8a5bSJoerg Wunsch.\" modification, are permitted provided that the following conditions 8224c8a5bSJoerg Wunsch.\" are met: 9224c8a5bSJoerg Wunsch.\" 1. Redistributions of source code must retain the above copyright 10224c8a5bSJoerg Wunsch.\" notice, this list of conditions and the following disclaimer. 11224c8a5bSJoerg Wunsch.\" 2. Redistributions in binary form must reproduce the above copyright 12224c8a5bSJoerg Wunsch.\" notice, this list of conditions and the following disclaimer in the 13224c8a5bSJoerg Wunsch.\" documentation and/or other materials provided with the distribution. 14224c8a5bSJoerg Wunsch.\" 3. All advertising materials mentioning features or use of this software 15224c8a5bSJoerg Wunsch.\" must display the following acknowledgements: 16224c8a5bSJoerg Wunsch.\" This product includes software developed by Jason R. Thorpe 17224c8a5bSJoerg Wunsch.\" for And Communications, http://www.and.com/ 18224c8a5bSJoerg Wunsch.\" 4. The name of the author may not be used to endorse or promote products 19224c8a5bSJoerg Wunsch.\" derived from this software without specific prior written permission. 20224c8a5bSJoerg Wunsch.\" 21224c8a5bSJoerg Wunsch.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22224c8a5bSJoerg Wunsch.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23224c8a5bSJoerg Wunsch.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24224c8a5bSJoerg Wunsch.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25224c8a5bSJoerg Wunsch.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26224c8a5bSJoerg Wunsch.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27224c8a5bSJoerg Wunsch.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28224c8a5bSJoerg Wunsch.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29224c8a5bSJoerg Wunsch.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30224c8a5bSJoerg Wunsch.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31224c8a5bSJoerg Wunsch.\" SUCH DAMAGE. 32224c8a5bSJoerg Wunsch.\" 33224c8a5bSJoerg Wunsch.Dd April 2, 1996 34224c8a5bSJoerg Wunsch.Dt CHIO 1 35224c8a5bSJoerg Wunsch.Os 36224c8a5bSJoerg Wunsch.Sh NAME 37224c8a5bSJoerg Wunsch.Nm chio 38224c8a5bSJoerg Wunsch.Nd medium changer control utility 39224c8a5bSJoerg Wunsch.Sh SYNOPSIS 40224c8a5bSJoerg Wunsch.Nm chio 41224c8a5bSJoerg Wunsch.Op Fl f Ar changer 42224c8a5bSJoerg Wunsch.Ar command 43224c8a5bSJoerg Wunsch.Ar arg1 44224c8a5bSJoerg Wunsch.Ar arg2 45224c8a5bSJoerg Wunsch.Oo 46224c8a5bSJoerg Wunsch.Ar arg3 Oo ... 47224c8a5bSJoerg Wunsch.Oc 48224c8a5bSJoerg Wunsch.Oc 49224c8a5bSJoerg Wunsch.Sh DESCRIPTION 50224c8a5bSJoerg Wunsch.Nm Chio 51224c8a5bSJoerg Wunschis used to control the operation of medium changers, such as those found 52224c8a5bSJoerg Wunschin tape and optical disk jukeboxes. 53224c8a5bSJoerg Wunsch.Pp 54224c8a5bSJoerg WunschThe options are as follows: 55224c8a5bSJoerg Wunsch.Bl -tag -width indent 56224c8a5bSJoerg Wunsch.It Fl f Ar changer 57224c8a5bSJoerg WunschUse the device 58224c8a5bSJoerg Wunsch.Pa changer 59224c8a5bSJoerg Wunschrather than the default device 60224c8a5bSJoerg Wunsch.Pa /dev/ch0 . 61224c8a5bSJoerg Wunsch.El 62224c8a5bSJoerg Wunsch.Pp 63224c8a5bSJoerg WunschThe default changer may be overridden by setting the environment variable 64224c8a5bSJoerg Wunsch.Nm CHANGER 65224c8a5bSJoerg Wunschto the desired changer device. 66224c8a5bSJoerg Wunsch.Pp 67224c8a5bSJoerg WunschA medium changer apparatus is made up of 68224c8a5bSJoerg Wunsch.Pa elements . 69224c8a5bSJoerg WunschThere are four element types: 70224c8a5bSJoerg Wunsch.Pa picker 71224c8a5bSJoerg Wunsch(medium transport), 72224c8a5bSJoerg Wunsch.Pa slot 73224c8a5bSJoerg Wunsch(storage), 74224c8a5bSJoerg Wunsch.Pa portal 75224c8a5bSJoerg Wunsch(import/export), and 76224c8a5bSJoerg Wunsch.Pa drive 77224c8a5bSJoerg Wunsch(data transfer). In this command description, the shorthand 78224c8a5bSJoerg Wunsch.Nm ET 79224c8a5bSJoerg Wunschwill be used to represent an element type, and 80224c8a5bSJoerg Wunsch.Nm EU 81224c8a5bSJoerg Wunschwill be used to represent an element unit. For example, to represent 82224c8a5bSJoerg Wunschthe first robotic arm in the changer, the ET would be 83224c8a5bSJoerg Wunsch.Dq picker 84224c8a5bSJoerg Wunschand the EU would be 85224c8a5bSJoerg Wunsch.Dq 0 . 86224c8a5bSJoerg Wunsch.Pp 87224c8a5bSJoerg Wunsch.Sh SUPPORTED COMMANDS 88224c8a5bSJoerg Wunsch.Nm chio move 89224c8a5bSJoerg Wunsch.Ar <from ET> <from EU> <to ET> <to EU> 90224c8a5bSJoerg Wunsch.Op Ar inv 91224c8a5bSJoerg Wunsch.Pp 92224c8a5bSJoerg WunschMoves the media unit from 93224c8a5bSJoerg Wunsch.Pa <from ET/EU> 94224c8a5bSJoerg Wunschto 95224c8a5bSJoerg Wunsch.Pa <to ET/EU> . 96224c8a5bSJoerg WunschIf the optional modifier 97224c8a5bSJoerg Wunsch.Pa inv 98224c8a5bSJoerg Wunschis specified, the media unit will be inverted before insertion. 99224c8a5bSJoerg Wunsch.Pp 100224c8a5bSJoerg Wunsch.Nm chio exchange 101224c8a5bSJoerg Wunsch.Ar <src ET> <src EU> <dst1 ET> <dst1 EU> 102224c8a5bSJoerg Wunsch.Op Ar <dst2 ET> <dst2 ET> 103224c8a5bSJoerg Wunsch.Op Ar inv1 104224c8a5bSJoerg Wunsch.Op Ar inv2 105224c8a5bSJoerg Wunsch.Pp 106224c8a5bSJoerg WunschPerforms a media unit exchange operation. The media unit in 107224c8a5bSJoerg Wunsch.Pa <src ET/EU> 108224c8a5bSJoerg Wunschis moved to 109224c8a5bSJoerg Wunsch.Pa <dst1 ET/EU> 110224c8a5bSJoerg Wunschand the media unit previously in 111224c8a5bSJoerg Wunsch.Pa <dst1 ET/EU> 112224c8a5bSJoerg Wunschis moved to 113224c8a5bSJoerg Wunsch.Pa <dst2 ET/EU> . 114224c8a5bSJoerg WunschIn the case of a simple exchange, 115224c8a5bSJoerg Wunsch.Pa <dst2 ET/EU> 116224c8a5bSJoerg Wunschis omitted and the values 117224c8a5bSJoerg Wunsch.Pa <src ET/EU> 118224c8a5bSJoerg Wunschare used in their place. 119224c8a5bSJoerg WunschThe optional modifiers 120224c8a5bSJoerg Wunsch.Pa inv1 121224c8a5bSJoerg Wunschand 122224c8a5bSJoerg Wunsch.Pa inv2 123224c8a5bSJoerg Wunschspecify whether the media units are to be inverted before insertion into 124224c8a5bSJoerg Wunsch.Pa <dst1 ET/EU> 125224c8a5bSJoerg Wunschand 126224c8a5bSJoerg Wunsch.Pa <dst2 ET/EU> 127224c8a5bSJoerg Wunschrespecitively. 128224c8a5bSJoerg Wunsch.Pp 129224c8a5bSJoerg WunschNote that not all medium changers support the 130224c8a5bSJoerg Wunsch.Nm exchange 131224c8a5bSJoerg Wunschoperation; The changer must have multiple free pickers or emulate 132224c8a5bSJoerg Wunschmultiple free pickers with transient storage. 133224c8a5bSJoerg Wunsch.Pp 134224c8a5bSJoerg Wunsch.Nm chio position 135224c8a5bSJoerg Wunsch.Ar <to ET> <to EU> 136224c8a5bSJoerg Wunsch.Op Ar inv 137224c8a5bSJoerg Wunsch.Pp 138224c8a5bSJoerg WunschPosition the picker in front of the element described by 139224c8a5bSJoerg Wunsch.Pa <to ET/EU> . 140224c8a5bSJoerg WunschIf the optional modifier 141224c8a5bSJoerg Wunsch.Pa inv 142224c8a5bSJoerg Wunschis specified, the media unit will be inverted before insertion. 143224c8a5bSJoerg Wunsch.Pp 144224c8a5bSJoerg WunschNote that not all changers behave as expected when issued this command. 145224c8a5bSJoerg Wunsch.Pp 146224c8a5bSJoerg Wunsch.Nm chio params 147224c8a5bSJoerg Wunsch.Pp 148224c8a5bSJoerg WunschReport the number of slots, drives, pickers, and portals in the changer, 149224c8a5bSJoerg Wunschand which picker unit the changer is currently configured to use. 150224c8a5bSJoerg Wunsch.Pp 151224c8a5bSJoerg Wunsch.Nm chio getpicker 152224c8a5bSJoerg Wunsch.Pp 153224c8a5bSJoerg WunschReport which picker unit the changer is currently configured to use. 154224c8a5bSJoerg Wunsch.Pp 155224c8a5bSJoerg Wunsch.Nm chio setpicker 156224c8a5bSJoerg Wunsch.Ar <unit> 157224c8a5bSJoerg Wunsch.Pp 158224c8a5bSJoerg WunschConfigure the changer to use picker 159224c8a5bSJoerg Wunsch.Pa <unit> . 160224c8a5bSJoerg Wunsch.Pp 161224c8a5bSJoerg Wunsch.Nm chio status 162224c8a5bSJoerg Wunsch.Op Ar <type> 163224c8a5bSJoerg Wunsch.Pp 164224c8a5bSJoerg WunschReport the status of all elements in the changer. If 165224c8a5bSJoerg Wunsch.Pa <type> 166224c8a5bSJoerg Wunschis specified, report the status of all elements of type 167224c8a5bSJoerg Wunsch.Pa <type> . 168224c8a5bSJoerg Wunsch.Pp 169224c8a5bSJoerg WunschThe status bits are defined as follows: 170224c8a5bSJoerg Wunsch.Bl -tag -width indent 171224c8a5bSJoerg Wunsch.It Nm FULL 172224c8a5bSJoerg WunschElement contains a media unit. 173224c8a5bSJoerg Wunsch.It Nm IMPEXP 174224c8a5bSJoerg WunschMedia was deposited into element by an outside human operator. 175224c8a5bSJoerg Wunsch.It Nm EXCEPT 176224c8a5bSJoerg WunschElement is in an abnormal state. 177224c8a5bSJoerg Wunsch.It Nm ACCESS 178224c8a5bSJoerg WunschMedia in this element is accessible by a picker. 179224c8a5bSJoerg Wunsch.It Nm EXENAB 180224c8a5bSJoerg WunschElement supports passing media (exporting) to an outsite human operator. 181224c8a5bSJoerg Wunsch.It Nm INENAB 182224c8a5bSJoerg WunschElement supports receiving media (importing) from an outside human operator. 183224c8a5bSJoerg Wunsch.El 184224c8a5bSJoerg Wunsch.Pp 185224c8a5bSJoerg Wunsch.Sh EXAMPLES 186224c8a5bSJoerg Wunsch.Nm chio move slot 3 drive 0 187224c8a5bSJoerg Wunsch.Pp 188224c8a5bSJoerg WunschMoves the media in slot 3 (fourth slot) to drive 0 (first drive). 189224c8a5bSJoerg Wunsch.Pp 190224c8a5bSJoerg Wunsch.Nm chio setpicker 2 191224c8a5bSJoerg WunschConfigures the changer to use picker 2 (third picker) for operations. 192224c8a5bSJoerg Wunsch.Pp 193224c8a5bSJoerg Wunsch.Sh FILES 194224c8a5bSJoerg Wunsch/dev/ch0 - default changer device 195224c8a5bSJoerg Wunsch.Sh SEE ALSO 196224c8a5bSJoerg Wunsch.Xr mt 1 , 197224c8a5bSJoerg Wunsch.Xr mount 8 . 198224c8a5bSJoerg Wunsch.Sh AUTHOR 199224c8a5bSJoerg WunschThe 200224c8a5bSJoerg Wunsch.Nm chio 201224c8a5bSJoerg Wunschprogram and SCSI changer driver were written by Jason R. Thorpe 202224c8a5bSJoerg Wunsch<thorpej@and.com> for And Communications, http://www.and.com/ 203