Example 5
Example 6
Example 7
Example 8
Example 9
Using TFTP to Transfer Files
Copyright © 2010, Juniper Networks, Inc.
mary. The username fred from the command and the default password null are used;
the username and password in the host entry are ignored.
copy ftp://fred@mary/ftpDir/scripts/autocfg.scr autocfg.scr
Copy a remote file to a local file by using the URL format, and use the hostname to specify
the location. The protocol TFTP, which does not support usernames or passwords, is the
protocol in the URL. The following command creates or replaces the local file autocfg.scr
by copying the remote file autocfg.scr located in the directory ftpDir/scripts on the host
mary. The protocol specified in the command is used; the protocol for the host entry
mary is ignored.
copy tftp://mary/ftpDir/scripts/autocfg.scr autocfg.scr
Copy a remote file to a local file by using the URL format, use the hostname to specify
the location, and use the username and password from the host entry. The following
command creates or replaces the local file autocfg.scr by copying the remote file
autocfg.scr located in the directory ftpDir/scripts on the host mary. The username mike
and password mikePwd from the host entry are used.
copy ftp://mary/ftpDir/scripts/autocfg.scr autocfg.scr
Copy a remote file to a local file by using the URL format. Use the host's IP address to
specify the location. The following command creates or replaces the local file autocfg.scr
by copying the remote file autocfg.scr located in the directory ftpDir/scripts on the host
172.28.32.156. Use the username fred to access the remote file.
copy ftp://fred@172.28.32.156/ftpDir/scripts/autocfg.scr autocfg.scr
Copy a local file to a remote file by using the URL format, and use the host's IP address
to specify the location. The following command creates or replaces the remote file
shConfigJoe.txt in the directory ftpDir/results on the host 172.28.32.156 by copying the
local file shConfig.txt. The username joe and the password passwd from the command
are used to access the remote file.
copy shConifg.txt ftp://joe:passwd@172.28.32.156/ftpDir/results/shConfigJoe.txt
Redirect the output of a command to a remote file by using the URL format, and use the
host's IP address to specify the location. Execute show config, and redirect the output
to the remote file shConfigJoe.txt in directory ftpDir/results on host 172.28.32.156 using
username joe and password passwd.
show config > ftp://joe:passwd@172.28.32.156/ftpDir/results/shConfigJoe.txt
You can use TFTP to copy files and redirect output from the E Series router to a remote
server if the remote host supports TFTP. Before transferring files by the remote TFTP
server, you must use the host command to define the host and to specify TFTP as the
file transfer protocol.
Chapter 5: Managing the System
295
Need help?
Do you have a question about the JUNOSE SOFTWARE FOR E SERIES 11.3.X - SYSTEM BASICS CONFIGURATION GUIDE 2010-10-04 and is the answer not in the manual?