Support Support Downloads Knowledge Base Case 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

[MX] Copy files between Routing-Engines from the UNIX shell



Article ID: KB35046 KB Last Updated: 30 Mar 2021Version: 2.0

This article explains how to copy files between REs (Routing-Engines) from the UNIX shell.


You may need to copy files between REs from the shell due to problems with access on the CLI or for confirming if files can be transferred from one RE to another.

  1. Verify that the REs are active:

    > show chassis routing-engine | match current
    Current state                  Master
    Current state                  Backup
  2. Check the file directory for the file you want to copy:

    labroot@router-re0> file list /var/tmp/jinstall64-14.1R5.4-domestic-signed.tgz
  3. Get root access:

    > start shell user root 
  4. Copy the files with the format:

    rcp -T <source> re1:<destination>

    For example, copying a file from RE0 to RE1:

    % rcp -T /var/tmp/jinstall64-14.1R5.4-domestic-signed.tgz re1:/var/home/labroot/
  5. Login to the other RE for reviewing the files:

    > request routing-engine login other-routing-engine
    > file list /var/home/labroot/jinstall64-14.1R5.4-domestic-signed.tgz

This example command will simulate the following procedure:

> file copy /var/tmp/jinstall64-14.1R5.4-domestic-signed.tgz re1:/var/home/labroot/jinstall64-14.1R5.4-domestic-signed.tgz

If you need to copy from RE1:

> request routing-engine login re1

Copy the files with the format:

rcp -T <source> re0:<destination>


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

Modification History:
2021-03-25: Updated the article terminology to align with Juniper's Inclusion & Diversity initiatives
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos 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