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)
Check Out this Related Man Page
stmfCreateTargetGroup(3STMF) SCSI Target Mode Framework Library Functions stmfCreateTargetGroup(3STMF)NAME
stmfCreateTargetGroup - create a new target port group
SYNOPSIS
cc [ flag... ] file... -lstmf [ library... ]
#include <libstmf.h>
int stmfCreateTargetGroup(stmfGroupName *targetGroupName);
PARAMETERS
targetGroupName The name of the target port group to be created.
DESCRIPTION
The stmfCreateTargetGroup() function creates a new target port group.
RETURN VALUES
The following values are returned:
STMF_ERROR_EXISTS The value specified for targetGroupName already exists in the system.
STMF_INVALID_ARGUMENT The value specified for targetGroupName was not valid.
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 stmfCreateTargetGroup(3STMF)
I am trying to write a Modem Dialer Software on SCO unix platform. I have successfully opened /dev/tty1A port and made following port setings
Input Mode = 0 ( None )
OutPut Mode = 0 ( None )
Hardware Control Mode = 8 Bits , Enable Receiver , Drop DTR when application terminates ,... (4 Replies)
Hi All,
On a solaris box A port B
in which port B is established and receiving data.
My question is how do i listen on that established port ,
how can i get the data received at box A: port B through my application
I had searched the forum for the same, but i am unable to retrieve the... (5 Replies)
Hi , we are using Veritas cluster server on solaris 8. Suddenly one application group was offline and online after 2 minutes.. I have checked VCS log..
"VCS INFO V-16-1-50135 User reuters fired command: hares -offline middleman_proc server01 from 127.0.0.1" Does anyone faced this... (0 Replies)
hi,
I have to reverse the command output like below:
output:
online
offline
disable
maintening
killed
How to reverse this output like:
killed
maintening
disable
offline
online
It should be ksh script. (4 Replies)
Hi All,
How to keep the volumes offline after reboot also, i make it offline like below
# metaoffline d0 d20
after reboot its automatically getting online, however i have to keep it offline and as on required i have to make it online as per business.
Thanks in anticipation (9 Replies)
Hi,
Is there any command for showing offline users?
The only way I can think of doing it (as i cant find a command) is getting a list of all the online users, and comparing it to /etc/passwd, anything that is in /etc/passwd and not in the users file will be offline users. But I have no... (4 Replies)
Hi,
We put cron entry :whenever server is offline(checks every 5 minutes) it sends status to mailer group.
The number of messages (offline)were growing in our mailbox.How to avoid not to send offline messages after the first one through shell script.
Thanks in advance.
Chowdary (2 Replies)
Dear all,
How to recover the Dns service from offline to online?
I used the command " svcadm enable dns/client"
the command is executing but again its showing service is offline.
pls clarify and give me suggesstion...
Thanks in advance (1 Reply)
Hello all,
I have a USB drive mounted on a linux RHEL 4 server which goes offline every now n then.
Here are some logs :
---------------------------------------------
# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002... (1 Reply)
Any help much appreciated. I am a Java developer, not a Solaris adept. I'm having an issue reopening serial port with the Java app I am developing.
I develop in Windows and deploy the app on Solaris 10 (Sunfire X4170 with Xeon.) On the target machine my app uses the two serial ports... (11 Replies)
Hey guys,
I am learning awk and came across gsub and testing the target string to do substitution, what am i missing? Thanks in advance.
echo "this is a summer" | awk '{gsub(/er/, "x", "summer"); print}'
this is a summer
The following works: but i don't understand the why the above... (3 Replies)
function fxn
{
echo "target in build_ndm is $target"
}
function main
{
target=${server_type}
echo "target in main is $target"
fxn
}
In the above the value of target is not being propagated to the function while ideally it should be since typeset variables are visible in sub... (2 Replies)