Finding a WWN on an HP-UX host

You can find the WWN in an HP-UX environment.

Procedure

  1. Verify that the Fibre Channel adapters and the Fibre Channel device drivers are installed.

  2. Log in to the HP-UX host with root access.

  3. At the command line prompt, type:

    /usr/sbin/ioscan -fnC lan This will list the attached Fibre Channel devices and their device file names. Record the Fibre Channel device file name (for example, /dev/fcms0).
    NoteWhen the A5158 Fibre Channel adapter is used, at the command line prompt, enter /usr/sbin/ioscan -fnC fc for the device name.
  4. Use the fcmsutil command along with the Fibre Channel device name to list the WWN for that Fibre Channel device. For example, to list the WWN for the device with the device file name /dev/fcms0, type:

    /opt/fcms/bin/fcmsutil /dev/fcms0 Record the Fibre Channel device file name (for example, /dev/td0).
    NoteWhen using the A5158 Fibre Channel adapter, list the WWN for the device with the device file name as follows:

    /opt/fcms/bin/fcmsutil <device file name>

  5. Record the WWN and repeat the above steps for each Fibre Channel device that you want to use.

Results

# /usr/sbin/ioscan -fnC lan  <- 1
Class     I  H/W Path  Driver      S/W State   H/W Type
Description
==============================================================
lan        0  8/0.5     fcT1_cntl   CLAIMED    INTERFACE    HP
Fibre Channel Mass Storage Cntl
                          /dev/fcms0  <-2 
lan        4  8/4.5     fcT1_cntl   CLAIMED    INTERFACE    HP
Fibre Channel Mass Storage Cntl
                          /dev/fcms4  <-2
lan        5  8/8.5     fcT1_cntl   CLAIMED    INTERFACE    HP
Fibre Channel Mass Storage Cntl
                          /dev/fcms5  <-2
lan        6  8/12.5    fcT1_cntl   CLAIMED    INTERFACE    HP
Fibre Channel Mass Storage Cntl
                          /dev/fcms6  <-2
lan        1  10/8/1/0  btlan4      CLAIMED    INTERFACE
PCI(10110009) -- Built-in #1
lan        2  10/8/2/0  btlan4      CLAIMED    INTERFACE
PCI(10110009) -- Built-in #2
lan        3  10/12/6   lan2        CLAIMED    INTERFACE
Built-in LAN
                          /dev/diag/lan3  /dev/ether3     /dev
/lan3
#
# fcmsutil /dev/fcms0 <-3
                Local N_Port_ID is = 0x000001
       N_Port Node World Wide Name = 0x10000060B0C08294
          N_Port Port World Wide Name = 0x10000060B0C08294 <- 4
                          Topology = IN_LOOP
                             Speed = 1062500000 (bps)
                       HPA of card = 0xFFB40000
                       EIM of card = 0xFFFA000D
                      Driver state = READY
            Number of EDB's in use = 0
            Number of OIB's in use = 0
Number of Active Outbound Exchanges = 1
   Number of Active Login Sessions = 2
#
1: Enter the ioscan.
2: Device name
3: Enter the fcmsutil command.
4: Record the WWN.