FAQ-How can I view the WWN of an application server HBA

Publication Date:  2015-07-23 Views:  166 Downloads:  0
Issue Description
How can I view the WWN of an application server HBA?

Solution
1.  Install software scli-1[1].06.16-29.windows.msi on the Windows application server.

2.  Click the software shortcut icon on the desktop.

The operating system automatically loads the software. The operation selection menu similar to Figure 1 is displayed.

Figure 1 Operation selection menu




3.  Enter 4 after Enter Selection:. Press Enter.

The HBA selection menu similar to Figure 2 is displayed.

Figure 2 HBA selection menu




4.  Enter 1 after Enter Selection:. Press Enter.

5.  The information about the HBA port is displayed, as shown in Figure 3.

Figure 3 WWPN information interface




NOTE:
     The area enclosed in the red square in Figure 3 shows the HBA WWN information.


On the Linux operating system

1.  Log in to the Linux-based application server as user root.

2.  Run the cd /proc/scsi/qla2xxx command to go to the desired directory.

3.  Run the cat 4|grep port command to view the WWN of the FC HBA.
In the following lines, scsi-qlal-port0 is the WWN of the FC HBA.

login as: root
root@129.24.11.211's password:
Last login: Tue Sep 28 01:40:54 2010 from 129.24.11.210
[root@localhost ~]# cd /proc/scsi/qla2xxx
[root@localhost qla2xxx]# cat 4|grep port
scsi-qla1-adapter-port=2101001b32bcda22;
scsi-qla1-port-0=21000022a100ef02:22030022a100ef02:0000e1:0;
[root@localhost qla2xxx]#


On the Solaris operating system

1.  Log in to the Solaris-based application server.

2.  Run the luxadm probe command.

On the HP-UX operating system

1.  Log in to the HP-UX-based application server as user root.

2.  Run the ioscan -fn command to view the I/O information of the operating system.
The following information is displayed.

ioscan -fn Class I - H/W Path----Driver - S/W State - H/W Type ---Description
======================================================================
ba -------3 -0/3 -------lba ----- CLAIMED -BUS_NEXUS --Local PCI Bus Adapter
fc -------0 -0/3/0/0-----td ---- -CLAIMED -INTERFACE---HP TachyonTL/TS
Fibre 
------------------------/dev/td0
fcp ------4 -0/3/0/0.2 -fcp ---- -CLAIMED -INTERFACE --FCP Domain
ext_bus -28 -0/3/0/0.2
-------------- .16.0.0 -fcparray -CLAIMED--INTERFACE --FCP ArrayInterfac ----
target ---6 -0/3/0/0.2--tgt ----- CLAIMED -DEVICE ----
---------.16.0.0.0 


In this example, the device housing the FC HBA is /dev/td0.

3.  Run the fcsmutil command to view the WWN of the FC HBA.
The following information is displayed.

fcsmutil /dev/td0
--------------------Vendor ID is = 0x00103c
--------------------Device ID is = 0x001028
--------------------PCI Sub-system Vendor ID is = 0x00103c
--------------------PCI Sub-system ID is = 0x000006
--------------------Topology = PTTOPT_FABRIC
--------------------Local N_Port_id is = 0x021c00
--------------------N_Port Node World Wide Name = 0x50060b0000072dad
--------------------N_Port Port World Wide Name = 0x50060b0000072dac
--------------------Driver state = ONLINE
--------------------Hardware Path is = 0/3/0/0
-------------Number of Assisted IOs = 538248
--------------------Number of Active Login Sessions = 1


As the displayed information above, in device /dev/td0, the WWN of its FC HBA is 0x50060b0000072dac.

On the SUSE operating system

1.  Log in to the SUSE-based application server.

2.  Run the cd /proc/scsi/qla2xxx command to go to directory /proc/scsi/qla2xxx.

3.  Run the ls command to view the IDs of all FC interface modules.

4.  Run the cat 4|grep port command to view the information about the FC port.

Figure 4 shows the information about the FC port.

Figure 4 Viewing an FC port in the SUSE operating system




NOTE:
     The area enclosed in the red square in Figure 3 shows the HBA WWN information.

On the AIX application server

1.  Run the following command to view the enabled FC HBA.

# lsdev -Cc adapter | grep fcs
fcs0      Available 0A-08 FC Adapter


2.  Run the following command to view the information about the FC HBA.

# lscfg -vps -l fcs0
fcs0             U787F.001.DPM59Y0-P1-C1-T1 
        FC Adapter

        Part Number.................03N5014
        EC Level....................A
        Serial Number...............1F8200CA1B
        Manufacturer................001F
        Customer Card ID Number.....280D
        FRU Number.................. 03N5014
        Device Specific.(ZM)........3
        Network Address.........10000000C977835E
        ROS Level and ID............02C82774
        Device Specific.(Z0)........1036406D
        Device Specific.(Z1)........00000000
        Device Specific.(Z2)........00000000
        Device Specific.(Z3)........03000909
        Device Specific.(Z4)........FFC01231
        Device Specific.(Z5)........02C82774
        Device Specific.(Z6)........06C32715
        Device Specific.(Z7)........07C32774
        Device Specific.(Z8)........20000000C977835E
        Device Specific.(Z9)........BS2.71X4
        Device Specific.(ZA)........B1D2.70A5
        Device Specific.(ZB)........B2D2.71X4
        Device Specific.(ZC)........00000000
        Hardware Location Code......U787F.001.DPM59Y0-P1-C1-T1


  PLATFORM SPECIFIC

  Name:  fibre-channel
    Model:  LP11000
    Node:  fibre-channel@1
    Device Type:  fcp
    Physical Location: U787F.001.DPM59Y0-P1-C1-T1


NOTE:
    In this example, the value of Network Address is the WWN of the FC HBA.

END