- 浏览: 703576 次
- 性别:
- 来自: 上海
-
文章分类
最新评论
-
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: UNIX
Cd to the "autouser" ($AUTOUSER) directory and "." (or source) the "ksh" file. Ex: ". ./autosys.ksh.machine" After installing AutoSys, first make sure that the DB is up and running. Check the installation by running the command chk_auto_up to verify connection to the DB and event processor.
Enter the KEYS through "gatekeeper", add keys
Run the "autosys_secure" command to set the AutoSys Edit and Exec Super users (and also to enter NT users/passwords)
Start the Event Processor by running the command "eventor"
Shutdown AutoSys: "sendevent -E STOP_DEMON"
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:
gatekeeper: Allows you to enter the License Keys which allow you to run AutoSys.
eventor [-M machine_name] : Starts the event processor.
autorep -J [ALL | Job_name] [-q] [> file_name], -d (detail), -r (run number), -o (override), jil < file_na -G (global var report), -M -q for machine definitions.
Ex: autorep -J job_name -d
autorep -J job_name -d
autorep -J job_name -q > file_name queries the DB & save job Dfn. Into a file
vi file_name
When you want a report of a box use the -L0 option
Autorep -J job_name -l1 report on the job for the day -1 (prev day)
sendevent -E STARTJOB -J job_name, sendevent -E FORCE_STARTJOB -J job_name, [JOB_ON_ICE, JOB_OFF_ICE, JOB_ON_HOLD, JOB_OFF_HOLD, SET_GLOBAL, STOP_DEMON. . . .]
sendevent -E STOP_DEMON - to stop AutoSys
(ex: sendevent -E SET_GLOBAL -G "var_name=/home/mydir" to set a var)
(ex: sendevent -E SET_GLOBAL -G "var_name=DELETE" to delete a var)]
chk_auto_up: checks to see if event processor and the DB are both up.
autoping -m machine: verify that both client & server are correctly configured.
cron2jil -f cronfile [-d outdir] [-I incl_file] [-m machine] [-p prefix]
jil <CR>
To insert a job directly into the DB
insert_job: job.id job_type: c
machine: machine_name
command: echo testing jil
[go | ;] (depending on the DB you are using)
Template example:
/* ----------------- template ----------------- */
insert_job: template job_type: c
box_name: box1
command: ls -l
machine: localhost
owner: lyota01@TANT-A01
permission: gx,ge,wx,we,mx,me
date_conditions: 1
days_of_week: all
start_times: "15:00, 14:00"
run_window: "14:00 - 6:00"
condition: s (job1)
description: "description field"
n_retrys: 12
term_run_time: 60
box_terminator: 1
job_terminator: 1
std_out_file: /tmp/std_out
std_err_file: /tmp/std_err
min_run_alarm: 5
max_run_alarm: 10
alarm_if_fail: 1
max_exit_success: 2
chk_files: /tmp 2000
profile: /tmp/.profile
job_load: 25
priority: 1
auto_delete: 12
autosyslog -e: same as tail -f autosys_log_file. This command must be run from the machine where the server resides if used with the -e option. Else it can be used with the -J option to see that job's run log.
job_depends: -[c|d|t] -J jobname [-F "mm/dd/yy time"] [-T "mm/dd/yy time"] (Note: It will only print out the first occurrence found)
monbro -n monitor_name: Allows you to run from command line monitor/browser programs previously created using the monitor/browser GUI.exec superuser: AUTOSYS superuser
autocal_asc full_cal_name: prints, adds & deletes custom calendar definitions.
autostatus: Reports the current status of a specific job, or the value of an AutoSys global variable. Ex: autostatus -J job_name, -S instance
autotimezone -l : Allows additions, deletions, and queries to the timezones table (-l provides list).
autotrack: Tracks & report changes to the AutoSys DB. Ex: autotrack -l 2 (level 2) [sets the tracking level] autotrack -U sys -v (user sys: verbose) To start using the autotrack utility type: autotrack -u to set tracking level 1 or 2. By default it is set to 0. Autotrack -l will list the current tracking level. Options -[J, U, m, F, T, and t] are to request reporting on a specific Job, User, machine, time window (-F -T), and event type (t). Type is used in conjunction w/other parameters. autotrack w/no arguments retrieves information an all events omitting detail. -v option is for verbose.
autosys_secure: to change edit, exec superusers, change DB passwd, change remote authentication method.
chase [-A|E]: Makes sure that jobs claiming to be running in the client machine are running. The "-E" option restarts the job.
archive_events: to archive events in the DB which are older than x days to prev DB from becoming full.
clean_files: Deletes old remote agent log files. It does it by searching the DB for all machines which have had jobs started on them.
autostatad: to get the status of a PeopleSoft job. You can define one of the user definable buttons to view PeopleSoft job: Autocons*userButton1Label: Adapter Status
User definable buttons: There are user definable buttons in the operator's console.
How to configure:
Autocons*userButton1Command: /autosys/bin/autostatad -J $JOB -g & (which allows you to have a command button on the operator's console.)
Dependencies:
success (job) and s(job_b)
failure(job_a) or f (job_b)
notrunning (job)
terminated(job)
exitcode(job) > 5 and exitcode(job_b) != 10
value(global_name)=100
done(job)
Hostscape: Schedule a job to run every x minutes & then go into forecasting. Make that job fail.
Solid black line: Hostscape can communicate with the remote agent in the client machine.
Solid red line: Hostscape can't communicate with the remote agent but it can communicate with the internet daemon (inetd) running on that machine..
Dashed red line: Hostscape can't communicate with the client machine at all. Client is probably down.
Accessing a variable name: $$GLOBAL_VAR_NAME (unless used in dependency condition with a job definition. If used in the "command" field, you must use the $$)
Tunable Parameters:
$AUTOUSER/config.ACE
$AUTOUSER/autosys.ksh.xxx
/etc/auto.profile
/etc/inetd.conf
/etc/services
Notify.Ace: The alarms to notify on are:
(There is an example in $AUTOSYS/install/data/Notify.Ace).
DB_ROLLOVER
DB_PROBLEM
EP_HIGH_AVAILABILITY
EP_ROLLOVER
EP_SHUTDOWN
Where to go to find the Errors:
$AUTOUSER/out/event_demon.$AUTOSERV
($AUTOUSER/out/event_demon.ACE)
Output from the job definition output & error files
/tmp files created for job_run at client machine
$AUTOSYS/out/DBMaint.out for DB problems
$SYBASE/install/errorlog_$DSQUERY when event server will not start.
NT: AutoNuTc\lib/X11\app-defaults\xpert
AutoSys Maintenance: DBMaint @$AUTOSYS/bin
Once a day the Database goes into a maintenance cycle. Every day at 3:00am it runs a program called DBMaint. This is user configurable. The program runs DBstatistics which is found in $AUTOSYS/bin.
app-defaults file: /usr/openwin/lib/app-defaults directory. Autocons, Xpert, etc.. ( or: /usr/lib/X11/app-defaults, /autosys/bin/X11/app-defaults)
Environment file: /etc./auto.profile
C programs: $AUTOSYS/code
Where to change AutoSys screen fonts: /usr/openwin/lib/app-defaults
Where to look for troubleshooting: Chapter 15
Summary of commands: Appendix C
$AUTO_JOB_NAME: when naming a file dynamically using as prefix AutoSys's job name.
$AUTORUN: unique identifier for the run of that job
$AUTOPID: unique identifier for that job's run number (PID)
$JOID: DB identifier for a job. To extract from the DB: select joid from job where job_name=" "
Creating a Virtual Machine:
insert_machine: virtual
type: v /* default, not required */
machine: real_1
machine: real_2
max_load: 100
factor: 0.5 /* used to describe the relative processing power of a machine. Usually between 0.0-1.0*/
machine: real_2
max_load: 60 /* this is designed to limit the loading of a machine */
Load Balancing, Queuing, priorities:
insert_job: test_load
machine: localhost
command: echo "Test load balancing"
job_load: 50
priority: 1 /* this only affects queues */
Note: For 5.0 we will be using information from ServerVision's towards our load balancer which is composed of 26 categories such as i/o usage, disk usage, CPU usage, etc.
Testing:
zql
zql -U autosys -P autosys
NOTES:
When a job is stuck in the starting condition this means that the event processor communicated with the remote agent and passed all the information the remote agent ran the job but was not able to communicate to the DB. Once testing is done with AutoSys one should change the default refresh interval for AutoSys. This is so there is less querying to the DB. When AutoSys goes from dual mode to single mode, always run the autobcp command before bringing AutoSys back to dual mode/High Availability. Default behavior for stdout is to always appends. If you want to overwrite the file enter the following, no spaces: ">file.out"
Box Logic
Use boxes to group jobs with like scheduling parameters, not as means of grouping jobs organizationally. For example, if you have a number of jobs that run daily at 1:00 a.m., you could put all these jobs in a box and assigning a daily start condition to the box. However, a variety of account processing jobs with diverse starting conditions should not be grouped in the same box.
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." Default SUCCESS is described in Default Box Success and Box Failure on page 5-13.
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." Default FAILURE is described in Default Box Success and Box Failure on page 5-13.
Unless otherwise specified, a box will run indefinitely until it reaches a status of SUCCESS or FAILURE. For a description of how to override this behavior, see Box Job Attributes and Terminators on page 5-6.
Changing the state of a box to INACTIVE (via the sendevent command) changes the state of all the jobs in the box to INACTIVE.
When you Should Not Use a Box
The fact that all jobs in a box change status when a box starts running has lead some to use boxes to implement "job cycle" behavior. Be aware that placing jobs in a box to achieve this end may bring with it undesired behavior due to the nature of boxes.
Avoid the temptation to put jobs in a box as a short cut for performing events (such as ON_ICE or ON_HOLD) on a large number of jobs at once. You will most likely find that the default behavior of boxes inhibits the expected execution of the jobs you placed in the box.
Likewise, you should not place jobs in a box solely because you want to run reports on all of them. When you run autorep on a box, you will get a report on the box and all the jobs in the box (unless you use the -L0 option). In addition, if you use wildcarding when specifying a job name, you could get duplicate entries in your report. For example, suppose you have a box named "acnt_box" containing three jobs named "acnt_job1", "acnt_job2", and "daily_rep". If you specify acnt% as the job name for the autorep report, the report will have an entry for the box "acnt_box" and an entry for each job in the box. Then autorep will continue searching for all job names matching the wildcard characters and, thus, will list "acnt_job1" and "acnt_job2" a second time.
What Happens when a Box Runs
As soon as a box starts running, all the jobs in the box (including sub-boxes) change to status ACTIVATED, meaning they are eligible to run. (Because of this, jobs in boxes do not retain their statuses from previous box cycles.) Then each job is analyzed for additional starting conditions. All jobs with no additional starting conditions are started, without any implied ordering or prioritizing. Jobs with additional starting conditions remain in the ACTIVATED state until those additional dependencies have been met. The box remains in the RUNNING state as long as there are activated or running jobs in the box.
If a box is terminated before a job in it was able to start, the status of that job will change directly from ACTIVATED to INACTIVE.
Note o Jobs in a box cannot start unless the box is running. However, once the job starts running, it will continue to run even if the box is later stopped for some reason.
Time Conditions in a Box
Each job in a box will run only once per box execution. Therefore, you should not define more than one time attribute for any job in a box because the job will only run the first time. If you want to put a job in a box, but you also want it to run more than once, you must assign multiple start time conditions to the box itself, and define no time conditions for the job. Remember also that the box must be running before the job can start. Do not assign a start time for a job in a box if the box will not be running at that time. If you do, the next time the box starts the job will start immediately.
The following example illustrates a scenario that would not work properly if placed in a box.
"job_a" is defined to run repeatedly until it succeeds. "job_report" has one starting condition-the success of "job_a".
How Job Status Changes Affect Box Status
If a box that is not running contains a job that changes status, as a result of a FORCE_STARTJOB or CHANGE_STATUS event, the new job status could change the status of its container box. A change of status of the box could trigger the start of downstream jobs that are dependent on the box.
If a box contained only one job, and the job changed status, the box status would change.
发表评论
-
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 552@echo off echo. echo Removin ... -
How to Enable “Open Command Window Here” Option in Context Menu in Windows Vista
2015-07-29 19:58 949In Windows Vista and later, if ... -
Shell script for stress testing
2014-10-23 00:05 801ParseInstance() { Files=`f ... -
Shell操作字符串
2014-08-19 09:42 668在做shell批处理程序时候,经常会涉及到字符串相关操作 ... -
Linux设置shell提示符的方法
2014-05-16 16:52 756转自: http://www.linuxsong.org/2 ... -
Win7 - Failed to set image as wallpaper
2014-04-29 12:02 894Problem: Right click on an im ... -
JBoss 6.0.0 Final 启动慢且占用大量内存的解决方法
2014-02-22 22:53 13731. Patch jboss.jar (Can be op ... -
Linux Used内存到底哪里去了
2014-02-22 15:31 885原创文章,转载请注明: 转载自系统技术非业余研究 本文 ... -
Killing process via shell script
2014-02-14 15:59 517#!/bin/sh #Check input parame ... -
Install Chocolatey when you access Internet via proxy
2014-01-24 16:43 1175Modify install.ps1 like bel ... -
Startup script for configuring a workstation
2014-01-24 16:29 808@echo off ping -n 100 127 ... -
Shell skills take away
2014-01-16 17:45 8071. Empty log files in batch ... -
Building a java classpath from a windows batch file (Reposted)
2014-01-06 16:10 886A great feature introduced wi ... -
Shell操作数组
2014-01-03 19:20 970#pids=(123 345 678)pids=$(ps -e ... -
shell参数传递有空格的问题
2013-12-27 19:34 5814$# 传给脚本的参数个数$0 脚本本身的名字$1 传递给该s ... -
Shell Usage Sample
2013-12-27 19:08 1287Sample 1: if [ $# -ne 1 ] t ... -
用shell判断一个字符串是不是全为数字 & 取字符串的第N个字符(转)
2013-12-27 18:57 1663(1)判断一个字符串是不是全为数字 01 ... -
基本正则表达式和扩展正则表达式的区别
2013-12-23 09:31 1514sed默认的匹配方式是基本正则表达式,用基本正则表达式匹配时. ... -
Delete file with name start with dash
2013-11-25 11:52 866Sample 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系统中,作业调度是至关重要的,因为它允许用户...