Automic Workload Automation

 View Only
  • 1.  How to trigger Windows jobs based on output of UNIX jobs

    Posted Aug 03, 2020 01:06 PM
    Hi,

    I am looking for a solution with steps as how to trigger Windows jobs based on the output status of a UNIX job in CA Workload Automation Desktop Client Version: 12.1.00.00

    In the Unix script we can only create the output status of existence of file or not.
    It the file exists, then it has it trigger Windows jobs otherwise no action has to be done. In the Unix job (in Unix Server A), how can that output status be setup and sent as input value so that it can trigger the refresh scripts in the Windows job (in Windows Server B). The servers A and B has no connectivity, hence through D-Series we wanted to handle.

    Thanks in Advance



    ------------------------------
    Uma
    ------------------------------


  • 2.  RE: How to trigger Windows jobs based on output of UNIX jobs

    Posted Aug 03, 2020 02:14 PM
    I'm not sure if you are in the correct forum or not.

    With the tool that we use ("Automic Workload Automation" aka AWA, but we still call it UC4), our solution would be to have the unix task display the state information onto a report, UC4 would scrape that report with a post-process script and store the results into a UC4 variable, and UC4 would use that variable in a precondition rule upon the windows task to decide to either run it or not.

    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------



  • 3.  RE: How to trigger Windows jobs based on output of UNIX jobs

    Posted Aug 04, 2020 02:17 AM
    Hi Uma,

    I would try the next:
    1. Filter object
    2. File event object.

    Regards,
    Georgiy


  • 4.  RE: How to trigger Windows jobs based on output of UNIX jobs

    Posted Aug 04, 2020 02:54 AM
    Hi

    Your product is CA Workload Automation dSeries.   
    The correct Forum is 

    ESP dSeries Workload Automation  





  • 5.  RE: How to trigger Windows jobs based on output of UNIX jobs
    Best Answer

    Posted Aug 04, 2020 06:01 AM

    Hi Uma,
    for this case you can use FileEvent Objects too. The FileEvent Object gives you a little bit more flexibility than filter systemoutput.
    You can script something like this:

    : SET &E2# = GET_FILESYSTEM(<YourUnixServer>,'</your/unix/path/filename',PATH_FILE_COUNT)
    : IF &E2# = 1
    : PRINT "Eureka file is ready"
    : PRINT "Countet Files &E2#"
    : ELSE
    : PRINT " I'm still waiting"
    : ENDIF


    For more Information about  FileEvent Objects see Automic Manual File Event

    Hope that helps

    Andrzej Golaszewski



    ------------------------------
    Senior Administrator and Consultant Business Automation
    SID-LRZS
    ------------------------------