AutoSys Basic commands quick reference
Command Alias Description
Event Processor Mgmt
autosyslog -e Look event log ( Ctrl-C to come out )
chk_auto_up Checks if Autosys is running
autoping –m <machine> Checks remote agent is running
autoping –m <machine> -D Checks DB connectivity of Agent
Job Management
autorep –G <Global variable> Gives value of Autosys Global Variable
autorep –J <job> [-l<x>] jr <job> [–l<x>] Gives a report of Job. X=number of levels to drill down to
autorep –J <job> -q jr <job> –q Gives the job definition
sendevent –E STARTJOB –J <jobn> sj <job> Gracefully starts a job, examines dependancies & status
sendevent –E JOB_ON_HOLD -J <job> onhold <job> Puts a job on hold, dependencies enforced.
sendevent –E JOB_OFF_HOLD -J <job> offhold <job> Self explanatory
sendevent –E FORCE_STARTJOB -J <job> fsj <job> Forces a Job re-start irrespective of dependencies or
status
sendevent –E JOB_ON_ICE -J <job> onice <job> Tells Autosys to 1. Not run the job 2. Act as if the job
doesn’t exist.
sendevent –E JOB_OFF_ICE -J <job> office <job> Self explanatory
sendevent –E KILLJOB -J <job> killjob <job> Terminates a job
sendevent –E CHANGE_STATUS –s SUCCESS –J <job> success <job> Sets job status to SUCCESS
Jobs can have following status:
INACTIVE, ACTIVATED, STARTING, RUNNING,
SUCCESS, FAILURE, TERMINATED, RESTART,
QUE_WAIT, ON_HOLD, ON _ICE
sendevent –E SET_GLOBAL –G <variable=”value”> Assigns value to an AutoSys global variable
sendevent –E SET_GLOBAL –G <variable>=DELETE Deletes an AutoSys global variable
job_depends -d -J <job> Displays Job dependancies
autorep -J <job> -l0 -r -n Displays job run history, n=run number [0-4]. By default
autosys keeps history of 5 runs