Juniper SYSTEM BASICS - CONFIGURATION GUIDE V 11.1.X Configuration Manual page 338

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

Advertisement

JUNOSe 11.1.x System Basics Configuration Guide
Copy a remote file to a local file by using the URL format, use the hostname to specify
Example 4
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 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 a remote file to a local file by using the URL format, and use the hostname to
Example 5
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 a remote file to a local file by using the URL format, use the hostname to specify
Example 6
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 a remote file to a local file by using the URL format. Use the host's IP address
Example 7
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 a local file to a remote file by using the URL format, and use the host's IP
Example 8
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.
Redirect the output of a command to a remote file by using the URL format, and use
Example 9
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.
308
Transferring Files
copy ftp://fred@mary/ftpDir/scripts/autocfg.scr autocfg.scr
copy tftp://mary/ftpDir/scripts/autocfg.scr autocfg.scr
copy ftp://mary/ftpDir/scripts/autocfg.scr autocfg.scr
copy ftp://fred@172.28.32.156/ftpDir/scripts/autocfg.scr autocfg.scr
copy shConifg.txt ftp://joe:passwd@172.28.32.156/ftpDir/results/shConfigJoe.txt
show config > ftp://joe:passwd@172.28.32.156/ftpDir/results/shConfigJoe.txt

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1

Table of Contents