scsimgr SCSI Management and Diagnostics utility on HP-UX 11i v3 (March 2008)
LUN path : lunpath5
Class = lunpath
Instance = 5
Hardware path = 0/3/1/0.0x21000020371972eb.0x0
SCSI transport protocol = fibre_channel
State = UNOPEN
Last Open or Close state = ACTIVE
LUN path : lunpath12
Class = lunpath
Instance = 12
Hardware path = 0/4/1/0.0x21000020371972eb.0x0
SCSI transport protocol = fibre_channel
State = UNOPEN
Last Open or Close state = ACTIVE
Displaying attributes
Most of the information on SCSI objects is managed via attributes, which can be queried individually
and can be displayed in a scriptable format. This greatly simplifies the task of scripts, and other
applications, which query information about SCSI objects. The following examples illustrate the
flexibility provided by attributes for applications retrieving information on SCSI objects.
Notes:
• Refer to the scsimgr(1M) manpage for information on how to obtain all attributes of a SCSI
object.
• The same information can be accessed via web-based GUI such as fsweb or HP SMH
(System Management Homepage).
Displaying the LUN id of a lunpath
In normal output the 64 bit LUN id is decoded in the form of LUN number and the addressing method
used.
# scsimgr get_attr -C lunpath -I 27 -a lunid
SCSI ATTRIBUTES FOR LUN PATH : lunpath27
name = lunid
current =0x400f000000000000 (LUN # 15, Flat Space Addressing)
default =
saved =
scriptable output
# scsimgr -p get_attr -C lunpath -I 27 -a lunid
0x400f000000000000
Displaying the port id of a target path
# scsimgr -v get_attr -H 0/4/1/0/4/0.0x50001fe150006e69 -a port_id
SCSI ATTRIBUTES FOR TARGET PATH : 0/4/1/0/4/0.0x50001fe150006e69
name = port_id
current = 66048
default =
saved =
desc = target port identifier
14