search cancel

Autosys - how to start a job manually

book

Article ID: 113632

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - Scheduler (AutoSys) Workload Automation Agent

Issue/Introduction

Goal: Start a job flow with a batch unix script, issuing the ‘start job’ or the ‘force start job’
Is there a connection to Autosys database needed?

Environment

Product - Workload Automation AE 11.3.x
Platform - Unix/Linux
 

Resolution

The recommended way to initiate a manual starting of job would be to use the autosys "sendevent" command.
Example: sendevent -E STARTJOB -J job123
The sendevent command is included as part of the AE client install.
The command makes use of AE environment variables to locate the $AUTOUSER/config.$AUTOSERV file.
Based on its contents it contacts the appropriate as_server process and makes the sendevent request.
The as_server has a pool of database connections and will write the event to the AE db for the client.
The scheduler picks up the event from the db and will process it.
The AE client to AE as_server communication is done via CA's CSAM.
Database client software is needed on the as_server and event_demon machines but not needed on AE client machines.

For more details on sendevent see the following: https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-commands/control-workload/sendevent-command-start-jobs