Debian Codegraph @

doc/istgtcontrol.1.in

raw ◀ ▶
1 Debian patch touch this file
•1 .TH istgtcontrol 1 "Oct 07, 2011" "istgtcontrol"
2 .SH NAME
3 istgtcontrol \- istgt iSCSI target command utility
4 .SH SYNOPSIS
5 .B istgtcontrol
6 [options] <command> [<file>]
7 .SH DESCRIPTION
8 \fBistgtcontrol\fP is a command and control utility for \fBistgt\fP(1).
9 It can be used to query and change the status of a local or remote
10 \fBistgt\fP instance.
11 .PP
12 \fBistgtcontrol\fP supports the commands denoted below to interact with
13 the \fBistgt\fP instance. By default it connects and authenticates to
14 the iSCSI target portal specified in the \fBistgtcontrol.conf\fP
15 configuration file and uses CHAP credentials denoted there, if any.
16 Both can be overridden by using the respecitve command line arguments.
17 .SH COMMANDS
18
19 \fBistgtcontrol\fP understands the following commands which can be
20 forwarded to \fBistgt\fP:
21
22 .TP
23 .BI "noop"
24 Do not actually do anything, but test responsiveness of the portal and
25 test CHAP credentials only.
26 .TP
27 .BI "version"
28 Retrieve the \fBistgt\fP version number providing the iSCSI
29 portal \fBistgtcontrol\fP connected to.
30 .TP
31 .BI "list"
32 List all, or the specified targets only, which shared by the portal.
33 .TP
34 .BI "load"
35 Load a new media to the specified unit. This command issues the same
36 command as if a drive tray had been closed on a SCSI device.
37
38 .TP
39 .BI "unload"
40 Unload a media from the specified unit. This command issues the same
41 command as if the drive tray had been opened from a SCSI device.
42
43 .TP
44 .BI "change" " \fIfile\fP"
45 Change the loaded media by the specified unit. This command is
46 equivalent as if a new media (for example a DVD-ROM or tape cartridge) had
47 been inserted in the SCSI drive. The "\fIfile\fP" argument is interpreted
48 as filename to be loaded.
49
50 .TP
51 .BI "reset"
52 Reset the specified LUN of the portal.
53 .TP
54 .BI "info"
55 Display all connections of the portal
56
57 .SH OPTIONS
58 .TP
59 .BI \-c " \fIconfig\fP"
60 Use specified file as configuration file instead of the default file.
61 .TP
62
63 .BI -h " \fIhost\fP"
64 Override the target portal by the specified host name or IP address. This
65 defaults to "localhost" if no other host was specified in the
66 configuration file.
67 .TP
68 .BI -p " \fIport\fP"
69 Override the target portal port by the specified port number. This defaults
70 to "3261" if no other port was specified in the configuration file.
71 .TP
72 .BI -t " \fItarget\fP"
73 Specifies the target IQN which should be affected by the command given.
74 There may be a default given in the configuration file. The keyword
75 "\fIall\fP" is accepted by some commands and matches all exported volumes.
76 .TP
77 .BI -l " \fIlun\fP"
78 Specifies the target LUN which should be affected by the command given.
79 This defaults to "0" unless another default was provided in the configuration
80 file.
81 .TP
82 .BI -f " \fIflags\fP"
83 Specifies flags passed to the portal when loading a new media. This
84 defaults to "ro". Supported \fIflags\fP are: "ro", "rw", "extend" and
85 "dynamic".
86 .TP
87 .BI -s " \fIsize\fP"
88 Specifies the size of the meda to be loaded. The default is to auto-detect the
89 media size.
90 .TP
91 .BI -q
92 Quiet mode, supress non-critical outputs.
93 .TP
94 .BI -v
95 Verbose mode, gives more output during operations.
96 .TP
97 .BI -A " \fImethod\fP"
98 Sets the preferred authentication method for logging in to the portal. This
99 overrides any method specified in the configuration file. Supported
100 methods are either CHAP/Mutual or CHAP/Auto.
101 .TP
102 .BI -U " \fIuser\fP"
103 Sets the user to authenticate on the portal. This overrides any username
104 specified in the configuration file.
105 .TP
106 .BI -S " \fIsecret\fP"
107 Set the secret used to authenticate on the portal. This overrides any
108 secret specified in the configuration file.
109 .TP
110 .BI -M " \fImuser\fP"
111 Set the mutual authentication user. This overrides any user specified in
112 the configuration file.
113 .TP
114 .BI -R " \fImsecret\fP"
115 Set the mutual authentication secret. This overrides any secret
116 specified in the configuration file.
117 .TP
118 .BI -H
119 Display a brief usage summary and exit.
120 .TP
121 .BI -V
122 Display the \fBistgtcontrol\fP version number and exit.
123 .TP
124
125
126 .SH FILES
127 .PD 0
128 .TP
129 .I %%CONFIGDIR%%/istgtcontrol.conf
130 Configuration file
131
132 .PD
133 .SH SEE ALSO
134 \fBistgt\fP(1)
135 .PD
136 .SH AUTHORS
137 Daisuke Aoyama <[email protected]>
138
139 This manual page was written by Arno Töll (<[email protected]>) for the Debian
140 GNU/kFreeBSD system (but may be used by others).