Autosys
Autosys
Event Server
The event server is a AutoSys database which stores all
system information and events as well as all job,
monitor, and report definitions. Sometimes this database
is also called as a data server, which actually describes a
server instance. That is, it is either a UNIX or Windows
process, and it is associated data space (or raw disk
storage), that can include multiple databases or
tablespaces.
Autosys components:
Event Processor
This is main component of the autosys system. This processes all the
events it reads from dataserver. The event processor is the program,
running either as a UNIX process or as a Windows service that actually
runs AutoSys. It schedules and starts jobs. When you start the event
processor it continually scans the database for events to be processed.
When it finds one, it checks whether the event satisfies the starting
conditions for any job in the database.
Remote Agent
On a UNIX machine, the remote agent is a temporary process started by
the event processor to perform a specific task on a remote (client) machine.
On a Windows machine, the remote agent is a Windows service running on
a remote (client) machine that is directed by the event processor to perform
specific tasks.
The remote agent starts the command specified for a given job, sends
running and completion information about a task to the event server, then
exits. If the remote agent is unable to transfer the information, it waits and
tries again until it can successfully communicate with the database.
Latest Autosys components:
Application Server
A new component which handles the
Database connectivity for the AutoSys
r11 clients, Command Line Utilities
and the GUI's. It has a persistent
connection to the DB to allow
improved response speed. It also
removes the requirement of having a
global database user/password.
Event Server
The DB containing the events.
Differences from 4.5 include vendor
library files for the Server and
client components.
Basic functionality of AutoSys
Explanation
1. The event processor scans the event server for the next event to
process. If no event is ready, the event processor scans again in five
seconds.
2. The event processor reads from the event server that an event is ready.
If the event is a STARTJOB event, the job definition and attributes are
retrieved from the Event Server, including the command and the pointer
(full path name on the client machine) to the profile file to be used for
the job. In addition, for jobs running on Windows machines, the event
processor retrieves from the database the user IDs and passwords
required to run the job on the client machine.
3. The event processor processes the event. If the event is a STARTJOB,
the event processor attempts to establish a connection with the remote
agent on the client machine, and passes the job attributes to the client
machine.
The event processor sends a CHANGE_STATUS event marking in the
event server that the job is in STARTING state.
Explanation
4. On a UNIX machine, the inetd invokes the remote agent. On a
Windows machine, the remote agent logs onto the machine as the user
defined as the job’s owner, using the user IDs and passwords passed to it
from the event processor.
5. The remote agent sends an acknowledgment back to the event
processor indicating that it has received the job parameters. The socket
connection is terminated. At this point, the event processor resumes
scanning the event server database, looking for events to process.
6. The remote agent starts a process and executes the command in the
job definition.
7. The remote agent issues a CHANGE_STATUS event marking in the
event server that the job is in RUNNING state.
8. The client job process runs to completion, then returns an exit code to
the remote agent and quits.
Scheduler
Replaces the Event
Processor. A multi-
threaded process
which selects events
from the Event Server
and processes them.
Changes from 4.5
include multiple event
batching and dynamic
thread creation.
Autosys command line:
Although Windows XP's "at" command or Korn
shell's "cron" allows you to run job at desired
time - It lacks enterprise level job scheduling
features. PLATINUM Technology might fill this
gap by AutoSys.
AutoSys is ...
◦ A full job scheduling and
management system for
NT systems.
◦ Allows you create simple
or complex sets of
instructions to
automatically execute at
regular intervals.
◦ Allows you trigger jobs by
date and time, file arrival,
and other criteria.
AutoSys is ...
Like any scheduling product, AutoSys
automatically monitors your jobs. If
needed, AutoSys can itself restart
jobs that have failed, or cancelled,
or were aborted for any reasons. For
mission critical projects AutoSys
also has a high availability option
that will perform rollover of jobs to
a backup server if your primary
server fails. (Need clustering system
like VCS - Veritas Clustering
System). . .
Defining autosys job:
◦ By Autosys Web interface
◦ By AutoSys Graphical User
Interface (GUI).
◦ By using AutoSys Job
Information Language (JIL)
through a command-line
interface.
Autosys job types and structures:
There are three types of jobs:
◦ Command,
◦ File Watcher
◦ Box.
Box Jobs : Container of other jobs
(including other boxes), and box itself
performs no actions, although it can
trigger other jobs to run. An important
feature of this type of job is that boxes can
be put inside of other boxes
File Watcher Jobs : Watch for the arrival
of a specified file.
Defining autosys job
JIL stands for Job Information Language. Using this you can
instruct autosys to save job definitions. This information saved in
autosys database. You can also create a jil file which contains job
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:
command (c), file watcher (f) or box (b).
3. Owner
a. JIL Keyword : owner
Defining autosys job
JIL stands for Job Information Language. Using this you can
instruct autosys to save job definitions. This information saved in
autosys database. You can also create a jil file which contains job
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:
command (c), file watcher (f) or box (b).
3. Owner
a. JIL Keyword : owner
Defining autosys job
The job owner specifies whose user ID the command will be run
under on the client machine. This attribute is automatically set to
the user who invoked jil or the GUI to define the job, and cannot be
changed except by the edit superuser.
Other job attributes:
1. command: The command attribute can be the name of any
command, executable, UNIX shell script or batch file, and its
arguments.
2. machine: This attribute specifies the client machine on which the
command should be run.
3. date_condition: The start date/time dependencies attribute is a
toggle, which specifies whether or not there are date, time, or both,
conditions required for starting the job.
4. days_of_week: The days of the week attribute specifies the days
on which the job should be run.
Autosys CLI syntax:
Here is a template file that
explains the syntax of
Autosys JIL. (Job Information
Language.)
Autoys jil
Sample jil file for command job echoJob.jil
1.insert_job:echoJob
2.machine:unixMachine
3.owner:username
4.command:echo “Hello this is command job”