scsimgr.1m (2010 09)
s
scsimgr(1M) scsimgr(1M)
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 statistics for legacy LUN /dev/rdsk/c0t0d0
:
scsimgr get_stat -D /dev/rdsk/c0t0d0
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:
scsimgr clear_stat -C fc -I 1 all_tp
To get basic global status and information:
HP-UX 11i Version 3: September 2010 − 23 − Hewlett-Packard Company 23