1 .\" $NetBSD: scsictl.8,v 1.24 2007/01/23 20:34:17 wiz Exp $
3 .\" Copyright (c) 1998, 2002 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 a program to manipulate SCSI devices and busses
47 allows a user or system administrator to issue commands to and otherwise
48 control SCSI devices and busses.
49 It is used by specifying a device or bus to manipulate,
50 the command to perform, and any arguments the command may require.
52 determines if the specified device is an actual device or a SCSI bus
53 automatically, and selects the appropriate command set.
57 issues a SCSI command to the device directly, any returned sense information
60 and displayed to the standard output.
62 The following commands are supported for SCSI devices:
67 .Op block|byte|physical
69 Read the primary and/or grown defect lists from the specified device
70 in block, byte from index, or physical sector format.
71 The default is to return both the primary and grown defect lists
72 in physical sector format.
73 This command is only supported on direct access devices.
81 (Low level) format the named device.
84 parameter is provided, the device geometry will be modified to
87 If this parameter is different form the Current or Default Mode Page 3
88 parameters, the device will update Mode Page 3 at the successful
89 completion of the Format.
90 Device geometry may change as a result of using a new device
94 parameter is specified, the Defect List on the drive will revert to
95 the original primary defect list created at the time of manufacture
97 The drive will usually recertify itself during the Format
98 and add any other defective blocks to the new Defect List.
99 Some disks may not support the ability to change the blocksize and
100 may enter a Degraded Mode when fed a Format command of this type.
101 If this happens the standard recovery for the drive requires issuing
102 a correct Format command, i.e. one without the blocksize parameter.
106 parameter is also specified, the disk is instructed to return from the
107 format command right away.
108 It continues to format, and every ten seconds
110 issues a TEST UNIT READY command to check the associated sense data.
111 This associated sense data has a progress indicator which indicates
112 how far the format is progressing.
113 Note well that most SCSI disk drives prior to
114 a few years ago do not support this option.
118 Identify the specified device, displaying the device's SCSI
119 bus, target, and lun, as well as the device's vendor, product,
120 and revision strings.
130 command to the device, adding the specified blocks to the
132 This command is only supported on direct access devices.
138 command to the device to release a reservation on it.
144 command to the device to place a reservation on it.
149 This command is only supported for devices which support the
157 command to the device.
158 This is useful typically only for disk devices.
164 command to the device.
165 This is useful typically only for disk devices.
171 command to the device.
172 This is useful for generating current device status.
176 Returns basic cache parameters for the device.
182 Set basic cache parameters for the device.
183 The cache may be disabled
185 the read cache enabled
187 the write cache enabled
189 or both read and write cache enabled
191 If the drive's cache parameters are savable, specifying
193 after the cache enable state will cause the parameters to be saved in
194 non-volatile storage.
198 Explicitly flushes the write cache.
203 Set the highest speed that the optical drive should use for reading
205 The units are multiples of a single speed CDROM (150 KB/s).
206 Specify 0 to use the drive's fastest speed.
208 The following commands are supported for SCSI busses:
213 This command is only supported if the host adapter supports the
221 Scan the SCSI bus for devices.
222 This is useful if a device was not connected or powered
223 on when the system was booted.
228 arguments specify which SCSI target and lun on the bus is to be scanned.
229 Either may be wildcarded by specifying the keyword
238 Detach the specified device from the bus.
239 Useful if a device is powered down after use.
244 arguments have the same meaning as for the
246 command, and may also be wildcarded.
248 When scanning the SCSI bus, information about newly recognized devices
249 is printed to console.
250 No information is printed for already probed devices.
253 - for commands operating on SCSI busses
268 command first appeared in
273 command was written by Jason R. Thorpe of the Numerical Aerospace Simulation
274 Facility, NASA Ames Research Center.