forked from JasonAlt/UberFTP
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mssftp.1
671 lines (645 loc) · 22.5 KB
/
mssftp.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
.\" @(#)mssftp.1c 1.34 90/02/15 SMI; from UCB 4.3
.TH MSSFTP 1C "12 Nov 2020"
.SH NAME
mssftp \- File transfer program for NCSA's mass storage system
.SH SYNOPSIS
.B mssftp
.RB [options]
.RB [cmds]
.SH DESCRIPTION
.IX "mssftp command" "" "\fLmssftp\fP \(em file transfer"
.IX GridFTP grid files transfer
.IX "file transfer protocol" "mssftp command" "" "\fLmssftp\fP command"
.LP
.B mssftp
is a GridFTP-enabled client that supports both interactive use and
FTP commands on the command line to transfer files between NCSA's mass
storage system and the local system. It is based upon NCSA's UberFTP client.
\fBmssftp\fR supports GSI authentication, parallel data
channels and striping. For more information about GridFTP, see the GridFTP
URL in the "SEE ALSO" section below.
.B mssftp
connects only to NCSA's mass storage system (mss.ncsa.uiuc.edu). User
authentication is done without requiring a password, so you can
access the mass storage system from a batch job without putting the password
into a .netrc file.
Upon execution,
.B mssftp
immediately attempts to establish a connection to the FTP server
on mss.ncsa.uiuc.edu. If no commands are given on the command, the client
will enter its command interpreter and await instructions from the user. If
commands are given on the commandline, the client will execute these commands
in order and exit upon the first error encountered or upon successful
completion of all given commands. This list must be enclosed in quotes.
Multiple commands are semicolon or comma delimited.
.SH OPTIONS
.TP
.B \-active
Use ACTIVE mode for data transfers.
.TP
.B \-ascii
Use ASCII mode for data transfers.
.TP
.B \-binary
Use BINARY mode for data transfers.
.TP
.B \-blksize \fIn\fR
Set the internal buffer size to \fIn\fR.
.TP
.B \-cksum [\fIon\fR|\fIoff\fR]
Enable/Disable CRC checks after file transfers.
.TP
.B \-cos \fIname\fR
Set the storage class of service to \fIname\fR. Used with HPSS installations.
Use the class of service name \fIdefault\fR to allow the remote
server to decide which class of service to use.
.TP
.B \-d
Enable debugging. Same as '-debug 3'. Deprecated.
.TP
.B \-debug \fIn\fR
Set the debug level to \fIn\fR.
.TP
.B \-family \fIname\fR
Set the remote storage family to \fIname\fR.
Use the family name \fIdefault\fR to allow the remote
server to decide which family to use.
.TP
.B \-g
Disable filename globbing. Same as '-glob off'. Deprecated.
.TP
.B \-glob [\fIon\fR|\fIoff\fR]
Enable/Disable filename expansion.
.TP
.B \-hash
Enable printing of hash marks during transfers.
.TP
.B \-keepalive \fIn\fR
Send control channel keepalive messages every \fIn\fR seconds
during data transfers.
.TP
.B \-mode [\fIE\fR|\fIS\fR]
Switch the transfer mode to extended block (\fIE\fR) or
streams mode (\fIS\fR).
.TP
.B \-parallel \fIn\fR
Use \fIn\fR parallel data channels during extended block transfers.
.TP
.B \-passive
Use PASSIVE mode for data transfers.
.TP
.B \-pbsz \fIn\fR
Set the data protection buffer size to \fIn\fR n bytes.
.TP
.B \-prot [\fIC\fR|\fIS\fR|\fIE\fR|\fIP\fR]
Set the data protection lelvel to clear (\fIC\fR), safe (\fIS\fR),
confidential (\fIE\fR) or private (\fIP\fR).
.TP
.B \-retry \fIn\fR
Retry commands that fail with transient errors \fIn\fR times.
.TP
.B \-resume \fIpath\fR
Retry the recursive transfer starting at \fIpath\fR.
.TP
.B \-tcpbuf \fIn\fR
Set the TCP read/write buffers to \fIn\fR bytes.
.TP
.B \-wait
This will cause the client to wait for remote files to stage before
attempting to transfer them.
.TP
.B \-v
Enable verbose mode. Same as '-debug 3'. Deprecated.
.TP
.B \-version
Print mssftp version information and exit.
.TP
.B \-versions
Print version information about all used globus modules and exit.
.SH DEFAULT TRANSFER MODE
.LP
By default, without any special environment variables, command line options
or commands, \fBmssftp\fR will transfer files in ACTIVE STREAMS mode.
ACTIVE means that the server will initiate the data connection which increases
performance to NCSA's mass storage system. STREAMS mode implies that GRIDFTP
features including striping and parallel data connections are not used. In
order to take advantage of these features with GridFTP capable servers, you
must either change the mode directly using \-m command line switch or the
.B mode
interactive command, or you can change the mode indirectly by specifying
more than one parallel data connection using the \-c command line switch or
by using the
.B parallel
interactive command.
.SH COMMANDS
.TP
.B ! [\fIcommand\fR]
Run the command using a shell on the local machine. If no command is given,
invoke an interactive shell.
.TP
.B ? [\fIcommand\fR]
If \fIcommand\fR is given, print a (hopefully) helpful blurb about it.
Otherwise, list all commands.
.TP
.B active
Change to ACTIVE mode which causes the server to initiate the data
connection. The is the default for mssftp.
If you are behind a firewall you must use PASSIVE mode.
.TP
.B ascii
Change the data transfer type to ASCII which causes the server to do some
simple transformations to the file being transferred. This is mostly useful
for changing EOL (end of line) in text files when moving between platforms.
This option is almost never necessary today. The default is BINARY mode
also known as IMAGE mode.
.TP
.B binary
Change the data transfer type to BINARY (aka IMAGE) which causes the server
to not perform transformations to the file being transferred. This is the
default and is faster than an ASCII transfer.
.TP
.B blksize \fIsize\fR
Change the size of the memory buffer used to read and write data to disks
to \fIsize\fR bytes. The default block size is 1024*1024 (1048576) bytes but it can be changed at compile time. The
block size can be increased to improve file transfer performance. This is
not related to the extended block mode block size used to determine the
ratio of data to header for data transferred on the data channel.
.TP
.B bugs
Prints information regarding bug reporting and feature requests.
.TP
.B bye
Close all control and data connections and exit.
.TP
.B cat \fIfile1\fR [\fIfile2\fR ... \fIfilen\fR]
Print the contents of the remote file(s) to stdout.
.TP
.B cd [\fIdir\fR]
Change the remote working directory to \fIdir\fR. If \fIdir\fR is not given,
the client will make every attempt to change to the user's home directory.
'~' expansion and '-' previous directory are supported.
.TP
.B cdup
Change the remote working directory up one level.
.TP
.B chgrp [\fI-r\fR] \fIgroup\fR \fIobject\fR [\fIobject2\fR ... \fIobjectn\fR]
Change group ownership on the remote object(s).
.br
\fI-r\fR Recursively chgrp everything in the given directory.
.TP
.B chmod [\fI-r\fR] \fIperms\fR \fIobject\fR [\fIobject2\fR ... \fIobjectn\fR]
Change permissions on the remote object(s).
.br
\fI-r\fR Recursively chmod everything in the given directory.
.TP
.B cksum [\fIon\fR|\fIoff\fR]
Enable file cksum comparison after each file transfer. This only works with
NCSA's mass storage system.
.br
\fIon\fR Enable checksum comparison
.br
\fIoff\fR Disable checksum comparison
.TP
.B close
Close the control connection to the remote host.
.TP
.B cos \fIname\fR
Sets the HPSS class of service to \fIname\fR on the FTP service if the service
supports it. If \fIname\fR is omitted, the current class of service is printed.
Use the class of service name \fIdefault\fR to allow the remote
server to decide which class of service to use.
.TP
.B dcau [\fIN\fR|\fIA\fR|\fIS\fR \fIsubject\fR]
Change the data channel authentication settings. If the service does not
support DCAU, these settings are ignored.
.br
\fIN\fR Disabled dcau.
.br
\fIA\fR Expect the remote identity to be mine. (Default)
.br
\fIS\fR \fIsubject\fR Expect the remote identity to be \fIsubject\fR.
.TP
.B debug [\fI0-3\fR]
Turn debug statements on/off. If no value is given, this command will
toggle between debug(2) and non debug(1) mode. Otherwise the debug level
is set to the given level.
.br
0 Only errors are printed
.br
1 Default. Errors and some helpful messages are printed
.br
2 Print useful control channel information
.br
3 Print all information
.TP
.B delete [\fI-r\fR] object1 [object1...objectn]
Alias for rm. This command has been deprecated.
.br
-r Recursively remove the given directory.
.TP
.B dir [\fI-r\fR] [\fItarget\fR]
List the contents of the remote target directory. If \fItarget\fR is not given,
then the current working directory is used.
.br
\fI-r\fR Recursively list \fItarget\fR.
.br
\fItarget\fR Directory or file to list. '.' is used by default.
.TP
.B disconnect
Alias for close. This command has been deprecated.
.TP
.B family \fIname\fR
Sets the tape family to \fIname\fR on the FTP service if the service
supports it. If \fIname\fR is omitted, the current family is printed.
Use the family name \fIdefault\fR to allow the remote
server to decide which family to use.
.TP
.B get [\fI-r\fR] \fIsource\fR [\fIdestination\fR]
Retrieve file(s) from the remote service. If \fIsource\fR implies multiple
transfers, either through regular expressions or by using the recursive
feature, then \fIdestination\fR must be a directory. If \fIdestination\fR is not
specified, \fIsource\fR is used.
.br
\fI-r\fR Recursively transfer the given directory.
.TP
.B glob [\fIon\fR|\fIoff\fR]
Enable or disable filename globbing. If no option is given, this command
will toggle the current setting.
.br
\fIon\fR Enable filename globbing
.br
\fIoff\fR Disable filename globbing
.TP
.B hash
Print hash marks during data transfers. This does not work during third
party transfers.
.TP
.B help [\fIcommand\fR]
If \fIcommand\fR is given, print a helpful blurb about \fIcommand\fR.
Otherwise, list all commands.
.TP
.B keepalive [\fIseconds\fR]
Attempts to keep the control channel from being blocked by firewalls during
long data channel operations. mssftp sends a NOOP command to the service
at intervals equal to the specified number of \fIseconds\fR. Setting it to zero
will disable keepalive. If \fIseconds\fR are not given, the current timeout is
displayed. This feature is disabled by default.
.br
seconds number of seconds between NOOPs. Disabled if zero.
.TP
.B lcat \fIfile1\fR [\fIfile2\fR ... \fIfilen\fR]
Print the contents of the local file(s) to stdout.
.TP
.B lcd [\fIdir\fR]
Change the local working directory to \fIdir\fR. If \fIdir\fR is not given,
the client will make every attempt to change to the user's home directory.
'~' expansion and '-' previous directory are supported.
.TP
.B lcdup
Change the local working directory up one level.
.TP
.B lchgrp [\fI-r\fR] \fIgroup\fR \fIobject\fR [\fIobject2\fR ... \fIobjectn\fR]
Change group ownership on the local object(s).
.br
\fI-r\fR Recursively chgrp everything in the given directory.
.TP
.B lchmod [\fI-r\fR] \fIperms\fR \fIobject\fR [\fIobject2\fR ... \fIobjectn\fR]
Change permissions on the local object(s).
.br
\fI-r\fR Recursively chmod everything in the given directory.
.TP
.B ldir [\fI-r\fR] [\fItarget\fR]
List the contents of the local \fItarget\fR directory. If \fItarget\fR is not given,
then the current working directory is used.
.br
\fI-r\fR Recursively list \fItarget\fR.
.br
target Directory or file to list. '.' is used by default.
.TP
.B link [\fIoldfile\fR] [\fInewfile\fR]
Create a hardlink to oldfile named newfile on the remote service.
.TP
.B llink [\fIoldfile\fR] [\fInewfile\fR]
Create a hardlink to oldfile named newfile on the local service.
.TP
.B lls [\fI-r\fR] [\fItarget\fR]
List the contents of the local \fItarget\fR directory. If \fItarget\fR is not given,
then the current working directory is used.
.br
\fI-r\fR Recursively list \fItarget\fR.
.br
target Directory or file to list. '.' is used by default.
.TP
.B lmkdir \fIdir1\fR [\fIdir2\fR ... \fIdirn\fR]
Create the local directory(ies).
.TP
.B lpwd
Prints the current local working directory.
.TP
.B lquote \fIcmd\fR
Pass \fIcmd\fR to the local FTP service. This allows the user to use
server-specific commands that are not available through the mssftp
interface.
.TP
.B lrename \fIsrc\fR \fIdst\fR
Rename the local object \fIsrc\fR to \fIdst\fR.
.TP
.B lrm [\fI-r\fR] \fIobject1\fR [\fIobject1\fR...\fIobjectn\fR]
Removes the local file system object(s).
.br
\fI-r\fR Recursively remove the given directory.
.TP
.B lrmdir \fIdir1\fR [\fIdir2\fR...\fIdirn\fR]
Removes the given directories from the local service.
.TP
.B ls [\fI-r\fR] [\fItarget\fR]
List the contents of the remote target directory. If [\fItarget\fR] is not given,
then the current working directory is used.
.br
\fI-r\fR Recursively list \fItarget\fR.
.br
\fItarget\fR Directory or file to list. '.' is used by default.
.TP
.TP
.B lscos
List the available class of services on the remote server (HPSS only).
.TP
.B lsfam
List the available tape families on the remote server (HPSS only).
.TP
.B lsize \fIfile1\fR [\fIfile2\fR...\fIfilen\fR]
Prints the size of the given object(s).
.TP
.B lstage [\fI-r\fR] \fIseconds\fR \fIobject1\fR [\fIobject2\fR...\fIobjectn\fR]
Attempt to stage all matching files within the given number of \fIseconds\fR
on the local service.
.br
seconds number of seconds to attempt staging
.br
\fI-r\fR Recursively stage all files in the given subdirectory.
.TP
.B lsymlink [\fIoldfile\fR] [\fInewfile\fR]
Create a symlink to oldfile named newfile on the local service.
.TP
.B mput [\fI-r\fR] \fIobject1\fR [\fIobject2\fR...\fIobjectn\fR]
Retrieve file(s) from the remote service. This is similiar to making
multiple calls to get without specifying a destination.
.br
\fI-r\fR Recursively transfer the given directory.
.TP
.B mkdir \fIdir\fR
Create the remote directory.
.TP
.B mode [\fIE\fR|\fIS\fR]
Toggle the data transfer mode between Streams mode and Extended Block
mode. The default is Streams mode. If no option is given, it will
display the current mode.
.br
E Extended block mode
.br
S Streams mode
.TP
.B mput [\fI-r\fR] \fIobject1\fR [\fIobject2\fR...\fIobjectn\fR]
Store file(s) to the remote service. This is similiar to making
multiple calls to put without specifying a destination.
.br
\fI-r\fR Recursively transfer the given directory.
.TP
.B open
Opens a control channel to mss.ncsa.uiuc.edu and that host becomes
the 'remote' machine. GSI authentication is used.
.TP
.B order [\fItype\fR]
Changes the order of lists returned from ls and lls to the given scheme.
If \fItype\fR is not given, the current order is displayed.
.br
\fItype\fR Ordering scheme to use. Value options are:
.br
none Do not order listings
.br
name Order listings by name
.br
size Order listings by size
.br
type Order listings by type
.TP
.B parallel [\fInumber\fR]
Set the number of parallel data connections to \fInumber\fR. This is only
useful for extended block mode transfers. The default number of data
connections is one. If no number is given, the current setting for the
number of parallel connects is printed.
.TP
.B passive
Change to PASSIVE mode which causes the client to initiate the data
connection. The default is ACTIVE mode. If you are behind a
firewall you must use PASSIVE mode.
.TP
.B pbsz [\fIsize\fR]
Change the length of the protection buffer. The protection buffer is used
to encrypt data on the data channel. The length of the protection buffer
represents the largest encoded message that is allowed on the data channel.
By default, the protection buffer is grown to match the internal buffer
used. For efficient transfers, pbsz should be sufficiently larger than
blksize so that the wrapped buffer fits within the protection buffer.
Otherwise, the blksize buffer is broken into multiple pieces so that each
write is less than pbsz when wrapped. If \fIpbsz\fR is not given, the
current size is displayed.
.br
\fIsize\fR length of protection buffer. 0 will set it to its default.
.TP
.B pget \fIoffset\fR \fIsize\fR \fIsrcfile\fR [\fIdestfile\fR]
Retrieve only the specified portion of the file(s). If srcfile is a regular
expression and expands to multiple files, and destination is given,
destination must refer to a directory.
.br
\fIoffset\fR Offset within the file
.br
\fIsize\fR Amount of data to retrieve
.br
\fIsrcfile\fR Name of remote file
.br
\fIdestfile\fR Name of local file. srcfile is used if destfile
.br
is not specified
.TP
.B pput \fIoffset\fR \fIsize\fR \fIsrcfile\fR [\fIdestfile\fR]
Store only the specified portion of the file(s). If srcfile is a regular
expression and expands to multiple files, and destination is given,
destination must refer to a directory.
.br
\fIoffset\fR Offset within the file
.br
\fIsize\fR Amount of data to retrieve
.br
\fIsrcfile\fR Name of local file
.br
\fIdestfile\fR Name of remote file. srcfile is used if destfile
.br
is not specified
.TP
.B prot [\fIC\fR|\fIS\fR|\fIE\fR|\fIP\fR]
This command configures the level of security on the data channel after
data channel authentication has completed. Clear means that the data will
not be protected. Safe means that the data will be integrity protected
meaning that altered data will be detected. Confidential means that the data
will be unreadable to third parties. Private mode means the data will be
confidential and safe.
.br
\fIC\fR Set protection level to clear.
.br
\fIS\fR Set protection level to safe.
.br
\fIE\fR Set protection level to confidential.
.br
\fIP\fR Set protection level to private.
.TP
.B put [\fI-r\fR] \fIsource\fR [\fIdestination\fR]
Store file(s) to the remote service. If \fIsource\fR implies multiple
transfers, either through regular expressions or by using the recursive
feature, then \fIdestination\fR must be a directory. If \fIdestination\fR is not
specified, \fIsource\fR is used.
.br
\fI-r\fR Recursively transfer the given directory.
.TP
.B pwd
Prints the current working directory.
.TP
.B quit
Close all control and data connections and exit.
.TP
.B quote \fIcmd\fR
Pass \fIcmd\fR to the remote FTP service. This allows the user to use
server-specific commands that are not available through the mssftp
interface.
.TP
.B rename \fIsrc\fR \fIdst\fR
Rename the remote object \fIsrc\fR to \fIdst\fR.
.TP
.B retry [\fIcnt\fR]
Configures retry on failed commands that have transient errors. \fIcnt\fR
represents the number of times a failed command is retried. A value of
zero effectively disables retry. Zero is the default. If no value is given
the current setting is displayed.
.br
\fIcnt\fR Number of times a failed command is retried.
.TP
.B resume [\fI-d\fR] \fIpath\fR
Sets a restart point for recursive transfers. If a long recursive transfer
fails, you can set resume to the path that failed and mssftp will skip
all file and directory creations up to the given path.
.br
\fIpath\fR Path to resume transfer at. If \fIpath\fR is not given, print the current
.br
resume target.
.br
\fI-d\fR Remove the current resume path.
.TP
.B rm [\fI-r\fR] \fIobject1\fR [\fIobject1\fR...\fIobjectn\fR]
Removes the remote file system object(s).
.br
\fI-r\fR Recursively remove the given directory.
.TP
.B rmdir \fIdir1\fR [\fIdir2\fR...\fIdirn\fR]
Removes the given directories from the remote service.
.TP
.B runique
Toggles the client to store files using unique names during put operations.
.TP
.B size \fIfile1\fR [\fIfile2\fR...\fIfilen\fR]
Prints the size of the given object(s).
.TP
.B stage [\fI-r\fR] \fIseconds\fR \fIobject1\fR [\fIobject2\fR...\fIobjectn\fR]
Attempt to stage all matching files within the given number of seconds
on the remote service.
.br
\fIseconds\fR number of seconds to attempt staging
.br
\fI-r\fR Recursively stage all files in the given subdirectory.
.TP
.B sunique
Toggles the client to store files using unique names during get operations.
.TP
.B symlink [\fIoldfile\fR] [\fInewfile\fR]
Create a symlink to oldfile named newfile on the remote service.
.TP
.B tcpbuf [\fIsize\fR]
Set the data channel TCP buffer size to \fIsize\fR bytes. If \fIsize\fR is not
given, the current TCP buffer size will be printed.
.TP
.B versions
Prints the versions of all Globus modules being used.
.TP
.B wait
Toggles whether the client should wait for files to stage before attempting
to retrieve them.
.SH IMPROVING FILE TRANSFER PERFORMANCE
.LP
When tranferring files over long distances, use a large value (for example,
16777216) for \fBtcpbuf\fR.
When there is high network traffic, you may be able to improve
performance using the \fBparallel\fR command to increase the number of
parallel data connections to 2-4.
.SH THIRD-PARTY TRANSFERS
.LP
All remote service commands have "l*" counterparts that allow you
to specifiy that the command is to be performed on the local host.
.SH CONTROLLING EPHEMERAL PORT SELECTION
.LP
By default, local port selection is managed by the operating system. However,
you may wish to specify which ports mssftp should use for incoming and
out going connections. This is useful when dealing with firewalls.
Setting UBERFTP_TCP_PORT_RANGE in your environment will cause all inbound
connections to use the specified port range. Likewise, setting
UBERFTP_TCP_SOURCE_RANGE in your environment will cause all outbound connections
to use the specified port range.
The environment variables GLOBUS_TCP_PORT_RANGE and GLOBUS_TCP_SOURCE_RANGE
will also control the ephemeral port selection. These variables behave exactly
as their UBERFTP counterparts and are available for backwards compatibility with
older versions. The UBERFTP variables take precedence over the GLOBUS variables.
The values of the variables specify a port range, a minimum port number and a
maximum port number, separated by either a comma or a space. For example, to
set the inbound port range, you would set:
UBERFTP_TCP_PORT_RANGE=40000,50000
Using the space delimiter, this format is also acceptable:
UBERFTP_TCP_PORT_RANGE="40000 50000"
See your shell documentation for the proper syntax for settings variables within
your environment.
Setting the ephemeral port range to an unusable range will cause mssftp connections
to fail. For instance, setting a port range from 10 to 100 with a non root process will
fail on most operating systems.
.SH EXIT VALUES
.LP
mssftp will exit with a value of 0 if no errors occurred during the session,
otherwise it will exit with a value of 1. In non interactive, commandline mode,
it will exit after the first error occurs.
.SH EXAMPLES
.LP
Connect to NCSA's mass storage system interactively from
NCSA's TeraGrid cluster:
% mssftp
...
220 UNIX Archive FTP server ready.
230 User consult logged in.
ftp>
Use the command-line interface to copy a file from NCSA's TeraGrid cluster
to the mass storage system:
% mssftp "cd work; get file.tar"
.SH "SEE ALSO"
.BR uberftp (1),
.BR msscmd (1),
.BR ftp (1),
.br
GridFTP:
.br
https://gridcf.org/gct-docs/latest/gridftp/
.br
TCP Window Size:
.br
http://www.vonwelch.com/report/tcp_windows/
http://www.psc.edu/tcp-tune
.br
Active vs. Passive FTP:
.br
http://slacksite.com/other/ftp.html
\fBNote: The links above are not under the GridCF's control
so they may become obsolete.\fR