Sponsored Content
Full Discussion: accessing HBA details
Operating Systems Solaris accessing HBA details Post 302350525 by sbk1972 on Friday 4th of September 2009 06:25:46 AM
Old 09-04-2009
Hi

Here's a list of different commands which give you lots of details :-
Code:
# grep qlc /var/adm/messages.* | grep WW
/var/adm/messages.1:Aug 25 11:20:55 svx-m5000gz-2 qlc: [ID 657001 kern.info] Qlogic qlc(0) WWPN=2100001b321bb9d3 : WWNN=2000001b321bb9d3
/var/adm/messages.1:Aug 25 11:21:08 svx-m5000gz-2 qlc: [ID 657001 kern.info] Qlogic qlc(1) WWPN=2101001b323bb9d3 : WWNN=2001001b323bb9d3

Display all HBA;s within server.

root@svx-m5000gz-2 # luxadm -e port
/devices/pci@1,700000/SUNW,qlc@0/fp@0,0:devctl******************** NOT CONNECTED
/devices/pci@1,700000/SUNW,qlc@0,1/fp@0,0:devctl****************** NOT CONNECTED

And

root@svx-m5000gz-2 # prtdiag -v | grep -i qlc
00* PCIe* 1****** 3, 2432, 1077****** 2,* 0,* 0* okay**** 4,*** 4* SUNW,qlc-pciex1077,2432******* QLE2462** /pci@1,700000/SUNW,qlc@0
00* PCIe* 1****** 3, 2432, 1077****** 2,* 0,* 1* okay**** 4,*** 4* SUNW,qlc-pciex1077,2432******* QLE2462** /pci@1,700000/SUNW,qlc@0,1

************************************* ^ This column shows you the number of the HBA Card qlc0 / qlc1**     ^ This column shows devices

The above shows two qlc cards, with their related devices, remebering the devices, you then run

root@svx-m5000gz-2 #* prtpicl -v -c scsi-fcp | /usr/xpg4/bin/grep -e port-wwn -e devfs-path
* :port-wwn***** 21* 00* 00* 1b* 32* 1b* b9* d3* :devfs-path*** /pci@1,700000/SUNW,qlc@0
* :port-wwn***** 21* 01* 00* 1b* 32* 3b* b9* d3**:devfs-path*** /pci@1,700000/SUNW,qlc@0,1

This command shows the two devices with their related WWN numbers.* Remebering the WWN numbers, you run the below to get the WWPN
*********************************** 
root@svx-m5000gz-2 # fcinfo hba-port
HBA Port WWN: 2100001b321bb9d3
******* OS Device Name: /dev/cfg/c1****<----------------- Controller id*within OS - .i.e. c1t0d0s0
******* Manufacturer: QLogic Corp.
******* Model: 375-3356-02
******* Firmware Version: 4.04.01
******* FCode/BIOS Version:* BIOS: 1.24; fcode: 1.24; EFI: 1.8;
******* Serial Number: 0402R00-0830542474
******* Driver Name: qlc
******* Driver Version: 20090415-2.30
******* Type: N-port
******* State: online
******* Supported Speeds: 1Gb 2Gb 4Gb
******* Current Speed: 4Gb
******* Node WWN: 2000001b321bb9d3 <----------------- WWPN 
HBA Port WWN: 2101001b323bb9d3
******* OS Device Name: /dev/cfg/c2 <----------------- Controller id*within OS - .i.e. c2t0d0s0
******* Manufacturer: QLogic Corp.
******* Model: 375-3356-02
******* Firmware Version: 4.04.01
******* FCode/BIOS Version:* BIOS: 1.24; fcode: 1.24; EFI: 1.8;
******* Serial Number: 0402R00-0830542474
******* Driver Name: qlc
******* Driver Version: 20090415-2.30
******* Type: unknown
******* State: offline
******* Supported Speeds: 1Gb 2Gb 4Gb
******* Current Speed: not established
******* Node WWN: 2001001b323bb9d3 <----------------- WWPN

 

10 More Discussions You Might Find Interesting

1. Solaris

How to get HBA details in Solaris 9 ?

Hi , How can I collect information about any Hardware , specially HBA (Host Bus Adapter) .... I tried prtdiag but it is not shoing the HBA details. Regards (4 Replies)
Discussion started by: adel8483
4 Replies

2. Solaris

HBA Card

Hello...I got a problem here. I have HBAs installed in one of the domains in E20 and I gotta find out the brand and firmware. But when I do a prtconf, I cannot see the HBA. For other servers installed with HBAs, when I do prtconf on them I can see either qlc or em. Can you guys enlighten me how to... (5 Replies)
Discussion started by: xiaochensg
5 Replies

3. Solaris

What is an HBA..?

Helo experts What is an HBA? How can i know about that on any server? Thanx in advance... (7 Replies)
Discussion started by: younus_syed
7 Replies

4. Solaris

Command to get the details and number of HBA cards

Hiii... Every one.... I want to know the command to get the details and number of HBA cards attached to a server. I know that we can use "powermt display", but nither my cards are connected to the storage nor powerpath is active. I am using SUN server with Solaris -9. Thanks in... (4 Replies)
Discussion started by: Reboot
4 Replies

