Sponsored Content
Full Discussion: Find LUN with WWN
Operating Systems Solaris Find LUN with WWN Post 302481033 by achenle on Thursday 16th of December 2010 12:20:29 PM
Old 12-16-2010
This will list all fiber-channel LUNs the OS install can see (bash shell):

Code:
for hba in `fcinfo hba-port | grep WWN | awk '{ print $4 }'`; do
    fcinfo remote-port -ls -p $hba;
done

 

10 More Discussions You Might Find Interesting

1. Solaris

Wwn

hiho peeps, is there a possibility to see the WWNs of your SAN-HBAs, like in ifconfig the MAC-addresse.....??? greetings Pressy (1 Reply)
Discussion started by: pressy
1 Replies

2. Solaris

WWN on Solairs8

How to find the WWN in solaris8 other than luxadm? (2 Replies)
Discussion started by: allwin
2 Replies

3. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

4. Windows & DOS: Issues & Discussions

find wwn in windows machine ?

Hi guys .. How to can I know the HBA WWN address in the windows machine ? Pls advice with command ... (1 Reply)
Discussion started by: roooooot
1 Replies

5. AIX

WWN change

If i am changing the controller/SFP in IBM DS 5000 series is there any chance of changing WWN.Where it (WWN)will be located. When will be the chance of WWN change. Thanks in advance (0 Replies)
Discussion started by: sunnybee
0 Replies

6. Solaris

How can i find the LUN ID's

Dear all, i want to get the LUN ID for some disks in solaris 10 what commands options for the MPXIO and inq i want these utilities only because i don't have solution enabler or powerpath BR, (1 Reply)
Discussion started by: maxim42
1 Replies

7. Solaris

How to get LUN WWN in Solaris?

How to get LUN WWN (i.e LUN mapped from a storage box say Symmetrix or clariion) in Solaris. fcinfo command does give the Target port wwn but what i'm looking for is the LUN WWN. Any help is appreciated. (2 Replies)
Discussion started by: Manish00712
2 Replies

8. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies

9. Ubuntu

Unable to find WWN on Ubuntu 12

Hi All I am trying to get WWN from the FC adapters to provide to storage admin to provide me with some LUNs, but after some research on google I was asked to use sysfsutilstool, but when I try to install the deb package I got stuck on dependencies. the one that is giving me issues is : libc6.... (0 Replies)
Discussion started by: fretagi
0 Replies

10. Red Hat

Need WWN

How do I identify the WWN of associated SAN through a logical volume that is mounted on a RHEL 6 system (2 Replies)
Discussion started by: nixhead
2 Replies
HBA_SendRLS(3HBAAPI)			      Common Fibre Channel HBA Information Library Functions			      HBA_SendRLS(3HBAAPI)

