accessing HBA details

Hi all,

I managed to get WWN port number & node from trying on
luxadm -e port
luxadm -e dump_map <device>

I wanted to ask how can i get additional information such as company name, size etc of the HBA? Is it possible to get it through command? Thanks.

for Solaris 10,

root # fcinfo hba-port -l 

HBA Port WWN: 10000000c957d408 ==> Local HBA1 
OS Device Name: /dev/cfg/c4

Manufacturer: Emulex

Model: LP11000-E

Type: N-port

State: online

Supported Speeds: 1Gb 2Gb 4Gb 

Current Speed: 2Gb 

Node WWN: 20000000c957d408

Link Error Statistics:

Link Failure Count: 0

Loss of Sync Count: 37

Loss of Signal Count: 0

Primitive Seq Protocol Error Count: 0

Invalid Tx Word Count: 32

Invalid CRC Count: 0


OR


#prtconf -vp | more

Node 0xf00e2f80
assigned-addresses:  81000810.00000000.00000300.00000000.00000100.82000814.00000000.00100000.00000000.00002000.82000830.00000000.00140000.00000000.00040000
version: �QLA2460 Host Adapter Driver(SPARC): 1.11 10/03/05��
manufacturer:  �QLGC'
model:  �QLA2460 �
name:  �SUNW,qlc'
port-wwn:  2100001b.3202f94b
node-wwn:  2000001b.3202f94b
reg:  00000800.00000000.00000000.00000000.00000000.01000810.00000000.00000000.00000000.00000100.02000814.00000000.00000000.00000000.00001000
compatible: �pci1077,140.1077.140.2�� + �pci1077,140.1077.140�� + �pci1077,140�� + �pci1077,2422.2�� + �pci1077,2422�� + �pciclass,c0400�� + �pciclass,0400��
short-version:  �1.11 10/03/05��

<output truncated>

Thanks incredible, the command work fine with almost all the server.

However, in some server, i am facing this problem that prtconf -vp do shows some HBA ports but i cannot seem to match the WWN port/node number in prtconf -vp with WWN port/node number from luxadm -e dump_map.

Thanks again for any reply.

Hi

Here's a list of different commands which give you lots of details :-

# grep qlc /var/adm/messages.* | grep WW
/var/adm/messages.1:Aug 25 11:20:55 svx-m5000gz-2 qlc: [ID 657001 kern.info] Qlogic qlc(0) WWPN=2100001b321bb9d3 : WWNN=2000001b321bb9d3
/var/adm/messages.1:Aug 25 11:21:08 svx-m5000gz-2 qlc: [ID 657001 kern.info] Qlogic qlc(1) WWPN=2101001b323bb9d3 : WWNN=2001001b323bb9d3

Display all HBA;s within server.

root@svx-m5000gz-2 # luxadm -e port
/devices/pci@1,700000/SUNW,qlc@0/fp@0,0:devctl******************** NOT CONNECTED
/devices/pci@1,700000/SUNW,qlc@0,1/fp@0,0:devctl****************** NOT CONNECTED

And

root@svx-m5000gz-2 # prtdiag -v | grep -i qlc
00* PCIe* 1****** 3, 2432, 1077****** 2,* 0,* 0* okay**** 4,*** 4* SUNW,qlc-pciex1077,2432******* QLE2462** /pci@1,700000/SUNW,qlc@0
00* PCIe* 1****** 3, 2432, 1077****** 2,* 0,* 1* okay**** 4,*** 4* SUNW,qlc-pciex1077,2432******* QLE2462** /pci@1,700000/SUNW,qlc@0,1

************************************* ^ This column shows you the number of the HBA Card qlc0 / qlc1**     ^ This column shows devices

The above shows two qlc cards, with their related devices, remebering the devices, you then run

root@svx-m5000gz-2 #* prtpicl -v -c scsi-fcp | /usr/xpg4/bin/grep -e port-wwn -e devfs-path
* :port-wwn***** 21* 00* 00* 1b* 32* 1b* b9* d3* :devfs-path*** /pci@1,700000/SUNW,qlc@0
* :port-wwn***** 21* 01* 00* 1b* 32* 3b* b9* d3**:devfs-path*** /pci@1,700000/SUNW,qlc@0,1

This command shows the two devices with their related WWN numbers.* Remebering the WWN numbers, you run the below to get the WWPN
*********************************** 
root@svx-m5000gz-2 # fcinfo hba-port
HBA Port WWN: 2100001b321bb9d3
******* OS Device Name: /dev/cfg/c1****<----------------- Controller id*within OS - .i.e. c1t0d0s0
******* Manufacturer: QLogic Corp.
******* Model: 375-3356-02
******* Firmware Version: 4.04.01
******* FCode/BIOS Version:* BIOS: 1.24; fcode: 1.24; EFI: 1.8;
******* Serial Number: 0402R00-0830542474
******* Driver Name: qlc
******* Driver Version: 20090415-2.30
******* Type: N-port
******* State: online
******* Supported Speeds: 1Gb 2Gb 4Gb
******* Current Speed: 4Gb
******* Node WWN: 2000001b321bb9d3 <----------------- WWPN 
HBA Port WWN: 2101001b323bb9d3
******* OS Device Name: /dev/cfg/c2 <----------------- Controller id*within OS - .i.e. c2t0d0s0
******* Manufacturer: QLogic Corp.
******* Model: 375-3356-02
******* Firmware Version: 4.04.01
******* FCode/BIOS Version:* BIOS: 1.24; fcode: 1.24; EFI: 1.8;
******* Serial Number: 0402R00-0830542474
******* Driver Name: qlc
******* Driver Version: 20090415-2.30
******* Type: unknown
******* State: offline
******* Supported Speeds: 1Gb 2Gb 4Gb
******* Current Speed: not established
******* Node WWN: 2001001b323bb9d3 <----------------- WWPN