Support Support Downloads Knowledge Base Service Request Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Junos] How to copy files from one location to another in a Routing Engine

0

0

Article ID: KB7968 KB Last Updated: 17 Feb 2020Version: 7.0
Summary:

This article details how to copy files from one location to another in a Routing Engine.

 

Solution:

Copying a file from one directory to another

In order to move files from one directory to another on a local router, use the following command:

user@host> file copy <source> <destination>

Example: user@host> file copy /var/log/file1.txt /var/tmp/file1.txt

In this example, file file1 is copied from the /var/log directory to /var/tmp.

Copying a file from one Routing Engine to another:

On Dual Routing Engine routers, sometimes there is a need to copy files from the Master RE to the Backup RE, and vice versa.

To copy a file in such a situation, use the following command:

user@host> file copy <source> <destination>

Example: user@host> file copy /var/tmp/jinstall-11.2R1.7-domestic-signed.tgz re1:/var/tmp/jinstall-11.2R1.7-domestic-signed.tgz

In this example, when run in the Master RE, the Junos image on the Master RE is copied from the /var/tmp/ directory to the /var/tmp/ directory on the Backup RE.

For more details on how to copy configuration files from the Master RE to the Backup RE, refer to Copying a Configuration File from One Routing Engine to the Other.

Copying files from a local router to a remote host:

To copy files from  local router to a remote host, FTP or Secure Copy Protocol (SCP) can be used:

root@host> file copy filename ftp://hostname/filename

Example: root@host> file copy /var/log/messages ftp://ftp.juniper.net/2012-0101-0001/messages

In this example, log messages from the local router are copied to the juniper FTP server as anonymous under the directory of 2012-0101-0001.

For more details on copying files, refer to Copy a File on a Routing Engine.

 

Modification History:

2020-02-17: Article reviewed for accuracy; no changes required.

 

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Security Alerts and Vulnerabilities

Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search