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

[EVO] File copy to FTP server using CLI file copy command not working

0

0

Article ID: KB37561 KB Last Updated: 10 Oct 2021Version: 1.0
Summary:

This article provides a workaround in case file copy to the FTP server via CLI does not work in devices running Junos EVO version 20.2R2-S1.5 EVO.

Symptoms:

In Junos EVO version 20.2R2-S1.5, file copy by using the Command Line Interface (CLI) does not work. The file copy command results in login failure even though a correct syntax has been used, whereas the same command works in later releases such as Junos software version 20.4R3.8-EVO.

File Copy to FTP in Junos 20.2R2-S1.5-EVO Fails

--- JUNOS 20.2R2-S1.5-EVO Linux (none) 4.8.28-WR2.2.1_standard-ga95c0d7 #1 SMP PREEMPT Tue Jan 5 00:47:33 PST 2021 x86_64 x86_64 x86_64 GNU/Linux

lab@router> file copy /var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso ftp://labroot@10.85.173.152/var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso
--07:01:35-- `/var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso'
    => ftp://labroot:xxxxx@10.85.173.152:21/var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso
Error: Login-Sequence failed (Login incorrect.)
Skipping all files from this account...
error: put-file failed
error: could not send local copy of file

File Copy to FTP in Junos 20.4R3.8-EVO Succeeds

lab@hrouter> file copy /var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso ftp://labroot@10.85.173.152/var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso 
Password for labroot@10.85.173.152:
--06:47:29-- `/var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso'
    => ftp://labroot:xxxxx@10.85.173.152:21/var/tmp/junos-evo-install-ptx-fixed-x86-64-20.4R3.8-EVO.iso
Solution:

As a workaround, log in to the shell and connect to the FTP server before copying the file. Use the following command:

lab@router> start shell 
[vrf:none] lab@router:/$ /usr/libexec/ui/evo_ftp
ftp> open 10.85.173.152
Connected to 10.85.173.152.
220 another-re0 FTP server (Version 6.00LS) ready.
/usr/bin/ftp: /var/home/labroot/.netrc: Permission denied
Name (10.85.173.152:lab): lab
331 Password required for lab.
Password: 
230 User labroot logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /var/tmp
250 CWD command successful.
ftp> put <file name>
200 PORT command successful.
150 Opening BINARY mode data connection for 'init'.
226 Transfer complete.
30514 bytes sent in 0.00109 seconds (26.8 Mbytes/s)
ftp> bye
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