Operating System - Linux
1748289 Members
3330 Online
108761 Solutions
New Discussion юеВ

Re: Show Qlogic HBAs WWIDs on Redhat?

 
SOLVED
Go to solution
Alzhy
Honored Contributor

Show Qlogic HBAs WWIDs on Redhat?

Aside from installing SANsurfer, are there other ways for the admin to show properties of the installed Qlogic HBAs?

TIA.
Hakuna Matata.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Show Qlogic HBAs WWIDs on Redhat?

Shalom,

hwbrowser can provide limited information on QLogic HBA's but is not included on all versions of the Red Hat Enterprise Linux.

The PSP package for also includes utilites such as hp_rescan that include limited capabilities.

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
Alzhy
Honored Contributor

Re: Show Qlogic HBAs WWIDs on Redhat?

cd /sys/class/fc_host
ls
host1 host2 host3 host4

cd /sys/class/fc_host/host1
cat node_name portname port_id


And it appears from said FC directory you can even initiate LIPs, scans, etc..



Hakuna Matata.
Ivan Ferreira
Honored Contributor

Re: Show Qlogic HBAs WWIDs on Redhat?

Check:

http://blog.evad.info/2009/07/27/ibm-ds4000-storage-arrays-and-red-hat-enterprise-linux-5/

Section:

"Find out your HBA WWID"
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
John McNulty_2
Frequent Advisor
Solution

Re: Show Qlogic HBAs WWIDs on Redhat?


On Redhat 5 do:

# systool -c fc_host -v

If you want to see info about the WWIDs on the other end of your link do:

# systool -c fc_transport -v

Another useful tip: you can use the port_id number to find out the Domain ID and port number of the FC Switch you're connected to. The first two numbers are the ID and the next two the port. Just convert from hex to decimal. e.g.

port_id = "0x2C1000"

# bc
ibase=16
2C
44 <-- domain ID
11
17 <-- port number

There are a couple of Redhat knowledgebase articles on this subject you might like to read too.

http://kbase.redhat.com/faq/docs/DOC-19446

http://kbase.redhat.com/faq/docs/DOC-19446

http://kbase.redhat.com/faq/docs/DOC-9937

John McNulty_2
Frequent Advisor

Re: Show Qlogic HBAs WWIDs on Redhat?

Whoops .. typo

port_id = "0x2C1100"