Here I have detailed about Autosys basic commands to work with jobs .These commands helps us to perform day to day activities in Autosys. These commands can be given in Event server/Event processor through command line tools like Putty.
1.To print the status of the job(including last run schedule)
# autorep -J <job name>
2.To Print job details(job definition)
# autorep -J <job name> -q
3.To print the job last run details
# autorep -J <job name> -d
4.To print the job run history
# autorep –j <job name> -r -4 [only we can view last 5 status of jobs (0-4)]
5.To put job ON_HOLD
# sendevent -E JOB_ON_HOLD –j <job name>
6.To put job OFF_HOLD
# sendevent -E JOB_OFF_HOLD –j <job name>
7.To put the job ON_ICE
# sendevent -E JOB_ON_ICE –j <job name>
8.To put the job OFF_ICE
# sendevent -E JOB_OFF_ICE –j <job name>
9.To FORCE_START a job
# sendevent -E FORCE_STARTJOB -J <job name>
10.To kill a job
# sendevent -E KILLJOB -J <job name>
11.To mark job as success
# sendevent -E CHANGE_STATUS -s SUCCESS -j <job name>
14.To mark job as terminated
# sendevent -E CHANGE_STATUS -s TERMINATED –j <job name>
15.Command to find dependent job for job/box
# job_depends -c -J <box name/job name>
16.To print the Schedule details for a calender
# autocal_asc
Press Enter
Give the calander name
Press Enter
Enter P to print the details
17.To print job/BOX full details.[This will take more time to pull details]
# autorep -J <job name> -w
1.To print the status of the job(including last run schedule)
# autorep -J <job name>
2.To Print job details(job definition)
# autorep -J <job name> -q
3.To print the job last run details
# autorep -J <job name> -d
4.To print the job run history
# autorep –j <job name> -r -4 [only we can view last 5 status of jobs (0-4)]
5.To put job ON_HOLD
# sendevent -E JOB_ON_HOLD –j <job name>
6.To put job OFF_HOLD
# sendevent -E JOB_OFF_HOLD –j <job name>
7.To put the job ON_ICE
# sendevent -E JOB_ON_ICE –j <job name>
8.To put the job OFF_ICE
# sendevent -E JOB_OFF_ICE –j <job name>
9.To FORCE_START a job
# sendevent -E FORCE_STARTJOB -J <job name>
10.To kill a job
# sendevent -E KILLJOB -J <job name>
# sendevent -E CHANGE_STATUS -s SUCCESS -j <job name>
14.To mark job as terminated
# sendevent -E CHANGE_STATUS -s TERMINATED –j <job name>
15.Command to find dependent job for job/box
# job_depends -c -J <box name/job name>
16.To print the Schedule details for a calender
# autocal_asc
Press Enter
Give the calander name
Press Enter
Enter P to print the details
17.To print job/BOX full details.[This will take more time to pull details]
# autorep -J <job name> -w