JunosE 11.3.x System Basics Configuration Guide
copy Command Examples
Example 1
Example 2
Example 3
Example 4
294
If you delete the interface or change its IP address, the output of the show configuration
command appears as if you had entered the ip ftp source-address command:
ip ftp source-address ipAddress
ipAddress—IP address of the interface when you issued the ip ftp source-interface
command
Example
host1(config)#ip ftp source-interface loopback1
Use the no version to restore the default, in which the source address in the FTP packets
is that of the interface where the FTP connection is made.
See ip ftp source-interface.
The examples in this section assume that the following host entries have been defined
in the host table:
host mary 172.28.32.156 ftp mike mikePwd
host joe 172.28.32.99 ftp joe jPasswd
Copy a remote file to a local file by using the CLI file copy command format. 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 mary are used to access the remote file.
copy mary:ftpDir/scripts/autocfg.scr autocfg.scr
Copy a local file to a remote fileby using file copy command format. The following
command creates or replaces the remote file shConfigForJoe.txt in the directory
ftpDir/results on the host joe by copying the local file shConfig.txt. The username joe and
password jPasswd from the host entry joe are used to access the remote file.
copy shConfig.txt joe:ftpDir/results/shConfigForJoe.txt
Copy a remote file to a local file by using the URL format, use the hostname to specify
the location, and specify the user name and password in the command. 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 fred
and the password passwd in the command are used; the username and password in the
host entry are ignored.
copy ftp://fred:passwd@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, specify the user name in the command, and use the default value of the
password. 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
Copyright © 2010, Juniper Networks, Inc.
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?
Questions and answers