Professional Documents
Culture Documents
Auto
What is Autosys?
Types Of jobs?
There are three types of jobs: command, file watcher, and box.
Command Job
Box Job
box jobs are containers that hold other jobs (including other boxes) .the
File Watcher
Job States
AutoSys keeps track of the current state, or status, of every job. The valu
in the Job Activity Console
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
Using JIL
JIL stands for Job Information Language. Using this you can instruct aut
definition. You can then pass this jil file to autosys.
1. Job Name
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
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.
The job type is one of job types: command (c), file watcher (f) or box (b).
Page 5
Sheet1
Page 6
Sheet1
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
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.
Page 10
Sheet1
Page 11
Sheet1
Page 12
Sheet1
e of other boxes.
Page 13
Sheet1
Page 14
Sheet1
Page 15