AutoSys Workload Automation

 View Only
  • 1.  Start date/time missing for few jobs

    Posted Feb 22, 2020 08:41 AM
    Hi,

    For some jobs the Last Start date/time is missing but Last End date/time is listed under autorep command. See below:

    Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit
    ________________________________________________________________
    AIA.INGN.MTH_EOD.BX ----- 02/22/2020 12:25:33 IN/NE 2962/0
    AIA.INGN.M_UNXCMD01.CD ----- 02/12/2020 18:20:44 IN/NE 2962/0
    AIA.INGN.M_TSTFIL01.FW ----- 02/12/2020 18:21:45 IN/NE 2962/0
    AIA.INGN.M_TSTFIL02.FW ----- 02/12/2020 18:21:45 IN/NE 2962/0
    AIA.INGN.M_TSTFIL03.FW ----- 02/12/2020 18:21:45 IN/NE 2962/0
    AIA.INGN.M_UNXCMD02.CD ----- 02/12/2020 18:21:45 IN/NE 2962/0

    AIAT.INGN.D_UNXCMD05.CD 02/22/2020 11:04:21 02/22/2020 11:05:26 IN 2946/1
    AIAT.INGN.D_SECMD01.CD 02/22/2020 11:05:26 02/22/2020 11:05:27 IN 2946/1

    Those jobs that ran today have both start and end time. But the jobs that ran in the past don't have, last start time. Any idea why is it like this? Is it normal?

    Regards
    Pothen


  • 2.  RE: Start date/time missing for few jobs
    Best Answer

    Posted Feb 24, 2020 10:12 AM
    Edited by Christopher Hackett Jun 01, 2020 06:06 PM
    I think, mentioned jobs started long time ago, so AutoSys deleted start time as old information.
    You can check /opt/CA/WorkloadAutomationAE/autosys/bin/DBMaint
    # Archive the Events
    archive_events -A -n 50 -b 50000 >> $outfile 2>&1
    ecode=`expr $? + $ecode`
    # Archive the job_runs
    archive_events -A -j 50 -b 50000 >> $outfile 2>&1
    ecode=`expr $? + $ecode`
    # Archive the autotrack log
    archive_events -A -l 50 -b 50000 >> $outfile 2>&1
    ecode=`expr $? + $ecode`

    50 is amount of dsys to store information


  • 3.  RE: Start date/time missing for few jobs

    Posted Feb 25, 2020 12:19 AM
    Edited by Pothen Verghese Feb 25, 2020 06:11 AM
    In our system, the archive_events are set for 30 days, so the data is there. Also why show blank for Last Start time, but provide values for Last End time?

    If we take a report with the run number for that date it gives both Start and End time. See below:


    Problem reports


    The run number in last column in the 2nd report is incorrect. It should have been actual number when the job ran.

    For a good report below:

    Ideally default Job report should be with last run number for that job as above. This problem may be something to do with Job Status. If the status is with IN/NE status, it gives a wrong report. May be it is a bug! Can someone please confirm?


    Regards
    Pothen