summaryrefslogtreecommitdiff
path: root/bin/chio/chio.1
blob: 31c408ced85c196ac5df9b55f0cdc017402587f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
.\"	$OpenBSD: chio.1,v 1.18 2002/02/11 18:43:50 mpech Exp $
.\"	$NetBSD: chio.1,v 1.1.1.1 1996/04/03 00:34:38 thorpej Exp $
.\"
.\" 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 acknowledgments:
.\"	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.
.\"
.Dd April 2, 1996
.Dt CHIO 1
.Os
.Sh NAME
.Nm chio
.Nd medium changer control utility
.Sh SYNOPSIS
.Nm chio
.Op Fl f Ar changer
.Ar command
.Ar arg1
.Ar arg2
.Oo
.Ar arg3 Oo Ar ...
.Oc
.Oc
.Sh DESCRIPTION
The
.Nm
utility 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 Ds
.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
.Ev CHANGER
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
.Sq ET
will be used to represent an element type, and
.Sq EU
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
.Cm chio move
.Aq Ar from ET
.Aq Ar from EU
.Aq Ar to ET
.Aq Ar to EU
.Op Ar inv
.Pp
Moves the media unit from
.Aq Ar from ET/EU
to
.Aq Ar to ET/EU .
If the optional modifier
.Pa inv
is specified, the media unit will be inverted before insertion.
.Pp
.Cm chio exchange
.Aq Ar src ET
.Aq Ar src EU
.Aq Ar dst1 ET
.Aq Ar dst1 EU
.Oo
.Aq Ar dst2\& ET
.Aq Ar dst2\& EU
.Oc
.Op Ar inv1
.Op Ar inv2
.Pp
Performs a media unit exchange operation.
The media unit in
.Aq Ar src ET/EU
is moved to
.Aq Ar dst1 ET/EU
and the media unit previously in
.Aq Ar dst1 ET/EU
is moved to
.Aq Ar dst2 ET/EU .
In the case of a simple exchange,
.Aq Ar dst2 ET/EU
is omitted and the values
.Aq Ar src ET/EU
are used in their place.
The optional modifiers
.Ar inv1
and
.Ar inv2
specify whether the media units are to be inverted before insertion into
.Aq Ar dst1 ET/EU
and
.Aq Ar dst2 ET/EU
respectively.
.Pp
Note that not all medium changers support the
.Cm exchange
operation; the changer must have multiple free pickers or emulate
multiple free pickers with transient storage.
.Pp
.Cm chio position
.Aq Ar to ET
.Aq Ar to EU
.Op Ar inv
.Pp
Position the picker in front of the element described by
.Aq Ar to ET/EU .
If the optional modifier
.Ar 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
.Cm chio params
.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
.Cm chio getpicker
.Pp
Report which picker unit the changer is currently configured to use.
.Pp
.Cm chio setpicker
.Aq Ar unit
.Pp
Configure the changer to use picker
.Aq Ar unit .
.Pp
.Cm chio status
.Op Aq Ar type
.Pp
Report the status of all elements in the changer.
If
.Aq Ar type
is specified, report the status of all elements of type
.Aq Ar type .
.Pp
The status bits are defined as follows:
.Bl -tag -width indent
.It Dv FULL
Element contains a media unit.
.It Dv IMPEXP
Media was deposited into element by an outside human operator.
.It Dv EXCEPT
Element is in an abnormal state.
.It Dv ACCESS
Media in this element is accessible by a picker.
.It Dv EXENAB
Element supports passing media (exporting) to an outside human operator.
.It Dv INENAB
Element supports receiving media (importing) from an outside human operator.
.El
.Sh EXAMPLES
.Cm # chio move slot 3 drive 0
.Pp
Moves the media in slot 3 (fourth slot) to drive 0 (first drive).
.Pp
.Cm # chio setpicker 2
.Pp
Configures the changer to use picker 2 (third picker) for operations.
.Sh FILES
.Bl -tag -width /dev/ch0 -compact
.It Pa /dev/ch0
default changer device
.El
.Sh SEE ALSO
.Xr mt 1 ,
.Xr ch 4
.Sh AUTHORS
The
.Nm
program and
.Tn SCSI
changer driver were written by Jason R. Thorpe
<thorpej@and.com> for And Communications (http://www.and.com/).