Pages

Thursday, March 1, 2012

Display HBA and WWN in HP-UX

First display the available HBA's installed in your system:

# ioscan -kfnC fc
Class I  H/W Path     Driver S/W State   H/W Type     Description
====================================================================
fc    0  0/3/0/0/0/0  fclp   CLAIMED     INTERFACE    HP AD355-60001
                         /dev/fclp0
fc    1  0/3/0/0/0/1  fclp   CLAIMED     INTERFACE    HP AD355-60001
                         /dev/fclp1
fc    2  0/7/0/0/0/0  fclp   CLAIMED     INTERFACE    HP AD355-60001
                         /dev/fclp2
fc    3  0/7/0/0/0/1  fclp   CLAIMED     INTERFACE    HP AD355-60001
                         /dev/fclp3

The ioscan command above shows the devices fclp0 to fclp3. Then run the fcmsutil to get the WWN's for each adapter:

# /opt/fcms/bin/fcmsutil /dev/fclp0

                            Vendor ID is = 0xXXXX
                            Device ID is = 0xXXXX
             PCI Sub-system Vendor ID is = 0xXXXX
                    PCI Sub-system ID is = 0xXXXX
                            Chip version = 2
                        Firmware Version = 2.70X5 SLI-3 (Z3F2.70X5)
                             EFI Version = ZE3.21A3
                                EFI Boot = ENABLED
          Driver-Firmware Dump Available = NO
          Driver-Firmware Dump Timestamp = N/A
                                Topology = PTTOPT_FABRIC
                              Link Speed = 4Gb
                      Local N_Port_id is = 0xXXXXXX
                   Previous N_Port_id is = None
             N_Port Node World Wide Name = 0x0000000000000000
             N_Port Port World Wide Name = 0x0000000000000001
             Switch Port World Wide Name = 0x1000000000000000
             Switch Node World Wide Name = 0x1000000000000001
                            Driver state = ONLINE
                        Hardware Path is = 0/3/0/0/0/0
                      Maximum Frame Size = 2048
                          Driver Version = @(#) FCLP: PCIe Fibre Channel driver (FibrChanl-02), B.11.31.0909, Jun  5 2009, FCLP_IFC (3,2)