Can autorep command shows output of multiple history runs for a particular job?

Document ID : KB000010573
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Autorep is an utility that generates reports about objects such as jobs.

It has different options. One of them is "-R run_num".  It generates a report for a particular job run.

How can you get all job runs?

 

Environment:
Autosys 11.3 and above.
Instructions:

Following script is an example that will help you to obtain the required output. 

[autosys@linux ~]$ cat autorep_jobrun 
#!/bin/sh 
# This script will show you jobruns from particular job 
# Usage: ./autorep_jobrun <jobname> <number of jobruns> 

if [ "$#" -lt "2" ] 
then 
echo "autorep_jobrun expects 2 arguments: <jobname> <total number of jobruns>"; 
exit 1 
fi 

for (( x=0; x<$2; x++ )) 
do 
autorep -J $1 -s -r -$x 
done 

When executing this script, it produces following report: 

[autosys@linux ~]$ ./autorep_jobrun testjob1 7 

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit 
________________________________________________________________ ____________________ ____________________ 
testjob1 07/08/2017 15:37:18 07/08/2017 15:37:18 SU 70476/1 0 

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit 
________________________________________________________________ ____________________ ____________________
testjob1 07/08/2017 13:00:07 07/08/2017 13:00:07 SU 70472/1 0 

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit 
________________________________________________________________ ____________________ ____________________ 
testjob1 06/08/2017 13:00:06 06/08/2017 13:00:06 SU 70449/1 0 

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit 
________________________________________________________________ ____________________ ____________________ 
testjob1 05/08/2017 13:00:10 05/08/2017 13:00:10 SU 70393/1 0 

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit 
________________________________________________________________ ____________________ ____________________ 
testjob1 04/08/2017 13:00:09 04/08/2017 13:00:09 SU 70335/1 0 

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit 
________________________________________________________________ ____________________ ____________________ 
testjob1 03/08/2017 13:00:05 03/08/2017 13:00:05 SU 70314/1 0 

Job Name Last Start Last End ST/Ex Run/Ntry Pri/Xit 
________________________________________________________________ ____________________ ____________________ 
testjob1 02/08/2017 13:00:04 02/08/2017 13:00:05 SU 70282/1 0 

Additional Information:

You can find more information on 'autorep' utility on docops

https://docops.ca.com/ca-wla-ae-wcc/11-4-2/en/reference/ae-commands/monitor-and-report-on-workload/autorep-command-report-job-machine-and-variable-information