Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

4625

June 5th, 2008 02:00

which command to list the configured HBA card and WWN# at AIX and solaris ?

Friends,
which command to list the configured HBA card and WWN# at AIX and solaris ?

341 Posts

June 5th, 2008 03:00

From a host perspective, this is the way I would do it:

Solaris: search the messages file for "signal 15" (last reboot) and scroll down slightly and you will see the HBA's initializing, HBA Model, WWN,, Firmware and Fcode will all be listed:

May 23 23:05:02 its-du-psspdb1 qlc: [ID 139792 kern.info] Qlogic qlc(0) FCA Driver v20071220-2.26
May 23 23:05:02 its-du-psspdb1 qlc: [ID 657001 kern.info] Qlogic qlc(0) WWPN=210000144f44da46 : WWNN=200000144f44da46
May 23 23:05:10 its-du-psspdb1 qlc: [ID 630585 kern.info] NOTICE: Qlogic qlc(0): Loop ONLINE
May 23 23:05:10 its-du-psspdb1 qlc: [ID 147575 kern.info] NOTICE: ql_power(0): qlc is powered ON
May 23 23:05:10 its-du-psspdb1 qlc: [ID 694252 kern.info] NOTICE: qlc(0): Firmware version 2.1.145


On AIX just run the below command to get the part number, WWN and firmware levels (Z9):

lscfg -vl fcs0

fcs0 U7879.001.DQD0G2E-P1-C5-T1 FC Adapter

Part Number.................80P4543
EC Level....................A
Serial Number...............1D43205A9C
Manufacturer................001D
Device Specific.(CC)........280B
FRU Number.................. 80P4544
Device Specific.(ZM)........3
Network Address.............10000000C93EABC0
ROS Level and ID............02881914
Device Specific.(Z0)........1001206D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FF801315
Device Specific.(Z5)........02881914
Device Specific.(Z6)........06831914
Device Specific.(Z7)........07831914
Device Specific.(Z8)........20000000C93EABC0
Device Specific.(Z9)........TS1.90A4
Device Specific.(ZA)........T1D1.90A4
Device Specific.(ZB)........T2D1.90A4
Device Specific.(YL)........U7879.001.DQD0G2E-P1-C5-T1

155 Posts

June 5th, 2008 03:00

Stefano, any unix command to check WWN# (emulex and qlogic) at solaris besides lputil for emulex ?

1.3K Posts

June 5th, 2008 03:00

symcfg list -fa all -sid xxxx

symmask -sid xxx list logins

341 Posts

June 5th, 2008 03:00

There is one pretty neat output that the Solaris EMCGrab Gathers, across both Emulex/QLogic HBA's, outputs a file called hbainfo.txt sample for one HBA below:


******************************************************************************
HBA 0
******************************************************************************

**HBA NAME: QLogic Corp.-QLA2340-0**
Manufacturer: QLogic Corp.
Serial Number:
Model: QLA2340
Model Description: SUN - 133MHz PCI-X to 2Gb FC, Single Channel
Node WWN: 200000e08b899c31
Driver Version: 20070212-2.19
Option Rom Version: ISP2312 Host Adapter Driver: 1.14.11 08/23/05
Firmware Version: 3.3.24
Number of Ports: 1
Driver Name: qlc

**PORT 0**
Node WWN: 200000e08b899c31
Port WWN: 210000e08b899c31
Port FCID: 0x155000
Port Type: N_Port
Port State: Online
OS Device Name: /dev/cfg/c4
Port Supported Speed: Error - Undefined
Port Speed: 2 GBit/sec
Number of Discovered Ports: 1

**PORT 0 - DISCOVERED PORT 0**
Node WWN: 5006048452a79ac8
Port WWN: 5006048452a79ac8
Symmetrix S/N: 290102891 Dir: 9aA
Port FCID: 0x155100
OS Device Name:

========

Now I'm sure the script for this is located within the emcgrab.sh file, I'm not much of a 'scripter' so can't help you much more :(

Message was edited by:
Conor

2.8K Posts

June 5th, 2008 03:00

Unfortunatly I don't think there is a single unix command that is "vendor independent" .. an HBA usually have its own driver ... and the driver will log entries in logfiles at boot. If you need further informations on the HBA you need vendor-specific tools .. Emulex offers lputl .. Qlogic have SanSurfer (but it's a GUI, not a CLI utility).

On AIX and HPUX you are lucky since vendors supply both the HBA and the driver. Better, the driver have a "well known" interface and the OS offers commands to query the HBA (tdutil/fcmsutil on hpux) or -even better- the OS considere the HBA as part of the hardware and allows you to show details on the HBA using standard OS commands (AIX).

As you can see, there is no "standard" .. every OS have its own glitches .. You are free to choose the OS with less glitches ;-)

Message was edited by:
Stefano Del Corno

2.8K Posts

June 5th, 2008 03:00

Correct me if I'm wrong .. But AFAIK this command will work ONLY you can see a VCM at the host level (you have the special file). If I can see the VCM I already built zones. So I already have the WWN :-)

155 Posts

June 5th, 2008 03:00

thanks Conor .. I was expecting this from host perspective only .

2.8K Posts

June 5th, 2008 03:00

You have options .. :D

1) plug a fibre in the HBA and in a port of your beloved switches .. and lookup the wwn on the switch :D

2) if you already have zones you can always use "symmask list hba" (note that it won't work if you can't see a VCM from an HBA).

3) it depends on the host/HBA ..
With Solaris/emulex you can use lputil (in /usr/sbin/lpfc/ I suppose)
With Solaris/Qlogic I suspect you have to lookup the /var/adm/message* files.
With AIX I hope primus emc7302 still works :D

1 Rookie

 • 

20.4K Posts

June 5th, 2008 03:00

symmask list hba

1 Rookie

 • 

20.4K Posts

June 5th, 2008 04:00

yep, i guess it depends at what state of deployment you want to pull up HBA information.

2.8K Posts

June 5th, 2008 05:00

hbainfo is a utility supplied within emcgrab. It uses libHBAAPI, a freeware library that wraps SNIA API ... I don't really know if hbainfo is part of "hbaapi" .. however it's based on hbaapi. Even if it's available as part of EMCGrab, I don't think it's available as a standalone application.

libHBAAPI.so is distributed under the GNU General Public License.
Source and binary forms of the Common HBA API library V1.0 can be
obtained from http://www.sourceforge.net/projects/hbaapi.

Conor .. apparently no magic scripting involved .. simply a touch of C ;-)

341 Posts

June 5th, 2008 05:00

I'm impressed - thanks Stefano

2.8K Posts

June 5th, 2008 06:00

Nothing impressive at all .. Just a little "tar" here and there .. and part of a readme file that you can find in emcgrab directory ;-)

5 Practitioner

 • 

274.2K Posts

October 28th, 2008 14:00

for Solaris 10, you can run:

/usr/sbin/fcinfo hba-port

I think that should work on most HBA's.....it has more options for more information as well....ie:

ROOT@host-> fcinfo hba-port
HBA Port WWN: 10000000c96e4223
OS Device Name: /dev/cfg/c2
Manufacturer: Emulex
Model: LPe11000-E
Firmware Version: 2.72a2
FCode/BIOS Version: 3.01a1
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 2Gb
Node WWN: 20000000c96e4223
HBA Port WWN: 10000000c96e424d
OS Device Name: /dev/cfg/c3
Manufacturer: Emulex
Model: LPe11000-E
Firmware Version: 2.72a2
FCode/BIOS Version: 3.01a1
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 2Gb
Node WWN: 20000000c96e424d
ROOT@host->
No Events found!

Top