Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

stmfofflinetarget(3stmf) [opensolaris 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)

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)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

A Modem Dailer

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)
Discussion started by: S.P.Prasad
4 Replies

2. IP Networking

Sniffing an established port

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)
Discussion started by: matrixmadhan
5 Replies

3. Solaris

Cluster group offline then online in 2 minutes

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)
Discussion started by: ddk2oo5
0 Replies

4. IP Networking

how can i check if port is busy or if someone is using it ?

Hello i have application that using ports , how can i check if the port im using is not captured by any applications? (1 Reply)
Discussion started by: umen
1 Replies

5. Shell Programming and Scripting

How to reverse output?

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)
Discussion started by: a2156z
4 Replies

6. Solaris

How to keep volumes offline after reboot

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)
Discussion started by: kumarmani
9 Replies

7. Shell Programming and Scripting

Showing offline users

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)
Discussion started by: mikejreading
4 Replies

8. Shell Programming and Scripting

Server Staus offline to online -Shell script

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)
Discussion started by: chowdary_m
2 Replies

9. UNIX for Advanced & Expert Users

how to find any device online/offline

what is the command for checking which device active and which is not active (1 Reply)
Discussion started by: RahulJoshi
1 Replies

10. UNIX for Dummies Questions & Answers

How to recover services from offline to online?

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)
Discussion started by: masthan25
1 Replies

11. Red Hat

USB drive going offline

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)
Discussion started by: sunny_a_j
1 Replies

12. Solaris

"Device busy" When Reopening Serial Port

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)
Discussion started by: Jim Ryan
11 Replies

13. OS X (Apple)

OpenStreetMap client (with offline maps) for Mac OS X

Hi I am searching for an OpenStreetMap client (with offline maps) for Mac OS X. Like Google Earth client, but with offline maps. (2 Replies)
Discussion started by: slashdotweenie
2 Replies

14. Shell Programming and Scripting

Target string with gsub

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)
Discussion started by: Apollo
3 Replies

15. UNIX for Dummies Questions & Answers

Typeset issue

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)
Discussion started by: sharad.40216
2 Replies