Operating System - Linux
1832862 Members
2826 Online
110048 Solutions
New Discussion

How to find WWN of HBA on a RedHat m/c

 
Masthan
Advisor

How to find WWN of HBA on a RedHat m/c


Hi All,

Please let me know the command, to know the WWN of Qlogic HBA on Redhat m/c

-Masthan

6 REPLIES 6
Ian Vaughan
Honored Contributor

Re: How to find WWN of HBA on a RedHat m/c

Howdy,
The easiest way is to look at it from the other end - login to the SAN switch and do a "switchshow" (assuming it is a Brocade)- look at the WWN that is attached on the port that the server is attached to.
I tend to use the GUI if it is a cisco switch.

HTH
Ian
Hope that helps - please click "Thumbs up" for Kudos if it does
## ---------------------------------------------------------------------------##
Which is the only cheese that is made backwards?
Edam!
Tweets: @2techie4me
Craig Gilmore
Trusted Contributor

Re: How to find WWN of HBA on a RedHat m/c

Masthan,

Get the fibreutils.rpm package from this site:

http://h18004.www1.hp.com/support/files/server/us/locate/1117_6215.html#34

Install the rpm and issue the identify command. This will give you the WWN of the QLogic HBA.
sathish kannan
Valued Contributor

Re: How to find WWN of HBA on a RedHat m/c

Masthan,

Check /proc/scsi/(HBATYPE)/XXXXX file.

replace HBATYPE with your card type and XXXX being your instance number.

Regards
Sathish
Don't Think too much
Steven E. Protter
Exalted Contributor

Re: How to find WWN of HBA on a RedHat m/c

Shalom,

As noted above, these utils are not built into the OS.

There is a tool from qlogic called san surfer which includes a utilty fo identifying the WWN.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sheriff Andy
Trusted Contributor

Re: How to find WWN of HBA on a RedHat m/c

As Ian had mentioned, go thru the brocade and do a switchshow.

Some HBAs have had the WWN on the back of the card as well.
The Spartan
Trusted Contributor

Re: How to find WWN of HBA on a RedHat m/c

Well Qlogic has sansurfer
SAnsurfer -
http://support.qlogic.com/support/sun_page_details.asp?productId=928&OSType=Linux

fibreutils is available with the driver as a part of the kit.

If all else fails try the switch, it wont fail you.

Cheers.

If you are keen to win, you should be willing to lose.