HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
scsimgr(1M) scsimgr(1M)
>0 Error condition occurred.
When an error condition occurs, scsimgr will display an error message specifying the nature and/or the
cause of the error conditions.
However, for operations supporting scriptable output (when the
-p option is used), no errors will be
printed if the error condition only affects one or more of the output fields.
scsimgr will leave the affected
field(s) empty and exit with a non-zero value.
In the following example, the max_io attribute is not a valid LUN attribute. In the displayed output,
scsimgr leaves the second field corresponding to max_io empty and exits with EFAULT(14).
# scsimgr -p get_attr -D /dev/rdisk/disk20 -a wwid -a max_io -a max_q_depth
0x20000020371972eb::16
EXAMPLES
To display scsimgr general usage:
scsimgr -h
To display scsimgr usage for get_attr command:
scsimgr -h get_attr
To figure out the SCSI object on which to invoke the command (note that /dev/rdisk/disk961
is the
character device special file (DSF) in this example):
ioscan -kfnN
Class I H/W Path Driver S/W State H/W Type Desc
=======================================================================
disk 961 64000/0xfa00/0xf9 esdisk CLAIMED DEVICE HP HSV101
/dev/disk/disk961 /dev/rdisk/disk961
To get basic global statistics:
scsimgr get_stat
To get all global statistics:
scsimgr -v get_stat
To display global statistics for driver esdisk:
scsimgr -v get_stat -d esdisk
To get basic statistics for disk0:
scsimgr get_stat -D /dev/rdisk/disk0
To get basic statistics for all LUN paths of disk0:
scsimgr get_stat -D /dev/rdisk/disk0 all_lpt
To get all statistics for the SCSI controller with class fc and instance number 1:
scsimgr -v get_stat -C fc -I 1
To get all the statistics for target path with the hardware path of
0/4/1/0.0x60060b000014f45a0001000000000011
:
scsimgr -v get_stat -H 0/4/1/0.0x60060b000014f45a0001000000000011
To get driver esdisk specific statistics for disk0:
scsimgr get_stat -D /dev/rdisk/disk0 -d esdisk
To clear global statistics:
scsimgr clear_stat
To clear statistic for the SCSI controller with class fc and instance number 1:
scsimgr clear_stat -C fc -I 1
To clear statistic for all target paths of the SCSI controller with class fc and instance number 1:
322 Hewlett-Packard Company − 14 − HP-UX 11i Version 3: February 2007