You are on page 1of 15

Sheet1

Auto

What is Autosys?

AutoSys is an automated job control system for scheduling, mon

What is job and what it does?

An AutoSys job is any single command, executable, script, or Windows

Types Of jobs?

There are three types of jobs: command, file watcher, and box.

Command Job

command jobs execute commands

Box Job

box jobs are containers that hold other jobs (including other boxes) .the

File Watcher

file watcher jobs watch for the arrival of a specified file

Default Box Job Behavior

1)Jobs run only once per box execution


2)As long as any job in a box is running, the box remains in RUNN
3)By default, a box will return a status of SUCCESS only when all
4)By default, a box will return a status of FAILURE only when all jo
5)Unless otherwise specified, a box will run indefinitely until it reac
6)Changing the state of a box to INACTIVE (via the sendevent co

Job States

AutoSys keeps track of the current state, or status, of every job. The valu
in the Job Activity Console

Basic functionality of AutoSys

Page 1

Sheet1

Steps:

1. The event processor scans the event server for the next event to proces
2. The event processor reads from the event server that an event is ready
Server, including the command and the pointer (full path name on the cli
machines, the event processor retrieves from the database the user IDs an
3. The event processor processes the event. If the event is a STARTJOB,
4. On a UNIX machine, the inetd invokes the remote agent. On a Windo
from the event processor.
5. The remote agent sends an acknowledgment back to the event process
the event server database, looking for events to process.
6. The remote agent starts a process and executes the command in the jo
7. The remote agent issues a CHANGE_STATUS event marking in the e
8. The client job process runs to completion, then returns an exit code to
Defining autosys job

There are various parameters to define autosys job. Starting from profile

1. Using the AutoSys Graphical User Interface (GUI).


2. Using the AutoSys Job Information Language (JIL) through a comma
interface.

Using JIL

JIL stands for Job Information Language. Using this you can instruct aut
definition. You can then pass this jil file to autosys.

Essential attributes for defining job

1. Job Name

JIL Keyword : insert_job. Name used to identify the job


2. Job Type

a. JIL Keyword : job_type. The job type is one of job types


3. Owner

JIL Keyword : owner


Sample Example(echoJob.jil)

insert_job:echoJob
machine:unixMachine
Page 2

Sheet1

owner:username
command:echo Hello this is command job
Adding Job To Autosys Database
Meaning of AutoSys status

jil < echoJob.jil


AUTOSTA
STATUS
TUS
Meaning
RU
RUNNING Running
ST
STARTING Starting
SU
SUCCESS Success
FA
FAILURE Failure
TERMINAT
TE
ED
Terminated
OI
ON_ICE
On Ice
IN
INACTIVE Inactive
ACTIVATE
AC
D
Activated
RE
RESTART Restart
OH
ON_HOLD On Hold
QW

QUE_WAIT Queue Wait


Dependenci
Refresh
es
Refresh
Filewatcher

RD
RF
Permission Attribute of Autosys Job

gx,ge,wx,we,mx,me
1) The x and e refer to the rights to execute and edit, respectively
2)The g, w, and m refer to who has the ability to perform those actions.

a) g :that any user who is in the same group as the job own
b) w: specifies that the world (anyone) has rights
c)m:specifies that authorized users have permissions regar

Page 3

Autosys Document
Sheet1

system for scheduling, monitoring, and reporting. These jobs can reside on any AutoSys-configured machine that

executable, script, or Windows batch file. Each AutoSys job definition contains a variety of qualifying attributes, including the co
file watcher, and box.

bs (including other boxes) .the box job (or box) is a container of other jobs. A box job can be used to organize and control proce

a specified file

on
ng, the box remains in RUNNING state; the box cannot complete until all jobs have run.
s of SUCCESS only when all the jobs in the box have run and the status of all the jobs is "success.
s of FAILURE only when all jobs in the box have run and the status of one or more of the jobs is "failure."
will run indefinitely until it reaches a status of SUCCESS or FAILURE
CTIVE (via the sendevent command) changes the state of all the jobs in the box to INACTIVE.

or status, of every job. The value of a jobs status is used to determine when to start other jobs that are dependent on the job. The

Page 4

Sheet1

rver for the next event to process. If no event is ready, the event processor scans again in five seconds.
ent server that an event is ready. If the event is a STARTJOB event, the job definition and attributes are retrieved from the Event
ointer (full path name on the client machine) to the profile file to be used for the job. In addition, for jobs running on Windows
om the database the user IDs and passwords required to run the job on the client machine.
nt. If the event is a STARTJOB, the event processor attempts to establish a connection with the remote agent on the client machin
the remote agent. On a Windows machine, the remote agent logs onto the machine as the user defined as the jobs owner, using

gment back to the event processor indicating that it has received the job parameters. The socket connection is terminated. At this
nts to process.
executes the command in the job definition.
STATUS event marking in the event server that the job is in RUNNING state.
on, then returns an exit code to the remote agent and quits.

tosys job. Starting from profile, timezone, start time, starting condition and so on. There are the two methods you can use to crea

rface (GUI).
nguage (JIL) through a command-line

Using this you can instruct autosys to save job definitions. This information saved in autosys database. You can also create a jil
o autosys.

ame used to identify the job

The job type is one of job types: command (c), file watcher (f) or box (b).

Page 5

Sheet1

te and edit, respectively

y to perform those actions.

the same group as the job owner has rights


d (anyone) has rights
d users have permissions regardless of what machine they are on. By default, when m is not used, the user must be on the machi

Page 6

Sheet1

toSys-configured machine that is attached to a network.

alifying attributes, including the conditions specifying when and where a job should be run.

used to organize and control process flow. The box itself performs no actions, although it can trigger other jobs to run. An impor

n.
s is "success.
he jobs is "failure."

ACTIVE.

that are dependent on the job. The job status is displayed in the job report generated by the autorep command, and in the job rep

Page 7

Sheet1

seconds.
butes are retrieved from the Event
on, for jobs running on Windows

e remote agent on the client machine, and passes the job attributes to the client machine.The event processor sends
r defined as the jobs owner, using the user IDs and passwords passed to it

t connection is terminated. At this point, the event processor resumes scanning

he two methods you can use to create job definitions:

database. You can also create a jil file which contains job

Page 8

Sheet1

sed, the user must be on the machine specified in the owner field of the job.

Page 9

Sheet1

trigger other jobs to run. An important feature of this type of job is that boxes can be put inside of other boxes.

torep command, and in the job report you can view

Page 10

Sheet1

vent processor sends

Page 11

Sheet1

Page 12

Sheet1

e of other boxes.

Page 13

Sheet1

Page 14

Sheet1

Page 15

You might also like