stmfDevidFromWwn(3STMF) SCSI Target Mode Framework Library Functions stmfDevidFromWwn(3STMF)NAME
stmfDevidFromWwn - convert a WWN to a stmfDevid structure
SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfDevidFromWWN(uchar_t wwn[8], stmfDevid *devid);
PARAMETERS
wwn The 8-byte WWN identifier.
devid A pointer to a stmfDevid structure allocated by the caller. On successful return, this will contain the converted device identi-
fier. On error, the value of this parameter is undefined.
DESCRIPTION
The stmfDevidFromWwn function convert a WWN to a stmfDevid structure. It returns the devid as a SCSI name string.
RETURN VALUES
The following values are returned:
STMF_ERROR_INVALID_ARGUMENT
The value of wwn was not valid WWN identifier.
STMF_STATUS_SUCCESS
The API call was successful.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO libstmf(3LIB), attributes(5)SunOS 5.11 9 Jun 2008 stmfDevidFromWwn(3STMF)
Check Out this Related Man Page
stmfOfflineTarget(3STMF) SCSI Target Mode Framework Library Functions stmfOfflineTarget(3STMF)NAME
stmfOfflineTarget - take offline a target port that is currently in the online state
SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfOfflineTarget(stmfDevid *target);
PARAMETERS
target The identifier of the target port to offline.
DESCRIPTION
The stmfOfflineTarget() function takes offline a target port that is currently in the online state. Once in the offline state, the target
port will no longer be capable of servicing requests in the system.
This API call can be used to take offline a target port device for servicing. Once the target port is offline, it will no longer be avail-
able to any entities outside of the SCSI Target Mode Framework. Any initiator ports that currently have sessions established by the
offlined target port will be logged out.
RETURN VALUES
The following values are returned:
STMF_ERROR_BUSY The device is currently busy.
STMF_STATUS_SUCCESS The API call was successful.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO libstmf(3LIB), attributes(5)SunOS 5.11 9 Jun 2008 stmfOfflineTarget(3STMF)
hi all,
I'm looking for a command to display the WWN of my 2 HBAs cards installed on my Solaris 8 server.
I have installed HP securepath for multipathing but I can only see the controllers info of my SAN with spmgr display command.
Any ideas ?
Thanks a lot.
Fabien (10 Replies)
Hi, I'm quite new at unix and was wondering if anyone could help me with this.
I have 2 arrays:
eg. STAT=online, STAT=offline, STAT=online
WWN=xxxx1, WWN=xxxx2, WWN=xxxx3
I got these information from a script using fcinfo hba-port that runs through a loop.
Now, I want to store... (2 Replies)
hello, this is my first post please be gentle...
im running aix 5.3 on a js21 lpar (that machine has another lpar and the vios), however i can't seem to find the wwn of the card when i:
lscfg + sys0 System Object
+ sysplanar0 ... (4 Replies)
Hello,
I am trying to breakdown the cXtXdX (specifically tX) part of an iscsi device.
I know in the fibre SAN world, this tX will usually be a combination of the path to device/device WWN.
From what I understand in iscsi world it is similar, breaking down into... (0 Replies)
Hi, we have a Sun x4150 server connecting to Brocade switches. I need to get all WWN on the Sun server. Here is the result:
# fcinfo hba-port
No Adapters Found.
# prtconf -vp | grep -i wwn
# luxadm probe
ERROR: No Fibre Channel Adapters found.
# luxadm -e port
ERROR: No Fibre Channel... (2 Replies)
I have a real problem that I hope someone has experience of. I am setting up an LPM for a client who use HP SAN storage. In the past when I setup an LPM system the second World Wide Name (WWN) for the virtual client adapters were given to the storage team who then zoned and mapped these to same... (3 Replies)
Hi All :)
i would like to know if i can customize the WWN of the new VFC (NPIV).
Or, if i must move the LPAR on another server with another FCS, i have to change the zoning??
Thanks in advance.
Mario
---------- Post updated 09-21-12 at 02:51 AM ---------- Previous update was 09-20-12 at... (1 Reply)
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)
I have two file one will have WWN and port details and another file will have allies name. I need to check what allies name was given to each wwn and create a consolidate report which will both port details, allies name.
file one switchshow
133 1 21 188500 id N4 ... (4 Replies)