How To Get the User Name Who Updated the Job Before 7 Days?
search cancel

How To Get the User Name Who Updated the Job Before 7 Days?

book

Article ID: 236325

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Unable to track Autosys job modification using autotrack, as it has been more than 7 days.

 

Environment

Component : CA Workload Automation AE
Release : ALL Supported Versions 

Resolution

Its known that Autosys keep the autotrack info only of past 7 days. You may fetch the details using autotrack command. In case if you want to know the info who updated the job before 7 days, you may get from archive folder as below.

By default the archive folder would be in /opt/CA/WorkloadAutomationAE/autouser.<instance name>/archive

1) Run command cat *archive*|grep <job name>. In my case the job is test-job-name-1234 

[root@xxxxxxxxxx archive]# cat *archive*|grep test-job-name-1234
97059,1,update_job,test-job-name-1234,N
115673,1,update_job,test-job-name-1234,N
254955,2,job_name,test-job-name-1234,N
254955,3,command,sendevent -E CHANGE_STATUS -s SUCCESS -J test-job-name-1234 -C " " -P 10,N
134870,2,job_name,test-job-name-1234,N
134870,3,command,sendevent -E FORCE_STARTJOB -J test-job-name-1234 -C " " -P 10,N
134872,2,job_name,test-job-name-1234,N
134872,3,command,sendevent -E CHANGE_STATUS -s INACTIVE -J test-job-name-1234 -C " " -P 10,N
134875,2,job_name,test-job-name-1234,N
134875,3,command,sendevent -E CHANGE_STATUS -s INACTIVE -J test-job-name-1234 -C " " -P 10,N
135877,2,job_name,test-job-name-1234,N
135877,3,command,sendevent -E FORCE_STARTJOB -J test-job-name-1234 -C " " -P 10,N
135921,2,job_name,test-job-name-1234,N
135921,3,command,sendevent -E FORCE_STARTJOB -J test-job-name-1234 -C " " -P 10,N
299140,2,job_name,test-job-name-1234,N
299140,3,command,sendevent -E JOB_ON_HOLD -J test-job-name-1234 -C " " -P 10,N
299144,2,job_name,test-job-name-1234,N
299144,3,command,sendevent -E JOB_OFF_HOLD -J test-job-name-1234 -C " " -P 10,N
299942,1,update_job,test-job-name-1234,N
341020,2,job_name,test-job-name-1234,N
341020,3,command,sendevent -E CHANGE_STATUS -s SUCCESS -J test-job-name-1234 -C " " -P 10,N
361401,1,update_job,test-job-name-1234,N

2) Consider any run for which you want to know the user and time. In this scenario JOB_ON_HOLD 299140.
3) Run cat *archive*|grep 299140|head -300|more
You will see below output with user who "ON HOLD" the job.

299140,2,job_name,test-job-name-1234,N
299140,3,command,sendevent -E JOB_ON_HOLD -J test-job-name-1234 -C " " -P 10,N
299140,XXXXXXXX@XXX,1626255276,S

3) The above has time in encrypted form by running time0 command you can decrypt it.

[root@test-servername archive]# time0 -A 1626255276

CAUAJM_I_50097 External Time: 14/07/2021 05:34:36