Autosys Basic Command __autosys

Source: Internet
Author: User
Basic commands for Autosys

1.cmd
SENDEVENT-E force_startjob-j JobName
SENDEVENT-E job_on_ice-j JobName
SENDEVENT-E change_status-s failure-j JobName
SENDEVENT-E change_status-s success-j JobName

2.run Jil file to Create/update/delete Job
Jil </path/jilfile.jil

3.Create Calendar on Autosys
1. Create TXT document the document content contains Calendar name,
Calendar mode is ' A ' (the calendar mode contains ' Add ', ' delete ', ' print ') and calendar dates.
4474_us_aftercssiholiday
A
12/27/2011
01/03/2012
01/17/2012
........
2). AUTOCAL_ASC < filename

4.create Job Scripts

* *-----------------box_name-----------------* *

Insert_job:box_name job_type:b
Owner:admin
Permission
Date_conditions:1
Days_of_week:su,mo,tu,we,th
Start_times: "20:00"
Description: "Start XXX box"
Alarm_if_fail:1

* *-----------------fw_name-----------------* *

Insert_job:fw_name job_type:f
Box_name:box_name
Machine:watch_machine
Owner:admin
Permission
Description: "If delayed contact Support Team"
Watch_file:/flag_path/flagfile.flag
watch_file_min_size:0
Watch_interval:10
Max_run_alarm:20
Alarm_if_fail:1
Profile:/path/profile.sh


* *-----------------job_name-----------------* *

Insert_job:job_name Job_type:c
Box_name:box_name
Command:/ksh_path/xxx.ksh
Machine:ksh_machine
Owner:admin
Permission
Description: "XXX processing"
Condition:s (Fw_name)
Std_out_file:log_path/xxx. ' Date +%y%m%d%h%m%s '. Log
Std_err_file:log_path/xxx. ' Date +%y%m%d%h%m%s '. Log
Max_run_alarm:20
Alarm_if_fail:1
Profile:/path/profile.sh


5.delete Job Scripts

Delete_box:box_name
Delete_box:job_name

6.update Job Scripts

* *-----------------box_name-----------------* *

Update_job:box_name job_type:b
Owner:admin
Permission
Date_conditions:1
Days_of_week:su,mo,tu,we,th
Start_times: "20:00"
Description: "Start XXX box"
Alarm_if_fail:1

* *-----------------fw_name-----------------* *

Update_job:fw_name job_type:f
Box_name:box_name
Machine:watch_machine
Owner:admin
Permission
Description: "If delayed contact Support Team"
Watch_file:/flag_path/flagfile.flag
watch_file_min_size:0
Watch_interval:10
Max_run_alarm:20
Alarm_if_fail:1
Profile:/path/profile.sh


* *-----------------job_name-----------------* *

Update_job:job_name Job_type:c
Box_name:box_name
Command:/ksh_path/xxx.ksh
Machine:ksh_machine
Owner:admin
Permission
Description: "XXX processing"
Condition:s (Fw_name)
Std_out_file:log_path/xxx. ' Date +%y%m%d%h%m%s '. Log
Std_err_file:log_path/xxx. ' Date +%y%m%d%h%m%s '. Log
Max_run_alarm:20
Alarm_if_fail:1
Profile:/path/profile.sh



Http://www.myexception.cn/operating-system/667417.html




Example To change the box box_a start time to 15:00 from 14:00

Update_job:box_a
start_times: "15:00"

Save this into a file and run it using Jil < Filename.jil



Module load dev--A development environment that has been set up well

Jil < Run.jil--owner Dev


Sendevent-j jobname-e force_startjob--owner Dev


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.