HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

s
scsictl(1M) scsictl(1M)
separated by semicolon-blank (
; ) or newline.
-t tgtid ctrl
Specify tgtid as the SCSI target parameter on which operation needs to be initiated. The
valid range of tgtid value is between 0 and 15. In agile addressing the tgtid is the port_id
returned by the command
scsimgr get_info -H target_path. See intro(7) for infor-
mation about agile addressing and scsimgr(1M). The commands supported with the
-t
option are domain_val, get_bus_parms
, get_target_parms
, reset_target
and reset_bus . See the -c option for explanations of these commands. ctrl specifies
the special file of a parallel SCSI controller node.
RETURN VALUE
scsictl exits with one of the following values:
0 Operation successful.
>0 Error condition occurred.
DIAGNOSTICS
Diagnostic messages are generally self-explanatory.
EXAMPLES
To display all the mode parameters, turn immediate_report
on, and redisplay the value of
immediate_report:
scsictl -a -m ir=1 -m ir /dev/rdsk/c0t6d0
producing the following output:
immediate_report = 0; queue_depth = 8; immediate_report = 1
The same operation with labels suppressed:
scsictl -aq -m ir=1 -m ir /dev/rdsk/c0t6d0
produces the following output:
0; 8; 1
To clear persistent reservation from a device:
scsictl -p pr_clear key /dev/rdsk/c0t6d0
To add a supported SCSI card online at 2/4.0.0:
scsictl -o ola_params 2/4.0.0 -1 -1 -1 -1
To issue a get_target_parms
command on a SCSI target with a tgtid of 2 using /dev/c8xx2 as the
ctrl device:
scsictl -t 2 -c get_target_parms /dev/c8xx2
To display limits and negotiable parameters of a device and then reset the SCSI target:
scsictl -c get_lun_parms -c reset_target /dev/rdsk/c0t6d0
WARNINGS
Not all devices support all mode parameters and commands listed above. Changing a mode parameter may
have no effect on such a device.
Issuing a command that is not supported by a device can cause an error message to be generated.
scsictl is not supported on sequential-access devices using the tape driver.
The immediate_report mode applies to the entire device; the section number of the device argument
is ignored.
To aid recovery, immediate reporting is not used for writes of file system data structures that are main-
tained by the operating system, writes to a hard disk (but not a magneto-optical device) through the
character-device interface, or writes to regular files that the user has made synchronous with
O_SYNC or
O_DSYNC (see open(2) and fcntl(2)).
HP-UX 11i Version 3: February 2007 3 Hewlett-Packard Company 307