Autosys Cheat Sheet 2. Useful commands. Unisrvcntr status - Check the status of autosys sendevent -E STOPDEMON - To stop and restart the Scheduler. AutoSys Commands List with Examples – Cheat Sheet. The job status is displayed in the job report generated by the autorep command, and in the job report you can view in the Job Activity Console Following are the status of Autosys jobs: The minimum size of the file can be provided if necessary: You will most likely find that the default behavior of boxes inhibits the expected execution of the. Following AutoSys cheat sheet consists list of Autosys commands used in unix or any other. Autosys commands: autorep -j. Checks the status of the job. Sendevent -j -e. AutoSys Commands List with Examples – Cheat Sheet It is also used to get extract job definitions in JIL scripts format. This command would report the current status of a specific jobor the value of the ckmmands variable.
AutoSys CheatSheet Quick Reference
While working with AutoSys either on Windows OR Unix environment, commands are same and you should have something handy to execute AutoSys command quickly on any mentioned environment. Below I will show you frequent sued command on AutoSys:
- Job status
autorep –J testjob
- Job definition
autorep –J testjob –q
- Job run history 3 runs ago
autorep –J testjob –d –r -3
- Start a job
sendevent –E FORCE_STARTJOB –J testjob
- Stop a job
sendevent –E KILLJOB –J testjob
- Check if agent software functioning
autoping –M %COMPUTERNAME% -D
- Check agent version
autoflags –a
- Example JIL file testjob.jil
$ autorep -J syb_load_esoruat_Box -q
- To see job status:
$ autorep -J job_name
- Generates a detail report of the job:
$ autorep -J job_name -d
- Insert new job:
$ jil < job_name
- Delete existing job: To delete existing job just you will have delete everything from JIL file and use below:
delete_job: job_name
- Update job: To update existing job just change jil file from insert to update:
update_job: job_name
(Note: You will have to keep all information in Jil file which you want to update)
- Generates a summary report of Jil:
$ autorep -J job_name -s
- Reports untruncated job name and machine name of exiting job:
$ autorep -J job_name -w
- To see the timezone of existing job:
$ autorep -J job_name -t
- Generates the report for the job run specified in run_num:
$ autorep -J job_name -R run_num
example:
$ autorep -J ESORBATCH_SwapDivPaymentNotifier_c -R 47621607
- Set global value:
$ sendevent -E SET_GLOBAL -G value
- See global name of all job with status
Autosys Condition Options
$ autorep -G ALL
- Force start job:
$ sendevent -E FORCE_STARTJOB -J JOB_NAME
- Start job:
$ sendevent -E STARTJOB -J JOB_NAME
- Change job status STARTING:
$ sendevent -E CHANGE_STATUS -P1 -s STARTING -J JOB_NAME
- Change job status FAILURE:
$ sendevent -E CHANGE_STATUS -P1 -s FAILURE -J JOB_NAME
- Change job status INACTIVE:
$ sendevent -E CHANGE_STATUS -P1 -s INACTIVE -J JOB_NAME
- Change job status RUNNING:
$ sendevent -E CHANGE_STATUS -P1 -s RUNNING -J JOB_NAME
- Change job status SUCCESS:
$ sendevent -E CHANGE_STATUS -P1 -s SUCCESS -J JOB_NAME
- Change job status TERMINATED:
$ sendevent -E CHANGE_STATUS -P1 -s TERMINATED -J JOB_NAME
- Find job dependencies of existing job:
$ job_depends -c -J JOB_NAME
- Remove job from HOLD:
$ sendevent -E JOB_OFF_HOLD -P1 -J JOB_NAME
- Remove job from ICE:
$ sendevent -E JOB_OFF_ICE -P1 -J JOB_NAME
- Kill existing job:
$sendevent -E KILLJOB -P1 -J JOB_NAME
- Put job on HOLD:
$ sendevent -E JOB_ON_HOLD -P1 -J JOB_NAME
- Put job on ICE:
$ sendevent -E JOB_ON_ICE -P1 -J JOB_NAME
- See job details:
$ autorep -J JOB_NAME
- Genarate details report of the job:
$ autorep -dJ JOB_NAME
- Check AutoSys deployed machine status:
$autorep -M Machine_name
- See full job details:
$ autorep -qJ JOB_NAME
- Generate summary report:
$autorep -sJ JOB_NAME
- Find job using its Global name:
$ autorep -G Global Name
- Check AutoSys deployed machine status:
$ autorep -M Machine_name
- Send event:
$ sendevent -E
- To see history of commands used:
Autosys Job Status
$ history
- To see job success or on ICE:
$ JavaHonk_Box -w | egrep -v ” SU | OI “
- To see job success or on ICE:
$ JavaHonk_PostPNL_Box -w | egrep -v ” SU | OI “
- For more details you could refer this link