Autocalasc is the utility that helps maintain the calendars in Autosys. Syntax: autocalasc. Export Calendar: autocalasc -E filename -s calendarname. Import Calendar. Use the calendar button in the Autosys GUI or (my preference) from the command line 'autocalasc' command. You can specify any set of dates and save with a name e.g.lastmonthdays. When you create a job then use the runcalendar or specify in the jil script. To start the AutoSys GUI set your DISPLAY and run the command 'autosc &'. NT: Start AutoSys from start-programs-AutoSys- administrator -Graphical User Interface -Command Prompt Command Line Commands: 1. Gatekeeper: Allows you to enter the License Keys which allow you to run AutoSys. Eventor -M machinename: Starts the event processor.
This section lists which AutoSys commands to use for specific tasks. All commands are for both Windows and UNIX, unless otherwise specified. Accessing Sybase: xql; Checking System Status: autoflags autoping autosyslog chase chkautoup; Converting cron to JIL (UNIX Only): cron2jil; Defining AutoSys Jobs or Machines: jil; Defining Calendars: autocal, autocalasc; Reporting Job Status: autorep. AutoSys provides extensive scheduling functionality. Jobs can be scheduled to run based on time and date, file arrival, and/or job dependencies such as the SUCCESS, FAILURE, or exit code of other jobs. Jobs can also be scheduled to run (or not to run) according to custom calendars you create using the easy-to-use Graphical Calendar Facility.
Autosys is one of the most popular job scheduling tools used in the software development lifecycle process. It is a task scheduler created by using a batch program or UNIX script. To create/run an Autosys jobs, a user needs to have either a LINUX or Windows machine. Here are some of heavily used Autosys Commands.
- Command to define a job
$jil -f -i -l -v -o
- Checking status of job
$autorep -J
- Start a job
$sendevent -E START JOB -J
$sendevent -E FORCE_START_JOB -J
- Kill a job
$sendevent -E KILL JOB -J
- Put a job On HOLD
$sendevent -E JOB_ON_HOLD -J
- Put a job Off HOLD
$sendevent -E JOB_OFF_HOLD -J
- Put a job On Ice
$sendevent -E JOB_ON_ICE -J
- Put a job Off Ice
$sendevent -E JOB_OFF_ICE -J
- Change status of job (for example change into Success status
$sendevent -E CHANGE_STATUS -S SUCCESS -J
- Command to check the status of the Autosys job automatically
while true
Autosys Run Calendar
do
autorep -j
sleep 10
done
This command will display the status of the job every 10 seconds
To kill this Autosys command, Press Control+C
- Killing an Autosys job using Workflow ID
First of all, get a Workflow details using the following command
$autorep -J
- Start a job
$sendevent -E START JOB -J
$sendevent -E FORCE_START_JOB -J
- Kill a job
$sendevent -E KILL JOB -J
- Put a job On HOLD
$sendevent -E JOB_ON_HOLD -J
- Put a job Off HOLD
$sendevent -E JOB_OFF_HOLD -J
- Put a job On Ice
$sendevent -E JOB_ON_ICE -J
- Put a job Off Ice
$sendevent -E JOB_OFF_ICE -J
- Change status of job (for example change into Success status
$sendevent -E CHANGE_STATUS -S SUCCESS -J
- Command to check the status of the Autosys job automatically
while true
Autosys Run Calendar
do
autorep -j
sleep 10
done
This command will display the status of the job every 10 seconds
To kill this Autosys command, Press Control+C
- Killing an Autosys job using Workflow ID
First of all, get a Workflow details using the following command
ps -ef | grep
After getting the workflow ID, kill the job using the following command
Autosys Calendar Commands 2019
kill -9
- To get information about the previous run
Autosys Calendar List
$autorep -J -r
- To list all the job present in a Job box
$autorep -J %% -q
- To check the dependency on the job
$job_depands -c -w -J
The article was collected and written by Bijaya Subedi. Bijaya is currently working as an ETL tester in a DC/VA based Mortgage Company.