1 .\" Copyright (c) 2007-2010 Daniel Braniss <danny@cs.huji.ac.il>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd login/negotiator/control for an iSCSI initiator session
42 .Op Ar variable Ns = Ns Ar value
45 This command, along with its kernel counterpart
46 .Xr iscsi_initiator 4 ,
48 Users are advised to use
53 Internet SCSI (iSCSI) is a network protocol standard, that allows the
54 use of the SCSI protocol over TCP/IP networks,
57 program is the userland side of an iSCSI session, see
58 .Xr iscsi_initiator 4 .
59 It has 2 modes of operation, if -d (discovery session) is specified,
62 returned by the target and exit.
63 In the second mode, it will, after a successful login/negotiation, run
64 in daemon mode, monitoring the connection, and will try to reconnect
65 in case of a network/target failure.
66 It will terminate/logout the session
67 when a SIGHUP signal is received.
68 The flags are as follows:
69 .Bl -tag -width variable=value
71 a file containing configuration
82 is specified, then search for the block named
87 will write the process ID of the session to the specified
90 the target's IP address or name.
93 .It Ar variable Ns = Ns Ar value
96 for the complete list of variables/options and their
100 .Dl iscontrol -dt myiscsitarget
103 .Em discovery session
105 print to stdout the list of available targetnames/targetadresses.
106 Note: this listing does not necessarily mean availability, since
107 depending on the target configuration, a discovery session might
108 not need login/access permission, but a
112 .Dl iscontrol -c /etc/iscsi.conf -n myiscsi
114 will read options from
115 .Pa /etc/iscsi.conf ,
116 use the targetaddress
117 found in the block nicknamed myiscsi, login and negotiate
118 whatever options are specified, and start an iscsi-session.
121 .Xr iscsi_initiator 4 ,
131 should probably load the iscsi_initiator module if needed.
133 Not all functions/specifications have been implemented yet, noticeably
134 missing are the Task Management Functions.
135 The error recovery, though not
137 does a brave effort to recover from network disconnects.