file copy
Syntax
file copy source destination
<source-address address>
Release Information
Command introduced before Junos OS Release 7.4.
source-address
option added in Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Copy files from one place to another on the local router or switch or between the local
router or switch and a remote system.
Options
source
—Source of the original file. Specify this as a URL or filename.
destination
—Destination of the copied file. Specify this as a URL or filename. If you are
copying a file to the current directory (your home directory on the local router or
switch) and are not renaming the file, specify the destination with a period (.).
source-address
address
—(Optional) Source IP host address. This option is useful for
specifying the source address of a secure copy (scp) file transfer.
Required Privilege
Level
maintenance
List of Sample Output
file copy (A File from the Router to a PC) on page 731
file copy (A Configuration File Between Routing Engines) on page 731
file copy (A Log File Between Routing Engines) on page 731
file copy (A File From the TX Matrix Plus Router to a T1600 Router Connected to the TX
Matrix Plus Router) on page 731
Output Fields
When you enter this command, you are provided feedback on the status of your request.
file copy (A File from
the Router to a PC)
user@host>
file copy /var/tmp/rpd.core.4 berry:/c/junipero/tmp
...transferring.file...... | 0 KB | 0.3 kB/s | ETA: 00:00:00 | 100%
file copy (A File from
the Router to a PC)
file copy
(A Configuration File
The following sample command copies a configuration file from Routing Engine 0 to
Routing Engine 1:
Between Routing
Engines)
user@host>
file copy /config/juniper.conf re1:/var/tmp/copied-juniper.conf
file copy (A Log File
Between Routing
Engines)
The following sample command copies a log file from Routing Engine 0 to Routing Engine
1:
user@host>
file copy lcc0-re0:/var/log/chassisd lcc0-re1:/var/tmp
file copy (A File From
the TX Matrix Plus
The following sample command copies a text file from Routing Engine 1 on the
switch-fabric chassis
sfc0
to Routing Engine 1 on the line-card chassis
lcc0
:
Router to a T1600
user@host>
file copy sfc0-re1:/tmp/sample.txt lcc0-re1:/var/tmp
Router Connected to
the TX Matrix Plus
Router)
731
Copyright © 2010, Juniper Networks, Inc.
Chapter 42: Operational Mode Commands for System Monitoring
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...