Copy Command Examples - Juniper SYSTEM BASICS - CONFIGURATION GUIDE V 11.1.X Configuration Manual

System basics configuration guide software for e series broadband services routers
Table of Contents

Advertisement

copy Command Examples

The examples in this section assume that the following host entries have been defined
in the host table:
Copy a remote file to a local file by using the CLI file copy command format. The
Example 1
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 a local file to a remote fileby using file copy command format. The following
Example 2
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 a remote file to a local file by using the URL format, use the hostname to specify
Example 3
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.
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.
host mary 172.28.32.156 ftp mike mikePwd
host joe 172.28.32.99 ftp joe jPasswd
copy mary:ftpDir/scripts/autocfg.scr autocfg.scr
copy shConfig.txt joe:ftpDir/results/shConfigForJoe.txt
copy ftp://fred:passwd@mary/ftpDir/scripts/autocfg.scr autocfg.scr
Chapter 5: Managing the System
307
Transferring Files

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSTEM BASICS - CONFIGURATION GUIDE V 11.1.X and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Junose 11.1

Table of Contents