| 1 |
Description: Add istgtcontrol manpage |
| 2 |
Add the manpages for the istgtcontrol.1 command. Modified files: |
| 3 |
. |
| 4 |
* doc/istgtcontrol.1.in - new file |
| 5 |
* doc/Makefile.in - change Makefile to make use of the Makefile |
| 6 |
Forwarded: Yes |
| 7 |
Author: Arno Töll <[email protected]> |
| 8 |
Applied-Upstream: not yet |
| 9 |
Last-Update: 2010-10-07 |
| 10 |
|
| 11 |
--- a/doc/Makefile.in |
| 12 |
+++ b/doc/Makefile.in |
| 13 |
@@ -19,22 +19,24 @@ |
| 14 |
|
| 15 |
source = |
| 16 |
header = |
| 17 |
|
| 18 |
+document = QUICKSTART QUICKSTART.jp |
| 19 |
sample = |
| 20 |
+MANPAGES = $(patsubst %.1.in, %.1, $(wildcard *.1.in)) |
| 21 |
|
| 22 |
DISTDIR = $(top_srcdir)/`cat $(top_srcdir)/distdir` |
| 23 |
DISTFILES = Makefile.in \ |
| 24 |
$(header) $(source) \ |
| 25 |
$(document) $(sample) |
| 26 |
+DISTFILES += $(MANPAGES) |
| 27 |
|
| 28 |
######################################################################### |
| 29 |
|
| 30 |
|
| 31 |
+all: $(MANPAGES) |
| 32 |
|
| 33 |
|
| 34 |
+$(MANPAGES): |
| 35 |
$(SED) -e 's:%%PREFIX%%:$(prefix):g' \ |
| 36 |
-e 's:%%CONFIGDIR%%:$(configdir):g' \ |
| 37 |
|
| 38 |
+ -e 's:%%MEDIADIR%%:$(mediadir):g' < $(patsubst %.1, %.1.in, $@) > $@ |
| 39 |
|
| 40 |
dist: $(DISTFILES) |
| 41 |
mkdir $(DISTDIR)/$(subdir) |
| 42 |
@@ -44,9 +46,13 @@ |
| 43 |
done |
| 44 |
|
| 45 |
install: install-dirs |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
+ set -e |
| 50 |
+ for file in $(MANPAGES) ; \ |
| 51 |
+ do \ |
| 52 |
+ install -c -m 0644 $$file $(DESTDIR)$(mandir)/man1/ ; \ |
| 53 |
+ rm -f $(DESTDIR)$(mandir)/man1/$$file.gz ; \ |
| 54 |
+ gzip -9 $(DESTDIR)$(mandir)/man1/$$file ; \ |
| 55 |
+ done |
| 56 |
|
| 57 |
install-doc: install-doc-dirs |
| 58 |
install -c -m 0644 $(top_srcdir)/README $(DESTDIR)$(datadir)/doc/istgt/ |
| 59 |
@@ -61,7 +67,7 @@ |
| 60 |
mkdir -p $(DESTDIR)$(datadir)/doc/istgt |
| 61 |
|
| 62 |
clean: |
| 63 |
|
| 64 |
+ -rm -f $(MANPAGES) |
| 65 |
-rm -f a.out *.o *.core |
| 66 |
-rm -f *~ |
| 67 |
|
| 68 |
--- /dev/null |
| 69 |
+++ b/doc/istgtcontrol.1.in |
| 70 |
@@ -0,0 +1,140 @@ |
| 71 |
+.TH istgtcontrol 1 "Oct 07, 2011" "istgtcontrol" |
| 72 |
+.SH NAME |
| 73 |
+istgtcontrol \- istgt iSCSI target command utility |
| 74 |
+.SH SYNOPSIS |
| 75 |
+.B istgtcontrol |
| 76 |
+[options] <command> [<file>] |
| 77 |
+.SH DESCRIPTION |
| 78 |
+\fBistgtcontrol\fP is a command and control utility for \fBistgt\fP(1). |
| 79 |
+It can be used to query and change the status of a local or remote |
| 80 |
+\fBistgt\fP instance. |
| 81 |
+.PP |
| 82 |
+\fBistgtcontrol\fP supports the commands denoted below to interact with |
| 83 |
+the \fBistgt\fP instance. By default it connects and authenticates to |
| 84 |
+the iSCSI target portal specified in the \fBistgtcontrol.conf\fP |
| 85 |
+configuration file and uses CHAP credentials denoted there, if any. |
| 86 |
+Both can be overridden by using the respecitve command line arguments. |
| 87 |
+.SH COMMANDS |
| 88 |
+ |
| 89 |
+\fBistgtcontrol\fP understands the following commands which can be |
| 90 |
+forwarded to \fBistgt\fP: |
| 91 |
+ |
| 92 |
+.TP |
| 93 |
+.BI "noop" |
| 94 |
+Do not actually do anything, but test responsiveness of the portal and |
| 95 |
+test CHAP credentials only. |
| 96 |
+.TP |
| 97 |
+.BI "version" |
| 98 |
+Retrieve the \fBistgt\fP version number providing the iSCSI |
| 99 |
+portal \fBistgtcontrol\fP connected to. |
| 100 |
+.TP |
| 101 |
+.BI "list" |
| 102 |
+List all, or the specified targets only, which shared by the portal. |
| 103 |
+.TP |
| 104 |
+.BI "load" |
| 105 |
+Load a new media to the specified unit. This command issues the same |
| 106 |
+command as if a drive tray had been closed on a SCSI device. |
| 107 |
+ |
| 108 |
+.TP |
| 109 |
+.BI "unload" |
| 110 |
+Unload a media from the specified unit. This command issues the same |
| 111 |
+command as if the drive tray had been opened from a SCSI device. |
| 112 |
+ |
| 113 |
+.TP |
| 114 |
+.BI "change" " \fIfile\fP" |
| 115 |
+Change the loaded media by the specified unit. This command is |
| 116 |
+equivalent as if a new media (for example a DVD-ROM or tape cartridge) had |
| 117 |
+been inserted in the SCSI drive. The "\fIfile\fP" argument is interpreted |
| 118 |
+as filename to be loaded. |
| 119 |
+ |
| 120 |
+.TP |
| 121 |
+.BI "reset" |
| 122 |
+Reset the specified LUN of the portal. |
| 123 |
+.TP |
| 124 |
+.BI "info" |
| 125 |
+Display all connections of the portal |
| 126 |
+ |
| 127 |
+.SH OPTIONS |
| 128 |
+.TP |
| 129 |
+.BI \-c " \fIconfig\fP" |
| 130 |
+Use specified file as configuration file instead of the default file. |
| 131 |
+.TP |
| 132 |
+ |
| 133 |
+.BI -h " \fIhost\fP" |
| 134 |
+Override the target portal by the specified host name or IP address. This |
| 135 |
+defaults to "localhost" if no other host was specified in the |
| 136 |
+configuration file. |
| 137 |
+.TP |
| 138 |
+.BI -p " \fIport\fP" |
| 139 |
+Override the target portal port by the specified port number. This defaults |
| 140 |
+to "3261" if no other port was specified in the configuration file. |
| 141 |
+.TP |
| 142 |
+.BI -t " \fItarget\fP" |
| 143 |
+Specifies the target IQN which should be affected by the command given. |
| 144 |
+There may be a default given in the configuration file. The keyword |
| 145 |
+"\fIall\fP" is accepted by some commands and matches all exported volumes. |
| 146 |
+.TP |
| 147 |
+.BI -l " \fIlun\fP" |
| 148 |
+Specifies the target LUN which should be affected by the command given. |
| 149 |
+This defaults to "0" unless another default was provided in the configuration |
| 150 |
+file. |
| 151 |
+.TP |
| 152 |
+.BI -f " \fIflags\fP" |
| 153 |
+Specifies flags passed to the portal when loading a new media. This |
| 154 |
+defaults to "ro". Supported \fIflags\fP are: "ro", "rw", "extend" and |
| 155 |
+"dynamic". |
| 156 |
+.TP |
| 157 |
+.BI -s " \fIsize\fP" |
| 158 |
+Specifies the size of the meda to be loaded. The default is to auto-detect the |
| 159 |
+media size. |
| 160 |
+.TP |
| 161 |
+.BI -q |
| 162 |
+Quiet mode, supress non-critical outputs. |
| 163 |
+.TP |
| 164 |
+.BI -v |
| 165 |
+Verbose mode, gives more output during operations. |
| 166 |
+.TP |
| 167 |
+.BI -A " \fImethod\fP" |
| 168 |
+Sets the preferred authentication method for logging in to the portal. This |
| 169 |
+overrides any method specified in the configuration file. Supported |
| 170 |
+methods are either CHAP/Mutual or CHAP/Auto. |
| 171 |
+.TP |
| 172 |
+.BI -U " \fIuser\fP" |
| 173 |
+Sets the user to authenticate on the portal. This overrides any username |
| 174 |
+specified in the configuration file. |
| 175 |
+.TP |
| 176 |
+.BI -S " \fIsecret\fP" |
| 177 |
+Set the secret used to authenticate on the portal. This overrides any |
| 178 |
+secret specified in the configuration file. |
| 179 |
+.TP |
| 180 |
+.BI -M " \fImuser\fP" |
| 181 |
+Set the mutual authentication user. This overrides any user specified in |
| 182 |
+the configuration file. |
| 183 |
+.TP |
| 184 |
+.BI -R " \fImsecret\fP" |
| 185 |
+Set the mutual authentication secret. This overrides any secret |
| 186 |
+specified in the configuration file. |
| 187 |
+.TP |
| 188 |
+.BI -H |
| 189 |
+Display a brief usage summary and exit. |
| 190 |
+.TP |
| 191 |
+.BI -V |
| 192 |
+Display the \fBistgtcontrol\fP version number and exit. |
| 193 |
+.TP |
| 194 |
+ |
| 195 |
+ |
| 196 |
+.SH FILES |
| 197 |
+.PD 0 |
| 198 |
+.TP |
| 199 |
+.I %%CONFIGDIR%%/istgtcontrol.conf |
| 200 |
+Configuration file |
| 201 |
+ |
| 202 |
+.PD |
| 203 |
+.SH SEE ALSO |
| 204 |
+\fBistgt\fP(1) |
| 205 |
+.PD |
| 206 |
+.SH AUTHORS |
| 207 |
+Daisuke Aoyama <[email protected]> |
| 208 |
+ |
| 209 |
+This manual page was written by Arno Töll (<[email protected]>) for the Debian |
| 210 |
+GNU/kFreeBSD system (but may be used by others). |