HBA

Host Bus Adapter (HBA) is most often used to refer to a Fibre Channel interface card. Fibre Channel HBAs are available for all major open systems, computer architectures, and buses, including PCI and SBus (obsolete today). Each HBA has a unique World Wide Name (WWN), which is similar to an Ethernet MAC address in that it uses an OUI assigned by the IEEE. However, WWNs are longer (8 bytes).

There are two types of WWNs on a HBA; a node WWN (WWNN), which is shared by all ports on a host bus adapter, and a port WWN (WWPN), which is unique to each port. There are HBA models of different speeds: 1Gbit/s, 2Gbit/s, 4Gbit/s, 8Gbit/s, 10Gbit/s and 20Gbit/s.

The major Fibre Channel HBA manufacturers are QLogic and Emulex. Other manufacturers include Agilent, ATTO, Brocade, and LSI.

HBA is also known to be interpreted as High Bandwidth Adapter in cases of Fibre Channel controllers.

know th WWN number from OS level

prtconf -vp |grep -i wwn
or
Qlogic HBA card.
fcinfo hba-port | grep WWN —————-Solaris 10 only

Using scli
scli -i | egrep “Node Name|Port Name”

luxadm -e port
/devices/pci@400/pci@0/pci@9/SUNW,qlc@0/fp@0,0:devctl              CONNECTED
/devices/pci@400/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0:devctl            NOT CONNECTED
luxadm -e dump_map /devices/pci@400/pci@0/pci@9/SUNW,qlc@0

======================
prtpicl -v -c scsi-fcp
prtpicl -v | grep wwn
look at your ‘port-wwn’ output

=====================

oot@somehost{/usr/sbin/lpfc}#./lputil64
LightPulse Common Utility for Solaris/SPARC. Version 1.5a0 (12/18/2002).
Copyright (c) 2002, Emulex Network Systems, Inc.

Emulex Fibre Channel Host Adapters Detected: 1
Host Adapter 0 (lpfc0) is an LP9K (Ready Mode)

MAIN MENU

1. List Adapters
2. Adapter Information
3. Firmware Maintenance
4. Reset Adapter
5. Persistent Bindings

0. Exit

Enter choice => 2

ADAPTER INFORMATION MENU

1. PCI Configuration Parameters
2. Adapter Revision Levels
3. Wakeup Parameters
4. IEEE Address
5. Loop Map
6. Status & Counters
7. Link Status
8. Configuration Parameters

0. Return to Main Menu

Enter choice => 4

IEEE Address for Adapter 0:

10000000 C93A181A

QLOGIC (qlogic 2200):

You need the qlogic utilities installed aswell. Change to the installation directory:

root@somehost{/}#cd /opt/QLogic_Corporation/drvutil/qla2200

You’ll see some utilities there.

root@somehost{/opt/QLogic_Corporation/drvutil/qla2200}#ls
qldriverop qlfwdmp_readme.txt qlreconfig
qldriverop_readme.txt qlogic_adapters qlreconfig_readme.txt
qlfwdmp qlogic_adapters_readme.txt readme.txt

Next step is to find the control devices of the qlogic cards:

root@somehost{/opt/QLogic_Corporation/drvutil/qla2200}#find /devices -name ‘QLGC*:devctl’
/devices/pci@13c,600000/QLGC,qla@1:devctl
/devices/pci@13d,600000/QLGC,qla@1:devctl
/devices/pci@15c,600000/QLGC,qla@1:devctl
/devices/pci@15d,600000/QLGC,qla@1:devctl

With this information, run the following command of the desired control device:

./qldriverop -d /devices/pci@13c,600000/QLGC,qla@1:devctl -c fcid

And finally go to the /var/adm/messages and take a look:

Jun 4 13:00:20 somehost qla2200: ID 670390 kern.info hba1: driverop fcdisplay
Jun 4 13:00:20 somehost qla2200: ID 568177 kern.info hba1-adapter-node-name=”200000e08b0b973f”;
Jun 4 13:00:20 somehost qla2200: ID 562076 kern.info hba1-adapter-port-name=”210000e08b0b973f”;
Jun 4 13:00:20 somehost qla2200: ID 720712 kern.info hba1-adapter-port-id=”6f1013?;
Jun 4 13:00:20 somehost qla2200: ID 564312 kern.info hba1-SCSI-target-id-1-fibre-channel-node-name=”5006048c52a71a82?;
Jun 4 13:00:20 somehost qla2200: ID 558211 kern.info hba1-SCSI-target-id-1-fibre-channel-port-name=”5006048c52a71a82?;
[..]

As a final note, in order to find the WWN of a JNIC card (old) this is how i managed to find it:

root@somehost{/}#prtconf -vp | grep -i my_wwn_
my_wwn_hi: 10000001
my_wwn_lo: 73011218
my_wwn_hi: 10000001
my_wwn_lo: 73011170