AutoSys Workload Automation

  • 1.  Poll Remote FTP server for a file

    Posted Mar 24, 2018 11:00 PM

    How would one go about polling or watching for a file on a ftp server that does not have an agent on it for a file?  We are converting schedulers and that particular functionality was something we could do within the scripting of the scheduler, but I have not really found an object list or via DE actions. We had scripted it to do a dir on the directory then would read the output of the dir in a post process, if the file name was found we would set the return code to 0, else set return code to 1 which would cause the job to be restarted x minutes later.



  • 2.  Re: Poll Remote FTP server for a file

    Broadcom Employee
    Posted Mar 26, 2018 10:27 PM

    Hi,

    Can you telnet or SSH to the remote host?

    CA WA DE has  Remote Execution job type.  It allows you to login to the remote host without the need of an agent on the remote host.  The job type requires Remote Execution agent plugin.   The plugin will be installed on top of your CA WA System Agent.  The plugin executes the job by logging in to the remote host.

     

     

    Thank you,

     

    Nitin Pande

    CA Technologies



  • 3.  Re: Poll Remote FTP server for a file

    Posted Dec 13, 2018 12:32 PM

    If you have a command line operable ftp utility, you can have one job use it to get a directory listing from the target.  This list will end up in the spool file for that specific job.  You can then use a Text File Reading & Monitoring job to see if the desired file is listed in the spool of your FTP job.