Code:
# 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