scsimgr.1m (2011 03)
s
scsimgr(1M) scsimgr(1M)
scsimgr [-v] get_attr [ identifier |
all_lun | all_ctlr | all_tport |
all_encl | all_ddr][current][
default][saved]
[
nonsettable | settable |{ -a
attr... -a attr }]
scsimgr -v get_attr [ identifier {
all_lpt | all_tp | all_ddr}]
[
current][default][saved
]
[
nonsettable | settable |{ -a
attr... -a attr }]
scsimgr [-v] get_attr -A alias all_tp
[ current | default |saved][
-a attr... -a attr]
scsimgr -p get_attr [ identifier |
all_lpt | all_ctlr | all_tport |
all_encl | all_ddr ]
[ current | default | saved ] -a
attr... -a attr
scsimgr -p get_attr [ identifier {
all_lpt | all_tp | all_ddr }]
[
current | default | saved ] -a
attr... -a attr
Note: identifier identifies either a LUN, LUN path, target path, target port, enclosure,
alias, SCSI HBA controller, or a settable attribute scope for a driver. Alias is a target
port alias previously assigned by the
tport_alias attribute of a target path.
The user can specify the following command to get the current and default value of a sett-
able attribute:
scsimgr get_attr -D /dev/rdisk/disk0 current default settable
But with the -p option, only one attribute value can be specified; either current
(by
default),
saved,ordefault, and a list of attributes is required.
Note: When
scsimgr -p get_attr is invoked for a group of objects, in order to
correlate the output with the objects, an object identifier must be included in the list of
attributes to display.
For example, in the following command the user displays WorldWide Identifier (attribute
wwid) and the SCSI stack internal state (attribute state) for all LUNs. If the user does
not include a LUN identifier as one of the attributes to display, it is not possible to deter-
mine which values corresponding to which LUN.
scsimgr -p get_attr all_lun -a wwid -a state
0x600508b3009097f01499645fe5250058:UNOPEN
0x600508b3009097f0349fd1c4c28f005a:UNOPEN
0x600508b3009097f0a9d6537f53850059:UNOPEN
0x600508b3009097f0a70b09419a860057:UNOPEN
0x600508b3009097f0421745217a6c0056:UNOPEN
0x000c50fffe5fe81e:ONLINE
However, if the user includes the device special file (attribute device_file) in the list
of attributes as shown below, it is possible to determine which values correspond to which
LUN.
scsimgr -p get_attr all_lun -a device_file -a wwid -a state
/dev/rdisk/disk13:0x600508b3009097f01499645fe5250058:UNOPEN
/dev/rdisk/disk14:0x600508b3009097f0349fd1c4c28f005a:UNOPEN
/dev/rdisk/disk15:0x600508b3009097f0a9d6537f53850059:UNOPEN
/dev/rdisk/disk16:0x600508b3009097f0a70b09419a860057:UNOPEN
/dev/rdisk/disk17:0x600508b3009097f0421745217a6c0056:UNOPEN
/dev/rdisk/disk18:0x000c50fffe5fe81e:ONLINE
The user has the flexibility to choose which identifier to display along with the attribute
values. The following attributes can be used to identify an object depending on the SCSI
object:
HP-UX 11i Version 3: March 2011 − 9 − Hewlett-Packard Company 9