AppWorx, Dollar Universe and Sysload Community

Expand all | Collapse all

Can you use the FTP command "MPUT" in the job prompts to put multiple files?

  • 1.  Can you use the FTP command "MPUT" in the job prompts to put multiple files?

    Posted Nov 22, 2017 12:29 PM
    I'm using Automic V9 and I'm attempting to use the command MPUT in a job prompt to FTP multiple files, designated with the wildcard name EMPLOYEES_*.txt.   I'm receiving the following error:

    Invoking JOBID 4876641, module - SFTP_JAVA, alias name - SFTP_JAVA_EMP_V7
    2017-11-22 11:10:41 Parameters:
    2017-11-22 11:10:41   Remote UserId =       ITIS_PAY_TCP_IMP_DEV
    2017-11-22 11:10:41   Remote Host =         erpftp.tosm.ttu.edu
    2017-11-22 11:10:41   FTP Command =         mput
    2017-11-22 11:10:41   Local Path =          /mnt/testcodetree/hrreports
    2017-11-22 11:10:41   Local File/Pattern =  EMPLOYEES_*.txt
    2017-11-22 11:10:41   Remote Path =         /HOME/
    2017-11-22 11:10:41   Remote File/Pattern = 0EMPLOYEES_*.txt
    2017-11-22 11:10:41   File Type =           ASCII
    2017-11-22 11:10:41   Compression =         N
    2017-11-22 11:10:41   Minimum Run Time =    0
    2017-11-22 11:10:41   Maximum Run Time =    0
    2017-11-22 11:10:41 known_hosts file = /home/appworx_pdev/.ssh/known_hosts
    2017-11-22 11:10:42 Error - unimplemented command - mput

    Has anyone had success using MPUT in Appworx?

    Thanks for your help!



  • 2.  Can you use the FTP command "MPUT" in the job prompts to put multiple files?

    Posted Nov 22, 2017 12:45 PM

    SFTP does not support the mput or mget command. The complete list of commands are noted below….

    • Get: Gets one or more files
    • Get-append: Gets and appends one or more files
    • Put: Puts one or more files
    • Put-append: Puts and appends one or more files
    • Rm: Removes one or more files
    • Rmdir: Removes a directory
    • Mkdir: Creates a directory

    This was taken from the documentation which can be sourced at the following link…

    https://docs.automic.com/documentation/WEBHELP/English/all/components/AM/latest/All%20Guides/help_en.htm#AM_Development_Guide/SFTP_JAVA_Job.htm?Highlight=ftp

    The SFTP job however does support pulling or getting multiple files through the usage of wildcards. This is documented in the following knowledge base article….

       

                    
       

    Can I use a wild cared to     pull multiple files from a folder using the SFTP_JAVA job?

       

    Yes. The SFTP_JAVA job     can use a wild card to pull/get multiple files from a specified     path. Ensure that the sftp_java job is assigned to the correct agent,     and use an asterick (*) in the remote path filed. Examples:

       

    File*.txt would return     all files that start with File and End with .txt. 

       

    File_*_.txt  would     return all the files that are called that fit that description

       

    https://automic.force.com/support/apex/CommunityArticleDetail?id=ka4b00000004ML5

       
     

     

    The FTP job does support mput and mget commands.

    Hopefully this helps!

    -Kristopher







  • 3.  Can you use the FTP command "MPUT" in the job prompts to put multiple files?

    Posted Nov 22, 2017 04:05 PM
    Kristopher,  thanks so much.  I will try this.