ESP dSeries Workload Automation

 View Only
  • 1.  Need to create a FM job to monitor client FTP server(other Domain) without installing agent

    Posted Sep 08, 2020 01:53 AM
    ​Is there any way where we can create FM job to monitor a path which is located on client FTP server (other Domain) without installing our agent on it.


  • 2.  RE: Need to create a FM job to monitor client FTP server(other Domain) without installing agent

    Posted Sep 09, 2020 12:07 PM
    The closest I've come to this is creating an application that runs every hour.

    Job A connects to the remote SFTP directory and issues an LS command which puts a listing of the directory in the spool file of Job A.
    Job B is a Text Monitor job that looks for a specific file name in the spool of Job A.  There are alerts on Job B that determine what to do if the job fails or completes.
    • If it fails an alert forces it complete.  The file is not there and there is nothing further to do.
    • If it completes, the file is there and a new application is triggered to download and process it.

    It works well enough for us.

    ------------------------------
    Andy Reimer
    ------------------------------



  • 3.  RE: Need to create a FM job to monitor client FTP server(other Domain) without installing agent

    Posted Sep 15, 2020 07:33 AM
    If you know powershell you can write a script to check if the file is older than x-number of hours old.

    $LASTMIN = (Get-Date).AddMinutes(-1)
    $FILEDATE = (Get-Childitem "$FILE").LastWriteTime