Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Support
Technical Documentation
Content Explorer New
 
Enterprise MIBs
 
EOL Documentation
 
File Format Help
 
Glossary
 
Portable Libraries
 
 
Home > Support > Technical Documentation > Junos OS > file copy
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

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.

Command introduced in Junos OS Release 11.1 for QFX 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 or Switch to a PC)
file copy (A Configuration File Between Routing Engines)
file copy (A Log File Between Routing Engines)
file copy (A File from the TX Matrix Plus Router to a T1600 Router Connected to the TX Matrix Plus Router)

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

file copy (A File from the Router or Switch 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 Configuration File Between Routing Engines)

The following sample command copies a configuration file from Routing Engine 0 to Routing Engine 1:

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 Router to a T1600 Router Connected to the TX Matrix Plus Router)

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:

user@host> file copy sfc0-re1:/tmp/sample.txt lcc0-re1:/var/tmp

Published: 2012-03-05

 
  • About Juniper
  • The New Network
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out