You can use the -r argument with autorep to get previous runs. For example, to get one run back:
autorep -j testjob -r-1
Two runs back:
autorep -j testjob -r-2
etc...
With some bash logic you can loop thru previous runs, check the output for Success, and calculate the average.
------------------------------
Mike Kruse
Automation Capability Specialist
Agile Operations Division, Broadcom Software
micheal.kruse@broadcom.com------------------------------
Original Message:
Sent: Sep 26, 2024 01:05 PM
From: Magin George
Subject: How to get the average runtime last 5 successful job runs
Hello all,
For an automation usecase, I would like to get the average runtime for last 5 successful job executions for a particular job.
Can anyone let me know what is the autosys command for this? If autorep command can list the details of last 5 successful runs, I can use bash to process the output.
Can anyone let me know the autorep options to get this details of last 5 successful runs?
Thanks