0% found this document useful (0 votes)
232 views

Autosys Commands

The document lists various Autosys commands used to manage jobs, schedules, and global variables. It includes commands to rerun and view previous job runs, change job status, start and hold jobs, and set global variables. Examples are given of using the commands to view previous runs of specific jobs and update an Autosys job definition.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
232 views

Autosys Commands

The document lists various Autosys commands used to manage jobs, schedules, and global variables. It includes commands to rerun and view previous job runs, change job status, start and hold jobs, and set global variables. Examples are given of using the commands to view previous runs of specific jobs and update an Autosys job definition.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

AUTOSYS COMMANDS used frequently:

alias -x jr='autorep -J'


alias -x jd='autorep -q -J'
alias -x fsj='sendevent -E FORCE_STARTJOB -J'
alias -x sj='sendevent -E STARTJOB -J'
alias -x joh='sendevent -E JOB_ON_HOLD -J'
alias -x joice='sendevent -E JOB_ON_ICE -J'
alias -x jofice='sendevent -E JOB_OFF_ICE -J'
alias -x jofh='sendevent -E JOB_OFF_HOLD -J'
alias -x cfs='sendevent -E CHANGE_STATUS -s FAILURE -J'
alias -x csi='sendevent -E CHANGE_STATUS -s INACTIVE -J'
alias -x css='sendevent -E CHANGE_STATUS -s SUCCESS -J'
alias -x kj='sendevent -E KILLJOB -J'
alias -x gvd='sendevent -E SET_GLOBAL -G rtlpubp=up'
sendevent -e SET_GLOBAL -G gorpubp=down
autorep -g gcapdb

job_depends -c -J <jobname>
job_depends -t -J gmacc% -F "08/09/2010 00:00" -T "08/09/2010 12:00"
autocal_asc - shows , adds or deletes from autosys calender
to run a jil file : jil < filename.jil >
jr "<job_name> -r-1 - previous states when the job had run.
jr "<job_name> -d - the details off the latest Job.AUTOSYS COMMANDS used frequen
tly:
. /ngs/lpp/autosysp/autouser/autosys.ksh."${NG_HOST}"

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
for i in 0 1 2 3 4 5
do
jr gsd_p_c_itms_m10_apac -l0 -r -$i | grep gsd_p_c_itms_m10_apac
done
3 6 9 12 15 18
1 2 3 4 5 6
1 4 7 10 13 16
for i in 1 2 3 4 5 6
do
jr gsr_am_p_c_C_cum_fact_amr -r -$i | grep -v Job | grep -v _________________

done
Updating Autosys Job:
jr <job name> -q -l0
storm[etrp]:scheduler $ jil
jil>>1> update_job: <job name> job_type: b
jil>>2>
Change the fields you want to change.
jil>>3> start_times: "16:30"
ctrl+d ( to save changes)

You might also like