This post is more than 5 years old
155 Posts
0
4625
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 ?
which command to list the configured HBA card and WWN# at AIX and solaris ?
Conor
341 Posts
0
June 5th, 2008 03:00
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
wishtobeMrEMC
155 Posts
0
June 5th, 2008 03:00
SKT2
1.3K Posts
0
June 5th, 2008 03:00
symmask -sid xxx list logins
Conor
341 Posts
0
June 5th, 2008 03:00
******************************************************************************
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
xe2sdc
2.8K Posts
0
June 5th, 2008 03:00
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
xe2sdc
2.8K Posts
0
June 5th, 2008 03:00
wishtobeMrEMC
155 Posts
0
June 5th, 2008 03:00
xe2sdc
2.8K Posts
0
June 5th, 2008 03:00
1) plug a fibre in the HBA and in a port of your beloved switches .. and lookup the wwn on the switch
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
dynamox
1 Rookie
1 Rookie
•
20.4K Posts
0
June 5th, 2008 03:00
dynamox
1 Rookie
1 Rookie
•
20.4K Posts
0
June 5th, 2008 04:00
xe2sdc
2.8K Posts
0
June 5th, 2008 05:00
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
Conor
341 Posts
0
June 5th, 2008 05:00
xe2sdc
2.8K Posts
0
June 5th, 2008 06:00
Anonymous
5 Practitioner
5 Practitioner
•
274.2K Posts
0
October 28th, 2008 14:00
/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->