NAME
HBA_SendRLS, HBA_SendRPL, HBA_SendRPS, HBA_SendSRL, HBA_SendLIRR - issue an Extended Link Service through the local HBA Port SYNOPSIS
cc [ flag... ] file... -lHBAAPI [ library... ] #include <hbaapi.h> HBA_STATUS HBA_SendRLS(HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN destWWN, void * pRspBuffer, HBA_UINT32 *pRspBufferSize); HBA_STATUS HBA_SendRPL(HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN agentWWN, HBA_UINT32 agent_domain, HBA_UINT32 portIndex, void * pRspBuffer, HBA_UINT32 *pRspBufferSize); HBA_STATUS HBA_SendRPS(HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN agentWWN, HBA_UINT32 agent_domain, HBA_WWN object_wwn, HBA_UINT32 object_port_number, void * pRspBuffer, HBA_UINT32 *pRspBufferSize); HBA_STATUS HBA_SendSRL(HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN wwn, HBA_UINT32 domain, void * pRspBuffer, HBA_UINT32 *pRspBufferSize); HBA_STATUS HBA_SendLIRR(HBA_HANDLE handle, HBA_WWN hbaPortWWN, HBA_WWN destWWN, HBA_UINT8 function, HBA_UINT8 type, void * pRspBuffer, HBA_UINT32 *pRspBufferSize); PARAMETERS
handle an open handle returned from HBA_OpenAdapter(3HBAAPI) hbaPortWWN HBA_SendRLS() the Port WWN of the local HBA through which to send the RLS HBA_SendRPL() the Port WWN of the local HBA through which to send the RPL HBA_SendRPS() the Port WWN of the local HBA through which to send the RPS HBA_SendSRL() the Port WWN of the local HBA through which to send the SRL HBA_SendLIRR() the Port WWN of the local HBA through which to send the LIRR destWWN HBA_SendRLS() the Port WWN of the remote Target to which the RLS is sent HBA_SendLIRR() he Port WWN of the remote Target to which the LIRR is sent wwn If non-zero, wwn is the port WWN to be scanned. If wwn is zero, it is ignored. domain If wwn is zero, domain is the domain number for which loops will be scanned. If wwn is non-zero, domain is ignored. agent_wwn If non-zero, agent_wwn is the port WWN for which the port list is requested. If agent_wwn is zero, it is ignored. agent_domain If agent_wwn is non-zero, agent_domain is the domain number and the domain controller for which the port list is requested. If agent_wwn is zero, it is ignored. port_index index of the first FC_Port returned in the response list object_wwn If non-zero, object_wwn is the port WWN for which the Port Status is requested. If object_wwn is zero, it is ignored. object_port_number If object_wwn is zero, object_port_number is the relative port number of the FC_Port for which the Port Status is requested. If object_wwn is non-zero, object_port_number is ignored. function the registration function to be performed type If type is non-zero, the type is the FC-4 device TYPE for which specific link incident information requested is requested. If type is zero, only common link incident information is requested. pRspBuffer HBA_SendRLS() a pointer to a buffer into which the RLS response is copied HBA_SendRPL() a pointer to a buffer into which the RPL response is copied HBA_SendRPS() a pointer to a buffer into which the RPS response is copied HBA_SendSRL() a pointer to a buffer into which the SRL response is copied HBA_SendLIRR() A pointer to a buffer into which the LIRRresponse is copied. RspBufferSize a pointer to the size of the buffer HBA_SendRLS() A size of 28 is sufficient for the largest response. HBA_SendLIRR() HBA_SendRPS() A size of 58 is sufficient for the largest response. HBA_SendSRL() A size of 8 is sufficient for the largest response. DESCRIPTION
The HBA_SendRLS() function returns the Link Error Status Block associated with the agent WWN or agent-domain. For more information see "Read Link Status Block (RLS)" in FC-FS. The HBA_SendRPL() function returns the Read Port List associated with the agent WWN or agent-domain. For more information see "Read Port List (RPL)" in FC-FS. The HBA_SendRPS() function returns the Read Port Status Block associated with the agent WWN or agent-domain. For more information see "Read Port Status Block(RPS)" in FC-FS. The HBA_SendSRL() function returns the Scan Remote Loop associated with the agent WWN or agent-domain. For more information see "Scan Remote Loop(SRL)" in FC-FS. The HBA_SendLIRR() function returns the Link Incident Record Registration associated with the destportWWN. For more information see "Link Incident Record Registration (LIRR) in FC-FS. RETURN VALUES
These functions return the following values: HBA_STATUS_OK The LS_ACC for the ELS has been returned. HBA_STATUS_ERROR_ELS_REJECT The ELS has been rejeced by the local HBA Port. HBA_STATUS_ERROR_ILLEGAL_WWN The value of hbaPortWWN is not a valid port WWN on the specified HBA. HBA_STATUS_ERROR An error occurred. 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_OpenAdapter(3HBAAPI), libhbaapi(3LIB), attributes(5) T11 FC-MI Specification SunOS 5.11 1 Sep 2003 HBA_SendRLS(3HBAAPI)
All times are GMT -4. The time now is 09:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy