SCSICTL(8)

NAME
scsictl - a program to manipulate SCSI devices and busses

SYNOPSIS
scsictl device command [ arg [...]]

DESCRIPTION
scsictl allows a user or system administrator to issue commands to and otherwise control SCSI devices and busses. It is used by specifying a device or bus to manipulate, the command to perform, and any arguments the command may require. scsictl determines if the specified device is an actual device or a SCSI bus automatically, and selects the appropriate command set.

For commands which scsictl issues a SCSI command to the device directly, any returned sense information will be decoded by scsictl and displayed to the standard output.

DEVICE COMMANDS
The following commands are supported for SCSI devices:

identify

Identify the specified device, displaying the device's SCSI bus, target, and lun, as well as the device's vendor, product, and revision strings.

reassign blkno [blkno [...]]

Issues a REASSIGN BLOCKS command to the device, adding the specified blocks to the grown defect list. This command is only supported on direct access devices.

reset

Reset the device. This command is only supported for devices which support the SCIOCRESET ioctl.

BUS COMMANDS
The following commands are supported for SCSI busses:

reset

Reset the SCSI bus. This command is only supported if the host adapter supports the SCBUSIORESET ioctl.

scan target lun

Scan the SCSI bus for devices. This is useful if a device was not connected or powered on when the system was booted. The target and lun arguments specify which SCSI target and lun on the bus is to be scanned. Either may be wildcarded by specifying “any”.

SEE ALSO
ioctl(2), cd(4), ch(4), sd(4), se(4), ss(4), st(4), uk(4)

AUTHOR
The scsictl command was written by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, NASA Ames Research Center.

HISTORY
The scsictl command first appeared in NetBSD 1.4.