- 浏览: 697571 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
yzs5273:
没什么用。都试过了
WIN7下CS不能全屏的解决方法 -
di1984HIT:
不错,学习了
读取本地计算机中的安装程序列表 -
ffedu:
[flash=200,200][url][img][list] ...
linux/unix中如何用find命令详解,非常详细的介绍,比man find强100倍(转) -
lintghi:
...
Log4j使用相对路径指定log文件及使用总结 -
nick.s.ni:
唉,Java中引用的包没有介绍啊,如果数据库用UTF-8的格式 ...
Oracle 中Java 对象与PL/SQL类型的映射及使用(转)
Autosys UNICENTRE is a job scheduling tool.
The following article provides a brief information about the commands essential for job scheduling.
Autosys Job Management for UNIX
This guide will be helpfull in giving basic idea about what autosys is, defining jobs to AutoSys, monitoring and managing jobs.
Introduction to Autosys: AutoSys is an automated job control system for scheduling, monitoring, and reporting. These jobs can reside on any AutoSys-configured machine that is attached to a network.
An AutoSys job is any single command, executable, script, or Windows batch file. Each AutoSys job definition contains a variety of qualifying attributes, including the conditions specifying when and where a job should be run.
Defining Jobs :
There are the two methods you can use to create job definitions:
¦ Using the AutoSys Graphical User Interface (GUI).
¦ Using the AutoSys Job Information Language (JIL) through a command-line interface.
Autosys Jobs:
Job Types and Structure :
There are three types of jobs: command, file watcher, and box.
As their names imply, command jobs execute commands, box jobs are containers that hold other jobs (including other boxes), and file watcher jobs watch for the arrival of a specified file.
In the AutoSys environment, the box job (or box) is a container of other jobs. A box job can be used to organize and control process flow. The 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.
Default Box Job Behavior:
Some important rules to remember about boxes are
Jobs run only once per box execution.
Jobs in a box will start only if the box itself is running.
As long as any job in a box is running, the box remains in RUNNING state; the box cannot complete until all jobs have run.
By default, a box will return a status of SUCCESS only when all the jobs in the box have run and the status of all the jobs is "success.
By default, a box will return a status of FAILURE only when all jobs in the box have run and the status of one or more of the jobs is "failure."
Unless otherwise specified, a box will run indefinitely until it reaches a status of SUCCESS or FAILURE.
Changing the state of a box to INACTIVE (via the sendevent command) changes the state of all the jobs in the box to INACTIVE.
Job States and Status :
AutoSys keeps track of the current state, or status, of every job. The value of a job’s status is used to determine when to start other jobs that are dependent on the job. The job status is displayed in the job report generated by the autorep command, and in the job report you can view in the Job Activity Console
Following are the status of Autosys jobs:
INACTIVE : The job has not yet been processed. Either the job has never been run, or its status was intentionally altered to “turn off” its previous completion status
ACTIVATED :The top-level box that this job is in is now in the RUNNING state, but the job itself has not started yet.
STARTING : The event processor has initiated the start job procedure with the Remote Agent.
RUNNING : The job is running. If the job is a box job, this value simply means that the jobs within the box may be started (other conditions permitting). If it is a command or file watcher job, the value means that the process is actually running on the remote machine.
SUCCESS : The job exited with an exit code equal to or less than the “maximum exit code for success.” By default, only the exit code “0” is interpreted as “success.” If the job is a box job, this value means that all the jobs within the box have finished with the status SUCCESS (the default), or the “Exit Condition for Box Success” evaluated to true
FAILURE : The job exited with an exit code greater than the “maximum exit code for success.” By default, any number greater than zero is interpreted as “failure.” AutoSys issues an alarm if a job fails
TERMINATED : The job terminated while in the RUNNING state. A job can be terminated if a user sends a KILLJOB event or if it was defined to terminate if the box it is in failed. If the job itself fails, it has a FAILURE status, not a TERMINATED status. A job may also be terminated if it has exceeded the maximum run time (term_run_time attribute, if one was specified for the job), or if it was killed from the command line through a UNIX kill command. AutoSys issues an alarm if a job is terminated.
RESTART : The job was unable to start due to hardware or application problems, and has been scheduled to restart.
QUE_WAIT : The job can logically run (that is, all the starting conditions have been met), but there are not enough machine resources available.
ON_HOLD : This job is on hold and will not be run until it receives the JOB_OFF_HOLD event.
ON_ICE : This job is removed from all conditions and logic, but is still defined to AutoSys. Operationally, this condition is like deactivating the job. It will remain on ice until it receives the JOB_OFF_ICE event.
The difference between "on hold" and "on ice" is that when an "on hold" job is taken off hold, if its starting conditions are already satisfied, it will be scheduled to run, and it will run. On the other hand, if an "on ice" job is taken "off ice," it will not start, even if its starting conditions are already satisfied. This job will not run until its starting conditions reoccur.
The other major distinction is that jobs downstream from the job that is "on ice" will run as though the job succeeded. Whereas, all dependent jobs do not run when a job is on "on hold"—nothing downstream from this job will run.
Starting Parameters :
AutoSys determines whether to start or not to start a job based on the evaluation of the starting conditions (or starting parameters) defined for the job. These conditions can be one or more of the following:
¦ Date and time scheduling parameters are met (it is or has passed the specified date and time).
¦ Starting Conditions specified in the job definition evaluate to true.
¦ For jobs in a box, the box must be in the RUNNING state.
¦ The current status of the job is not ON_HOLD or ON_ICE.
Every time an event changes any of the above conditions, AutoSys finds all the jobs that may be affected by this change, and determines whether or not to start them.
sample jil code / Writing jil code:
jil = Job information language
When using JIL to create a job definition, you enter the jil command to display the JIL prompt.
Runs the Job Information Language (JIL) processor to add, update, and delete AutoSys jobs, machines, monitors, and reports. Also used to insert one-time job override definitions.
-------------------------------------------------------------------------------------------------
/* ----------------- SAP_UAT_MU03_C ----------------- */
insert_job: SAP_UAT_MU03_C job_type: c
command: /local/SAP/processCheckUAT.sh
machine: MU03-UAT
owner: admin@MU03-UAT
permission: gx,wx,mx,me
days_of_week: all
start_times: "15:00, 14:00"
description: "Job used for Run testing of process"
alarm_if_fail: 1
max_exit_success: 1
-------------------------------------------------------------------------------------------------
The above example is a simple jil code of autosys which we have to write if we want any particular job to be thru autosys.
To Insert a new JIL code :
issue command "jil"
bash-3.00$ jiljil>>1>
"The following prompt will appear" copy paste the jil code u have made example of jil code below...........
At the end the "C" or "B" determines if the job is box job or child job.
if the jil is inserted properly successfull message will come if any errors are there the jil code contains some errors..
if successfull exit;
2. Other way is to create a temp file named temp.jil which contains jil code on autosys server: give command.
bash-3.00$ jil<>
Functional Listing of AutoSys Commands :
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 chk_auto_up
Converting cron to JIL (UNIX Only) : cron2jil
Defining AutoSys Jobs or Machines : jil
Defining Calendars : autocal, autocal_asc
Reporting Job Status : autorep
autostatus
Starting AutoSys (UNIX Only) : eventor
Stopping AutoSys : sendevent
Using Autorep command:
Function
Reports information about a job, jobs within boxes, machines, and machine status. Also reports information about job overrides and global variables.
Syntax
autorep {-J job_name -M machine_name -G global_name} [-s -d -q -o over_num] [-r run_num]
autorep -J (job name here)
This will display a list of jobs with complete details with box/jobname, last/latest run date & time, status, exit code, etc.
Viewing JIL code for any Autosys job
autorep -J (job name here) -q
To obtain the underlying JIL (Job Interaction Language) source code for any Autosys job, run command:
To obtain the information of previous runs
autorep -J (job name here) -r (No of runs back) example : autorep -J (job name here) -r 1
would generate a report for the job run one runs back
-------------------------------------------------------------------------------------------------
Status Abbreviations
The following table lists the abbreviations used in the ST (status) column of the autorep report, and gives the status for each abbreviation.
AC - ACTIVATED
FA - FAILURE
IN - INACTIVE
OH - ON_HOLD
OI - ON_ICE
QU - QUE_WAIT
RE - RESTART
RU - RUNNING
ST - STARTING
SU - SUCCESS
TE - TERMINATED
-------------------------------------------------------------------------------------------------
sendevent:
sendevents to AutoSys for a variety of purposes, including starting or stopping AutoSys jobs, stopping the Event processor, and putting a job on hold. This command is also used to set AutoSys global variables or cancel a scheduled event.
sendevent is normally used with "-E" & -J option
-J job_name : Specifies the name of the job to which the specified event should be sent. This option is required for all events except STOP_DEMON, COMMENT, ALARM, or SET_GLOBAL
-E event :Specifies the event to be sent. This option is required. Any one of the following events may be specified:
STARTJOB
KILLJOB
DELETEJOB
FORCE_STARTJOB
JOB_ON_ICE
JOB_OFF_ICE
JOB_ON_HOLD
JOB_OFF_HOLD
CHANGE_STATUS
STOP_DEMON
CHANGE_PRIORITY
COMMENT
ALARM
SET_GLOBAL
SEND_SIGNAL
Following are the example of sendevent command frequently used.
____________________________________________________________________
To start or force start a job manually using sendevent :
sendevent –E FORCE_STARTJOB -J "Job Name Here"
sendevent -E STARTJOB -J "Job Name Here"
To put jobs on OFF ICE or ON ICE :
sendevent -E OFF_ICE -J "Job Name Here"
sendevent -E ON_ICE -J "Job Name Here"
发表评论
-
Do POST with CURL
2016-01-18 16:58 0th fields: curl --data " ... -
DOS Command to remove shortcut arrow and add open command window here
2015-07-30 14:56 540@echo off echo. echo Removin ... -
How to Enable “Open Command Window Here” Option in Context Menu in Windows Vista
2015-07-29 19:58 935In Windows Vista and later, if ... -
Shell script for stress testing
2014-10-23 00:05 789ParseInstance() { Files=`f ... -
Shell操作字符串
2014-08-19 09:42 652在做shell批处理程序时候,经常会涉及到字符串相关操作 ... -
Linux设置shell提示符的方法
2014-05-16 16:52 736转自: http://www.linuxsong.org/2 ... -
Win7 - Failed to set image as wallpaper
2014-04-29 12:02 887Problem: Right click on an im ... -
JBoss 6.0.0 Final 启动慢且占用大量内存的解决方法
2014-02-22 22:53 13551. Patch jboss.jar (Can be op ... -
Linux Used内存到底哪里去了
2014-02-22 15:31 872原创文章,转载请注明: 转载自系统技术非业余研究 本文 ... -
Killing process via shell script
2014-02-14 15:59 508#!/bin/sh #Check input parame ... -
Install Chocolatey when you access Internet via proxy
2014-01-24 16:43 1159Modify install.ps1 like bel ... -
Startup script for configuring a workstation
2014-01-24 16:29 800@echo off ping -n 100 127 ... -
Shell skills take away
2014-01-16 17:45 7971. Empty log files in batch ... -
Building a java classpath from a windows batch file (Reposted)
2014-01-06 16:10 874A great feature introduced wi ... -
Shell操作数组
2014-01-03 19:20 958#pids=(123 345 678)pids=$(ps -e ... -
shell参数传递有空格的问题
2013-12-27 19:34 5772$# 传给脚本的参数个数$0 脚本本身的名字$1 传递给该s ... -
Shell Usage Sample
2013-12-27 19:08 1267Sample 1: if [ $# -ne 1 ] t ... -
用shell判断一个字符串是不是全为数字 & 取字符串的第N个字符(转)
2013-12-27 18:57 1620(1)判断一个字符串是不是全为数字 01 ... -
基本正则表达式和扩展正则表达式的区别
2013-12-23 09:31 1486sed默认的匹配方式是基本正则表达式,用基本正则表达式匹配时. ... -
Delete file with name start with dash
2013-11-25 11:52 853Sample file name: -a 1. rm - ...
相关推荐
在IT领域,Autosys是一款强大的作业调度与工作流自动化软件,被广泛应用于企业级环境中进行任务管理和资源调度。在Unix环境下安装Autosys是一项关键的技术操作,涉及到多个步骤和注意事项,以下是对“Autosys在Unix...
【AutoSys自动作业控制系统】 AutoSys是一个自动化作业控制系统,它主要用于调度、监控和报告系统中的任务执行。这个系统设计的目的是让在联网的AutoSys配置过的机器上的各种任务能够自动运行。AutoSys作业可以是...
Autosys是一款强大的自动化作业调度系统,主要用于在Unix操作系统环境下管理复杂的任务流程。它能够自动执行计划的任务,监控作业状态,并在必要时触发关联的作业,确保企业的业务流程顺畅进行。以下是对“Autosys ...
【标题】"先进的分布式调度由CA的autosys.zip"揭示了在IT行业中,CA Technologies(现在是 Broadcom 的一部分)的自动化解决方案——Autosys。这个工具主要用于企业级的作业调度和自动化,尤其适用于大型分布式系统...
本部分文本是《Unicenter AutoSys Job Management for UNIX User Guide》文档的一部分,它提供了与Autosys工作管理系统相关的用户指导信息。Autosys是Unicenter AutoSys Job Management中使用的一项技术,专门用于在...
autosys installation on unix
由于给出的文件内容片段主要是版权声明和警告,未提供具体的Autosys Job Management技术细节和操作指南,因此无法直接生成相关知识点。不过,基于文件标题和描述,我们可以对Autosys Job Management进行一些泛泛的...
标题中提到的"Unicenter AutoSys Job Management for Unix"指出本文档主要讲述在Unix操作系统环境下,如何通过Autosys工具来管理作业调度。"Unicenter"是CA(Computer Associates)公司推出的一套管理软件,而...
资源来自pypi官网。 资源全名:autosys-1.5.2-py3-none-any.whl
### Unicenter Autosys Job Management知识点详述 #### 一、Unicenter Autosys Job Management概览 **Unicenter Autosys Job Management**是一款由Computer Associates International, Inc.(简称CA)开发的强大...
### AutoSys Job Management for Windows and UNIX #### 一、简介 在IT行业中,作业调度(Job Scheduling)是一项至关重要的任务,它确保了系统能够按照预定的时间和顺序执行各项任务。AutoSys是一款由Computer ...
先进的分布式调度由CA的autosys.bz2
jil2csv 解析Autosys JIL文件并将其转换为CSV的简单脚本。 在没有autosys管理控制台但需要深入了解已定义作业的地方很有用。 使用过滤器或其他工具填充CSV数据会更加容易。 它需要Java 7或更高版本。
统作为数据源,通过作业调度子系统(CA Autosys)收集批量数据(Batch)和企业级 服务总线采集实时数据(Real Time),存储于医疗财务数据仓库,并缓存聚合数据于 MongoDB - Near Cache中,并辅以在线事务处理和分析能力...
2. **AutoSys Agent**:AutoSys是一款自动化工作流程管理系统,用于调度和监控NarrowCast任务。监控Agent的状态和日志,可以发现潜在的问题。 3. **Event File (SCP)**:SCP文件用于传输数据或指令,监控其创建和...
具备的技术和能力包括Java编程、Sybase数据库管理、Autosys自动化工具以及Perl脚本语言。 3. **工作经历**: - 2013年4月至2016年8月,在pactera公司(Cit的供应商)担任软件工程师,负责Matrix项目的安全借贷系统...
11. **Autosys 知识**:了解自动化调度工具 Autosys,可提升 ETL 作业的自动化程度。 **资格要求** - 至少3年相关工作经验 - 大学本科及以上学历 - 良好的英语沟通能力 综上所述,DW Informatica 的工作涵盖了ETL...
AutoJob是Linux环境中的一款开源作业调度器,类似于商业软件AutoSys。它专为需要自动化执行任务的用户设计,尤其适合那些熟悉AutoSys界面和工作流程的用户。在Linux系统中,作业调度是至关重要的,因为它允许用户...