Knowledge Center Search


 

How to reliably and securely FTP files to JTAC

  [KB15585] Show KB Properties

  [KB15585] Hide KB Properties

Categories:
Knowledge Base ID: KB15585
Last Updated: 09 Oct 2013
Version: 6.0

Summary:
JTAC often requires data to be collected (such as configuration files, tracedump data, log files, etc) and sent in for review. If the files are larger than 10MB, they cannot be attached to the case using Case Manager.  The instructions below describe how to FTP the files to JTAC in a secure and reliable format.  

NOTE:  Use of FTP is deprecated, large file uploads for cases should instead use the SSH FTP (SFTP) process described in KB23337 - How to upload large files to a JTAC Case.

Problem or Goal:
  • How do you send information to the Juniper FTP server?
  • What files can be loaded to a Juniper case?

Cause:
 

Solution:
Instructions to send data to the Juniper Networks JTAC FTP server:

  1. Calculate the checksum of each file so JTAC can verify the file upload/download integrity:
    md5sum <fileName>

    Example:

    md5sum JTAC_Case_0001_ConfigFile.txt

    This will generate a checksum similar to:

    4897dfj3ry7sdfklj3r8sdkjhf.  Add this information into the case notes.  For systems that do not support md5sum, skip to the next step.
  2. If necessary, encrypt the file prior to sending. Be sure to send JTAC the decryption method and password.  Once encrypted, re-calculate the md5sum of the encrypted file. Send JTAC both md5sum values before and after encryption.
  3. Move the file to an FTP server or FTP the file directly to the Juniper Networks server.  If moving the file to another computer, be sure to transfer the file using "binary" mode or the file will be corrupted.
  4. Connect to the FTP site. 
    Example:

    jtac@juniper1> ftp ftp.juniper.net

    Connected to colo-ftp.juniper.net.

    220 colo-ftp.juniper.net FTP server (Version 6.00LS) ready.

  5. Login with anonymous and use your e-mail Address as the password.
    username: anonymous

    password: [enter your Email Address]

  6. Change the directory to "pub/incoming"
    ftp> cd pub/incoming
    250 CWD command successful.

  7. If you have not created a directory with your case number, do so now, otherwise skip to the next step.

    mkdir [directory name]

    Example:

    ftp> mkdir 2004-0729-0001
    257 MKD command successful.

  8. Change the directory to the directory with your case number
    Example:

    ftp> cd 2004-0729-0001

    250 CWD command successful.

  9. Use the 'pwd' (print working directory) command to verify you are now within the directory to which you want to upload the files

    Example:

    ftp> pwd

    257 "/pub/incoming/2004-0729-0001" is current directory.

  10. Set file transfer to binary. (Not all FTP clients default to binary transfer which is why we perform this step).
    ftp> binary

    200 Type set to I.


  11. Turn on hash mark printing to idicate the progress of the file as it is transfered.
    ftp> hash
    Hash mark printing on (1024 bytes/hash mark).

  12. On the local host (the host where the files reside), change directory to where the files are located. 

    ftp> lcd [directory path]


    Example:

    ftp> lcd /var/tmp
    Local directory now /var/tmp

  13. Use the "put" command to transfer the files to the Juniper Networks FTP server. 
    put <fileName>   

    Example:
    put guiSvrDB.tgz
    ftp> put guiSvrDB.tgz

    local: guiSvrDB.tgz remote: guiSvrDB.tgz

    200 PORT command successful.

    150 Opening BINARY mode data connection for guiSvrDB.tgz '.

    100% |******************************************************************************************************| 26720 00:00 ETA

    226 Transfer complete.

    26720 bytes sent in 0.32 seconds (81.73 KB/s)


  14. Once done, transfer another file by going back to step 12. (If all of your files are in the same local directory, you can continue to upload them without changing directories by going back to step 13) or enter the command quit to close the application. 
    ftp> quit
    221 Goodbye.



Related Information:

KB19202 - How can I tell that the file I uploaded to Juniper's FTP site was uploaded correctly?

Purpose:
Implementation
Troubleshooting

Related Links:

 

 

ASK THE KB

Question or KB ID:


 


 

 
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.