System information
1-134 UPLOAD AR Series Router Reference Manual
Software Release 2.0.1
C613-03018-00 REV A
UPLOAD
Syntax
UPLOAD [METHOD=TFTP] [FILE=filename] [SERVER={hostname|
ipadd}]
UPLOAD [METHOD=ZMODEM] [FILE=filename] [PORT=port]
where:
■
filename is the name of the file to upload. This may be a full path name for
the file in the syntax of the TFTP server.
■
ipadd is an IP address in dotted decimal notation.
■
hostname is a character string up to 40 characters in length.
■
port is the number of an asynchronous port. Ports are numbered
sequentially starting with port 0.
Description
This command uploads a file from the router using Trivial File Transfer Protocol
TFTP or ZMODEM. Any parameters not specified use the default values set
with the SET LOADER command on page 1-83. Some parameters are invalid or
have different meanings depending on the method used to download the file.
The FILE parameter specifies the name of the file on the router’s file subsystem
and should be a fully qualified file name, including the device name. The FILE
parameter is required unless it has been set with the SET LOADER command
on page 1-83.
The METHOD parameter specifies the method to use when uploading the file.
If TFTP is specified, TFTP is used to upload the file. If METHOD is TFTP, the
FILE and SERVER parameters are required, unless they have been set with the
SET LOADER command on page 1-83. If ZMODEM is specified, the ZMODEM
protocol is used to upload the file. If ZMODEM is specified, the port parameter
must also be specified, unless it has been set with the SET LOADER command
on page 1-83. Only text files can be uploaded with METHOD set to ZMODEM.
The PORT parameter is not used when METHOD is set to TFTP. The default is
TFTP.
The PORT parameter specifies the asynchronous port that the file will be
uploaded from, when the METHOD parameter is set to ZMODEM. If
METHOD is set to ZMODEM, the PORT parameter is required unless it has
been set with the SET LOADER command on page 1-83.
The SERVER parameter specifies the IP address or the host name (a fully
qualified domain name) of the TFTP server to which the file is uploaded. If a
host name is specified, a DNS lookup is used to translate this to an IP address.
See the SET IP NAMESERVER command on page 8-118 of Chapter 8, Internet
Protocol (IP) for more information about setting up name servers. The PING
command on page 8-103 of Chapter 8, Internet Protocol (IP) can be used to verify
that the router can communicate with the server via IP. The SERVER parameter
is required if METHOD is TFTP, unless it has been set by the SET LOADER
command on page 1-83. The SERVER parameter is not used when METHOD is
ZMODEM.
For security reasons this command will only be accepted if the user has SECURITY
OFFICER privilege.