ESP Workload Automation

 View Only
  • 1.  CA Workload Automation programming

    Posted Feb 21, 2018 02:39 PM

    At my work, we have CA Workload Automation Version 11.3.1.0 for Windows.
    Our Scheduler administator(s) scheduled number of scheduler applications each consisting of multiple
    jobs and on each day number of scheduled jobs run and some jobs fail.

    Each day, I need to analyze some of the failed jobs to find cause for failure of a given job.

    For each failed job I do following steps manually:
    1. Double click failed job of a specified generation number icon, determine completion state
    2. Right click failed job's icon and select "retrieve spool file" and click "retrieve All" button
    3. Save spool the file on my Windows laptop
    4. Find error messages that are in the spool file
    5. Extract log file name and its path on the Windows server or Linux server
    6. Log on to Windows or Linux server find the log file
    7. Use WinSCP to copy the log file from server to my laptop.
    8. Observe log file and see any error messages and find the reason(s) for failures

    Is there a way to automate (using CA Workload Automation Programming)
    these steps for a given application/generation/job please?

    Thanks



  • 2.  Re: CA Workload Automation programming
    Best Answer

    Posted Feb 21, 2018 11:50 PM

    Hello,

     

     

    autosyslog -j < jobname> -t S (for more details refer to reference guide Chapter Commands)

     

    this command will help you fetch the information which you are doing in Steps 1 to 4.

     

    You can run this command either on AUTOSYS cli prompt or WCC's ECLI tab (if you don't have access to AUTOSYS SERVER CLI prompt and you have right permissions for ECLI tab execution).

     

     

    Since these are the troubleshooting steps for job failures, you may have to follow the rest of the steps manually unless others in community have some good idea to handle these kind of situations.

     

    the other way is to AUTOMATE the process using inbuilt autosys jobs or can write a script to perform all the steps and run as single job.

     

    Like the following:

     

    if you know or have some idea on the syntax or kind of errors or naming convention (something predetermined) then you can try the whole flow as a job flow:

     

    1. A Job to watch for a spool file to be created and completed.

    2. A job which can read the spool file for specific or predetermined syntax or job logs - job type could be textread / fileread.

    3. A job to ftp specific log file from one server to another.

     

    Hope it will help.



  • 3.  Re: CA Workload Automation programming

    Posted Feb 23, 2018 11:43 AM

    Hello Sunish_CA,

    Thank you very much for your excellent information, autosyslog command etc.

    I will try to program/implement the job flow you have suggested.

    I will post here with additional questions as needed please.

     

    Best regards,