Operating System - HP-UX
1826564 Members
4205 Online
109695 Solutions
New Discussion

Re: WWN of a Fibre Channel adapter

 
SOLVED
Go to solution
Ross Minkov
Esteemed Contributor

WWN of a Fibre Channel adapter

How do I get the WWN of a Fibre Channel adapter? I am running 11.11 and have 2 HP Tachyon XL2 FC Mass Storage adapters in an rp5470 server.

Thanks,
Ross
7 REPLIES 7
Michael Tully
Honored Contributor
Solution

Re: WWN of a Fibre Channel adapter

try:

# ioscan -fnk >/tmp/wrk
# vi /tmp/wrk (and look for the /dev/tdX devices)
the run
# /opt/fcms/bin/fcmsutil /dev/td? (for each one. You'll get something like this. The correct WWN is 'Port World Wide Name')

Vendor ID is = 0x00103c
Device ID is = 0x001028
TL Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x000006
Topology = PTTOPT_FABRIC
Local N_Port_id is = 0x011200
N_Port Node World Wide Name = 0x50060b00000af3f9
N_Port Port World Wide Name = 0x50060b00000af3f8
Driver state = ONLINE
Hardware Path is = 0/0/8/0/0
Number of Assisted IOs = 6467044
Number of Active Login Sessions = 2
Anyone for a Mutiny ?
Rajeev  Shukla
Honored Contributor

Re: WWN of a Fibre Channel adapter

I am sure you'r Fibre Channel Adapters would be connected to a switch, say brocade switch.
Other way to get the wwn of adapter is to login to the switch to which this adapter is connected and do a switchshow, or nsshow
Suresh Patoria
Super Advisor

Re: WWN of a Fibre Channel adapter

Hi,

Through stm tool u can get the information

Thanx
Joe Short
Super Advisor

Re: WWN of a Fibre Channel adapter

The command is fcmsutil.
First do an ioscan -fn to get the device of the fiber channel HBAs, it will be something like /dev/td1.
then execute the command:
fcmsutil /dev/td1

It will giv output similar to what's listed below. Take the last character off to get the WWN.

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 = 0x210c13
N_Port Node World WideName=0x50060b00000838db
N_Port Port World WideName=0x50060b00000838da
Driver state = ONLINE
Hardware Path is = 0/5/0/0
Number of Assisted IOs = 1979710
Number of Active Login Sessions = 1
Zinky
Honored Contributor

Re: WWN of a Fibre Channel adapter

If you are on an 11.11 system, then there is this SNIA (Storage Networking Industry Association) sampler that is a really kool tool to explore you're SAN. Just compile the source you'll find in /opt/snia/demos:

make -f makefile.demo (compiles snia_demo.c), run the resuting executable and you should have what you'll need.. I hav ebeen so far successful in compiling it on aCC compiler.

If what you want is your HBA's properties, then fcmsutil or tdutil will do.

Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Joshua Scott
Honored Contributor

Re: WWN of a Fibre Channel adapter

the a6795a fc adapters have the WWN printed on the visible external portion of the PCI card guide. if you have physical access to the server you can look there. it should be right underneath (or above) the connector.

-Josh
What are the chances...
Ross Minkov
Esteemed Contributor

Re: WWN of a Fibre Channel adapter

thanks for your help