5. Filesystems, Disks and Memory

HBA performance

Hope I'm in the right place. I'm in the process of zoning HBA's to my new library environment. Is there a "rule of thumb" for the number of physical tape drives that you zone to an HBA? I don't want to run the risk of overloading an HBA. Any information would be greatly appreciated. Thanks. (2 Replies)
Discussion started by: jwholey
2 Replies

6. Solaris

Offline HBA.

Hi, I have a HBA that is currently offline for some unknown reason. The device shows up in the prtdiag -v stating it is okay. How can I bring this back online? It was working okay until recently. It is currently connected to the SAN. Details below. # fcinfo hba-port HBA Port WWN:... (7 Replies)
Discussion started by: sparcman
7 Replies

7. Solaris

hba speed Solaris 9

Hello, In Solaris 10 I can use fcinfo to find what speed the hba ports are running at, am I able to find this out using Solaris 9? I have tried a few variations on luxadm but cant find anything relevant. Thanks. (1 Reply)
Discussion started by: Actuator
1 Replies

8. Solaris

HBA problem...? at SF V890

Dear All, I need your help. I have server like this SunOS 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V890 with messages like this... Oct 10 17:07:52 iscsi: NOTICE: unrecognized ioctl 0x403 Oct 10 17:07:52 scsi: WARNING: /pseudo/fcp@0 (fcp0): Oct 10 17:07:52 Invalid... (4 Replies)
Discussion started by: mbah_jiman
4 Replies

9. Solaris

How to enable hba port of a two port hba card

Hi, i have a two port hba card in solaris 10 system one of which is disabled. How to enable and configure the other port. ---------- Post updated at 08:17 AM ---------- Previous update was at 03:40 AM ---------- please help :( (7 Replies)
Discussion started by: rishiraaz
7 Replies

10. UNIX for Dummies Questions & Answers

at -l doesnt give details of the scheduled job. How to get the details?

I have scheduled couple of shell scripts to run using 'at' command. The o/p of at -l is: $ at -l 1320904800.a Thu Nov 10 01:00:00 2011 1320894000.a Wed Nov 9 22:00:00 2011 1320876000.a Wed Nov 9 17:00:00 2011 $ uname -a SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Discussion started by: superparticle
2 Replies
HBA_OpenAdapter(3HBAAPI)		      Common Fibre Channel HBA Information Library Functions			  HBA_OpenAdapter(3HBAAPI)

NAME
HBA_OpenAdapter, HBA_OpenAdapterByWWN, HBA_CloseAdapter - open and close a specific adapter SYNOPSIS
cc [ flag... ] file... -lHBAAPI [ library... ] #include <hbaapi.h> HBA_HANDLE HBA_OpenAdapter(char *adaptername); HBA_STATUS HBA_OpenAdapterByWWN(HBA_HANDLE *handle, HBA_WWN wwn); void HBA_CloseAdapter(HBA_HANDLE handle); PARAMETERS
adaptername the name of the adapter to open, as returned by HBA_GetAdapterName(3HBAAPI) handle HBA_OpenAdapterByWWN() a pointer to an HBA_HANDLE HBA_CloseAdapter() the open handle of the adapter to close, as returned by HBA_OpenAdapter(3HBAAPI) wwn the WWN to match the Node WWN or Port WWN of the HBA to open DESCRIPTION
The HBA_OpenAdapter() function opens the adapter specified by adaptername and returns a handle used for subsequent operations on the HBA. The HBA_OpenAdapterByWWN() function opens a handle to the HBA whose Node or Port WWN matches the wwn argument. The HBA_CloseAdapter() function closes the open handle. RETURN VALUES
Upon successful completion, HBA_OpenAdapter() returns a valid HBA_HANDLE with a numeric value greater than 0. Otherwise, 0 is returned. The HBA_OpenAdapterByWWN() function returns the following values: HBA_STATUS_OK The handle argument contains a valid HBA handle. HBA_STATUS_ERROR_ILLEGAL_WWN The wwn argument is not a valid port WWN on the specified HBA. HBA_STATUS_ERROR_AMBIGUOUS_WWN The WWN is matched to multiple adapters. HBA_STATUS_ERROR An error occurred while opening the adapter. EXAMPLES
Example 1 Open an adapter. The following example opens the specified adapter. handle = HBA_OpenAdapter(adaptername); if (handle == 0) { fprintf(stderr, "Unable to open HBA %d with name " ""%s". ", hbaCount, adaptername); continue; } ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-------------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-------------------------------------+ |Interface Stability |Standard: FC-MI 1.92 (API version 1) | +-----------------------------+-------------------------------------+ | |Standard: FC-HBA Version 4 (API ver- | | |sion 2) | +-----------------------------+-------------------------------------+ |MT-Level |Safe | +-----------------------------+-------------------------------------+ SEE ALSO
HBA_GetAdapterName(3HBAAPI), HBA_OpenAdapter(3HBAAPI), libhbaapi(3LIB), attributes(5) T11 FC-MI Specification SunOS 5.11 1 Sep 2003 HBA_OpenAdapter(3HBAAPI)
All times are GMT -4. The time now is 12:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy