Querying HBA Properties
Typically, you need to pay attention to the WWNs, speeds, topologies, and firmware of the HBAs.
The methods for querying the properties vary with the Solaris version. The following describes the methods in detail.
Solaris 8 and 9
To query HBA information on Solaris 8 or 9, perform the following steps:
- Query Fibre Channel port information.
Run the cfgadm command on the host. The output is as follows:
bash-3.2# cfgadm Ap_Id Type Receptacle Occupant Condition c0 scsi-bus connected configured unknown c1 scsi-sata connected configured unknown c7 fc-private connected configured unknownc8 fc-private connected configured unknown usb0/1 unknown empty unconfigured ok usb0/2 unknown empty unconfigured ok usb0/3 unknown empty unconfigured ok usb1/1.1 unknown empty unconfigured ok usb1/1.2 unknown empty unconfigured ok usb1/1.3 unknown empty unconfigured ok usb1/1.4 unknown empty unconfigured ok usb1/2 unknown empty unconfigured ok usb1/3 unknown empty unconfigured ok usb2/1 unknown empty unconfigured ok usb2/2 unknown empty unconfigured ok usb2/3 unknown empty unconfigured ok usb2/4 unknown empty unconfigured ok usb2/5 unknown empty unconfigured ok usb2/6 unknown empty unconfigured ok usb2/7 unknown empty unconfigured ok usb2/8 unknown empty unconfigured ok bash-3.2#
The ports whose Ap_Ids are c7 and c8 are on the Fibre Channel HBAs.
- Obtain the device names of the Fibre Channel HBAs.
Obtain the full device names of the Fibre Channel HBAs using the Ap_Ids. The following is an example:
bash-3.2# cfgadm -lv c7 Ap_Id Receptacle Occupant Condition Information When Type Busy Phys_Id c7 connected configured unknown unavailable fc-private n /devices/pci@1f,700000/pci@0/fibre-channel@2/fp@0,0:fc
The output indicates that the full device name of c7 is /devices/pci@1f,700000/pci@0/fibre-channel@2/fp@0,0:fc.
- Obtain the WWNs of the Fibre Channel HBAs.
Query the HBA WWNs using the full device names obtained in the previous step. The following is an example:
bash-3.2# luxadm -e dump_map /devices/pci@1f,700000/pci@0/fibre-channel@2/fp@0,0:fc Pos AL_PA ID Hard_Addr Port WWN Node WWN Type 0 1 7d 0 10000000c96fa382 20000000c96fa382 0x1f (Unknown Type,Host Bus Adapter) 1 b6 1c b6 2013323232323232 2100323232323232 0x0 (Disk device) bash-3.2#
The output indicates that the WWN of the Fibre Channel HBA is 10000000c96fa382.
Solaris 10 and 11
Solaris 10 and later versions provide the fcinfo command to query HBA information. The following is an example:
bash-3.2# fcinfo hba-port
HBA Port WWN: 10000000c96fa382
OS Device Name: /dev/cfg/c7
Manufacturer: Emulex
Model: LP11002-E
Firmware Version: 2.10a10 (B2F2.10A10)
FCode/BIOS Version: Boot:1.70a3 Fcode:none
Serial Number: VM74944560
Driver Name: emlxs
Driver Version: 2.60k (2011.03.24.16.45)
Type: L-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 20000000c96fa382
HBA Port WWN: 10000000c96fa383
OS Device Name: /dev/cfg/c8
Manufacturer: Emulex
Model: LP11002-E
Firmware Version: 2.10a10 (B2F2.10A10)
FCode/BIOS Version: Boot:1.70a3 Fcode:none
Serial Number: VM74944560
Driver Name: emlxs
Driver Version: 2.60k (2011.03.24.16.45)
Type: L-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 20000000c96fa383
bash-3.2#
In the command output, the HBA WWNs are 10000000c96fa382 and 10000000c96fa383. This command can also display the HBA model (Model parameter), topology (Type parameter), and current speed (Current Speed parameter).