1a2df389fSHajimu UMEMOTO.\" Copyright (c) 1990, 1993, 1994 29b50d902SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 39b50d902SRodney W. Grimes.\" 49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions 69b50d902SRodney W. Grimes.\" are met: 79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 89b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 109b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 119b50d902SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 129b50d902SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 139b50d902SRodney W. Grimes.\" must display the following acknowledgement: 149b50d902SRodney W. Grimes.\" This product includes software developed by the University of 159b50d902SRodney W. Grimes.\" California, Berkeley and its contributors. 169b50d902SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 179b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 189b50d902SRodney W. Grimes.\" without specific prior written permission. 199b50d902SRodney W. Grimes.\" 209b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 219b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 229b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 239b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 249b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 259b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 269b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 279b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 289b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 299b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 309b50d902SRodney W. Grimes.\" SUCH DAMAGE. 319b50d902SRodney W. Grimes.\" 329b50d902SRodney W. Grimes.\" @(#)tftp.1 8.2 (Berkeley) 4/18/94 33c3aac50fSPeter Wemm.\" $FreeBSD$ 349b50d902SRodney W. Grimes.\" 3579e44755SRuslan Ermilov.Dd October 1, 2003 369b50d902SRodney W. Grimes.Dt TFTP 1 3762500372SRuslan Ermilov.Os 389b50d902SRodney W. Grimes.Sh NAME 399b50d902SRodney W. Grimes.Nm tftp 40*752fa694SWarner Losh.Nd trivial file transfer program 419b50d902SRodney W. Grimes.Sh SYNOPSIS 42fd129a02SPhilippe Charnier.Nm 43891ca8cfSSimon L. B. Nielsen.Op Ar host Op Ar port 449b50d902SRodney W. Grimes.Sh DESCRIPTION 45e8937ba0SPhilippe CharnierThe 46e8937ba0SPhilippe Charnier.Nm 47e8937ba0SPhilippe Charnierutility is the user interface to the Internet 489b50d902SRodney W. Grimes.Tn TFTP 499b50d902SRodney W. Grimes(Trivial File Transfer Protocol), 509b50d902SRodney W. Grimeswhich allows users to transfer files to and from a remote machine. 519b50d902SRodney W. GrimesThe remote 529b50d902SRodney W. Grimes.Ar host 539b50d902SRodney W. Grimesmay be specified on the command line, in which case 54fd129a02SPhilippe Charnier.Nm 559b50d902SRodney W. Grimesuses 569b50d902SRodney W. Grimes.Ar host 579b50d902SRodney W. Grimesas the default host for future transfers (see the 58*752fa694SWarner Losh.Cm connect 599b50d902SRodney W. Grimescommand below). 609b50d902SRodney W. Grimes.Sh COMMANDS 619b50d902SRodney W. GrimesOnce 62fd129a02SPhilippe Charnier.Nm 639b50d902SRodney W. Grimesis running, it issues the prompt 64*752fa694SWarner Losh.Dq Li tftp> 659b50d902SRodney W. Grimesand recognizes the following commands: 669b50d902SRodney W. Grimes.Pp 67*752fa694SWarner Losh.Bl -tag -width verbose -compact 68*752fa694SWarner Losh.It Cm \&? Ar command-name ... 699b50d902SRodney W. GrimesPrint help information. 709b50d902SRodney W. Grimes.Pp 71*752fa694SWarner Losh.It Cm ascii 72*752fa694SWarner LoshShorthand for "mode ascii" 739b50d902SRodney W. Grimes.Pp 74*752fa694SWarner Losh.It Cm binary 75*752fa694SWarner LoshShorthand for "mode binary" 769b50d902SRodney W. Grimes.Pp 77*752fa694SWarner Losh.It Cm connect Ar host Op Ar port 789b50d902SRodney W. GrimesSet the 799b50d902SRodney W. Grimes.Ar host 809b50d902SRodney W. Grimes(and optionally 819b50d902SRodney W. Grimes.Ar port ) 829b50d902SRodney W. Grimesfor transfers. 839b50d902SRodney W. GrimesNote that the 849b50d902SRodney W. Grimes.Tn TFTP 859b50d902SRodney W. Grimesprotocol, unlike the 869b50d902SRodney W. Grimes.Tn FTP 879b50d902SRodney W. Grimesprotocol, 889b50d902SRodney W. Grimesdoes not maintain connections between transfers; thus, the 89*752fa694SWarner Losh.Cm connect 909b50d902SRodney W. Grimescommand does not actually create a connection, 919b50d902SRodney W. Grimesbut merely remembers what host is to be used for transfers. 929b50d902SRodney W. GrimesYou do not have to use the 93*752fa694SWarner Losh.Cm connect 949b50d902SRodney W. Grimescommand; the remote host can be specified as part of the 95*752fa694SWarner Losh.Cm get 969b50d902SRodney W. Grimesor 97*752fa694SWarner Losh.Cm put 989b50d902SRodney W. Grimescommands. 999b50d902SRodney W. Grimes.Pp 100*752fa694SWarner Losh.It Cm get Oo Ar host : Oc Ns Ar file Op Ar localname 101*752fa694SWarner Losh.It Cm get Xo 102d7b64526SSimon L. B. Nielsen.Oo Ar host1 : Oc Ns Ar file1 103d7b64526SSimon L. B. Nielsen.Oo Ar host2 : Oc Ns Ar file2 ... 104d7b64526SSimon L. B. Nielsen.Oo Ar hostN : Oc Ns Ar fileN 105d7b64526SSimon L. B. Nielsen.Xc 106d7b64526SSimon L. B. NielsenGet one or more files from the remote host. 107d7b64526SSimon L. B. NielsenWhen using the 108d7b64526SSimon L. B. Nielsen.Ar host 109d7b64526SSimon L. B. Nielsenargument, the 110d7b64526SSimon L. B. Nielsen.Ar host 111d7b64526SSimon L. B. Nielsenwill be used as default host for future transfers. 112d7b64526SSimon L. B. NielsenIf 113d7b64526SSimon L. B. Nielsen.Ar localname 114d7b64526SSimon L. B. Nielsenis specified, the file is stored locally as 115d7b64526SSimon L. B. Nielsen.Ar localname , 116d7b64526SSimon L. B. Nielsenotherwise the original filename is used. 117d7b64526SSimon L. B. NielsenNote that it is not possible to download two files at a time, only 118d7b64526SSimon L. B. Nielsenone, three, or more than three files, at a time. 119d7b64526SSimon L. B. Nielsen.Pp 120d7b64526SSimon L. B. NielsenTo specify an IPv6 numeric address for a host, wrap it using square 121d7b64526SSimon L. B. Nielsenbrackets like 122d7b64526SSimon L. B. Nielsen.Dq Li [3ffe:2900:e00c:ffee::1234] : Ns Ar file 123d7b64526SSimon L. B. Nielsento disambiguate the 124d7b64526SSimon L. B. Nielsencolons used in the IPv6 address from the colon separating the host and 125d7b64526SSimon L. B. Nielsenthe filename. 1269b50d902SRodney W. Grimes.Pp 127*752fa694SWarner Losh.It Cm mode Ar transfer-mode 1289b50d902SRodney W. GrimesSet the mode for transfers; 1299b50d902SRodney W. Grimes.Ar transfer-mode 1309b50d902SRodney W. Grimesmay be one of 131*752fa694SWarner Losh.Em ascii 1329b50d902SRodney W. Grimesor 133*752fa694SWarner Losh.Em binary . 1349b50d902SRodney W. GrimesThe default is 135*752fa694SWarner Losh.Em ascii . 1369b50d902SRodney W. Grimes.Pp 137*752fa694SWarner Losh.It Cm put Ar file Op Oo Ar host : Oc Ns Ar remotename 138*752fa694SWarner Losh.It Cm put Ar file1 file2 ... fileN Op Oo Ar host : Oc Ns Ar remote-directory 139d7b64526SSimon L. B. NielsenPut a file or set of files to the remote host. 140d7b64526SSimon L. B. NielsenWhen 141d7b64526SSimon L. B. Nielsen.Ar remotename 142d7b64526SSimon L. B. Nielsenis specified, the file is stored remotely as 143d7b64526SSimon L. B. Nielsen.Ar remotename , 144d7b64526SSimon L. B. Nielsenotherwise the original filename is used. 145d7b64526SSimon L. B. NielsenIf the 146d7b64526SSimon L. B. Nielsen.Ar remote-directory 147d7b64526SSimon L. B. Nielsenargument is used, the remote host is assumed to be a 14806e482e6SRuslan Ermilov.Ux 1499b50d902SRodney W. Grimesmachine. 150d7b64526SSimon L. B. NielsenTo specify an IPv6 numeric address for a 151d7b64526SSimon L. B. Nielsen.Ar host , 152d7b64526SSimon L. B. Nielsensee the example under the 153*752fa694SWarner Losh.Cm get 154d7b64526SSimon L. B. Nielsencommand. 1559b50d902SRodney W. Grimes.Pp 156*752fa694SWarner Losh.It Cm quit 1579b50d902SRodney W. GrimesExit 1588fe908efSRuslan Ermilov.Nm . 1599b50d902SRodney W. GrimesAn end of file also exits. 1609b50d902SRodney W. Grimes.Pp 161*752fa694SWarner Losh.It Cm rexmt Ar retransmission-timeout 1629b50d902SRodney W. GrimesSet the per-packet retransmission timeout, in seconds. 1639b50d902SRodney W. Grimes.Pp 164*752fa694SWarner Losh.It Cm status 1659b50d902SRodney W. GrimesShow current status. 1669b50d902SRodney W. Grimes.Pp 167*752fa694SWarner Losh.It Cm timeout Ar total-transmission-timeout 1689b50d902SRodney W. GrimesSet the total transmission timeout, in seconds. 1699b50d902SRodney W. Grimes.Pp 170*752fa694SWarner Losh.It Cm trace 1719b50d902SRodney W. GrimesToggle packet tracing. 1729b50d902SRodney W. Grimes.Pp 173*752fa694SWarner Losh.It Cm verbose 1749b50d902SRodney W. GrimesToggle verbose mode. 1759b50d902SRodney W. Grimes.El 1766c7216dfSRuslan Ermilov.Sh HISTORY 1776c7216dfSRuslan ErmilovThe 1786c7216dfSRuslan Ermilov.Nm 1796c7216dfSRuslan Ermilovcommand appeared in 1806c7216dfSRuslan Ermilov.Bx 4.3 . 1819b50d902SRodney W. Grimes.Sh BUGS 1829b50d902SRodney W. GrimesBecause there is no user-login or validation within 1839b50d902SRodney W. Grimesthe 1849b50d902SRodney W. Grimes.Tn TFTP 1859b50d902SRodney W. Grimesprotocol, the remote site will probably have some 1866a3e8b0aSRuslan Ermilovsort of file-access restrictions in place. 1876a3e8b0aSRuslan ErmilovThe 1889b50d902SRodney W. Grimesexact methods are specific to each site and therefore 1899b50d902SRodney W. Grimesdifficult to document here. 19067034ac6SJeroen Ruigrok van der Werven.Pp 19167034ac6SJeroen Ruigrok van der WervenFiles larger than 33488896 octets (65535 blocks) cannot be transferred 19267034ac6SJeroen Ruigrok van der Wervenwithout client and server supporting blocksize negotiation (RFC1783). 193