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

Autosys Basic Commands

This document provides a quick reference guide for AutoSys basic commands, including event processor management and job management commands. It lists various commands, their aliases, and descriptions for functionalities such as checking the status of Autosys, managing job dependencies, and sending events to control job execution. The commands cover tasks like starting, holding, terminating jobs, and managing global variables within AutoSys.

Uploaded by

prashantsutar024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Autosys Basic Commands

This document provides a quick reference guide for AutoSys basic commands, including event processor management and job management commands. It lists various commands, their aliases, and descriptions for functionalities such as checking the status of Autosys, managing job dependencies, and sending events to control job execution. The commands cover tasks like starting, holding, terminating jobs, and managing global variables within AutoSys.

Uploaded by

prashantsutar024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like