b) Identify the sg devices from the output. The devices can be identified by the /dev/sg<dev>. The devices
appear as /dev/sg3 and /dev/sg106 bolded in the example below.
/dev/sg3: scsi9 channel=0 id=43 lun=0
HGST H460-J 0101 [rmb=0 cmdq=1 pqual=0 pdev=0xd]
'--
/dev/sg106: scsi9 channel=0 id=196 lun=0
HGST H460-J 0101 [rmb=0 cmdq=1 pqual=0 pdev=0xd]
c) Record the sg device numbers for use in a later step.
2. Identify the IOM SAS Address for both IOMs sg_ses page 7h.
a) Issue the following command:
sg_ses /dev/sg<dev> -p7 | grep -i esce
b) Identify the IOM SAS address for both IOMs from the output. Each address appears before the IP
Address as bolded in the example below.
Element 0 descriptor: ESCE IOMA,1EB0246-B2 ,THCLS03517EL0091
,5000CCAB0300003C,10.202.238.225
Element 1 descriptor: ESCE IOMB,1EB0246 ,THCLS03517EL0052
,5000CCAB0300007C,10.202.239.201
c) Record the IOM SAS Addresses for use in a later step.
3. Verify the IOM SAS Address that matches each sg_device that is linked to each IOM using sg_vpd page
83h.
a) Issue the following command:
sg_vpd /dev/sg<dev> -p0x83
b) Identify and match the IOM SAS address and sg device for both IOMs from the output. Each address
appears bolded in the example below.
Addressed logical unit:
designator type: NAA, code set: Binary
0x5000ccab0300003c
Target port:
designator type: NAA, code set: Binary
transport: Serial Attached SCSI Protocol (SPL-4)
0x5000ccab0300003c
designator type: Relative target port, code set: Binary
transport: Serial Attached SCSI Protocol (SPL-4)
Relative target port: 0x1
Target device that contains addressed lu:
designator type: NAA, code set: Binary
transport: Serial Attached SCSI Protocol (SPL-4)
0x5000ccab0300003c
4. Build the sg_senddiag command using the information recorded in earlier steps.
173
5 System Management
User Guide 5.2 Zoning