Overview: The Next Generation Mass Storage Stack (September 2009)

Table Of Contents
49
Appendix C: Using scsimgr
This appendix presents the syntax of the scsimgr command, a partial list of available operations, and some use
cases. It is not intended to be a complete description of the scsimgr command. For information on the scsimgr
command capabilities, see scsimgr(1M) and the white paper described in For More
Information.
Introduction to scsimgr
The scsimgr command manages and troubleshoots SCSI objects and the mass storage subsystem. The command
syntax is as follows:
scsimgr [-fpv] command [-d driver] [identifier] [keyword]... [argument]...
-f Forces the execution of commands without user input. Without –f, scsimgr prompts for confirmation
before executing a disruptive or destructive operation.
-p Displays parsable output. The scsimgr output is condensed to one line with output fields separated by a
colon (:).
-v Displays verbose output.
command
Selects the operation to perform.
-d driver
Specifies the name of the driver for driver-specific commands.
identifier
Specifies the SCSI object on which the command applies. The identifier can be one of the following:
–D dsf The character DSF for a LUN or SCSI controller. For a SCSI controller, dsf must be a
persistent DSF.
-H hw_path The hardware path of a LUN or SCSI controller. This can be either a lunpath hardware
path, a LUN hardware path, or a target path.
-C class –I instance
The device class and instance number of a LUN, LUN path, target path, or SCSI
controller.
-N scope A scope of objects. This selects a subset of mass storage objects on the system and
applies only to the commands affecting attributes (get_attr, set_attr, ddr_add,
and ddr_del). The scope argument has the following form:
/escsi/driver[/pdt[/vid[/pid[/rev]]]]
Where
driver is the name of a driver, such as esdisk.
pdt is the peripheral device type in hexadecimal, as returned by a SCSI inquiry.
vid is the vendor identifier as returned by a SCSI inquiry, such as "HP ".
pid is the product identifier as returned by a SCSI inquiry, such as "SDLT600 ".
rev is the product revision as returned by a SCSI inquiry, such as "HP06".