Blog

Nifty Tool For Querying Heterogeneous SCSI Devices

Dec 01, 2007 | 2 minutes read
Share this:

Tags: EMC, SAN


/dev/rdsk/c0t0d0s2 :TSSTcorp :DVD-ROM TS-H352C :SI00 : : —– /dev/rdsk/c1t0d0s2 :FUJITSU :MAX3147FCSUN146G :1103:0639G02A :143369664 /dev/rdsk/c1t3d0s2 :FUJITSU :MAX3147FCSUN146G :1103:0638G02A :143369664 /dev/rdsk/c2t50060E8004F2F520d0s2 :HP :OPEN-V2 :5007 :500F2F5 :103683840 /dev/rdsk/c3t50060E8004F2F510d6s2 :HP :OPEN-V7 :5007 :500F2F5 :362893440 /dev/vx/rdmp/XP12K_SQC_0s2 :HP :OPEN-V3 :5007 :500F2F5 :155525760 /dev/vx/rdmp/XP12K_SQC_6s2 :HP :OPEN-V7 :5007 :500F2F5 :362893440 /dev/vx/rdmp/c1t0d0s2 :FUJITSU :MAX3147FCSUN146G :1103:0639G02A :143369664 /dev/vx/rdmp/c1t3d0s2 :FUJITSU :MAX3147FCSUN146G :1103:0638G02A :143369664

./inq.sol64 -hba


HBA name: Sun Microsystems, Inc.-LP10000-S-1 host WWN: 20000000C957A8E8 vendor name: Sun Microsystems, Inc. model: LP10000-S firmware version: 1.91a5 driver version: 1.11i (2006.07.11.10.53) serial number: 0999BG0-0635000219 vendor code: 0xc9 HBA type: Fibre Channel port count: 1

port number: 1 port WWN: 10000000C957A8E8 Port OS name: /dev/cfg/c2 port type: NPORT port speed: 2GBIT supported speed: 2GBIT port state: ONLINE port FCID: 0x10900 […]

Lasse Østerild remind us about the EMC inq tool, which is able to query SCSI buses to find a large range of devices, of many sort. This great utility support non-EMC targets, and is freely available (just be aware that the latest link seems not to be updated frequently, so check the latest version yourself in the list).

Here are two examples taken respectively from a Sun Fire V490 UltraSPARC system running Solaris 9...

# ./inq.sol64
Inquiry utility, Version V7.3-845 (Rev 2.0)      (SIL Version V6.4.2.0
(Edit Level 845)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.
HBA name:           QLogic Corp.-2200-0
host WWN:           200000144F415386
vendor name:        QLogic Corp.
model:              2200
firmware version:   2.1.144
driver version:     20060630-2.16
serial number:      Unknown
vendor code:        0x144f
HBA type:           Fibre Channel
port count:         1

port number:       1
    port WWN:           210000144F415386
    Port OS name:       /dev/cfg/c1
    port type:          LPORT
    port speed:         1GBIT
    supported speed:    1GBIT
    port state:         ONLINE
    port FCID:          0x1
DEVICE         :VEND    :PROD            :REV   :SER NUM    :CAP(kb)