http://support.ca.com/phpdocs/0/common/impcd/r11/troubleshooting/doc/autsys_diag_tips_110607.pdf

autsys_diag_tips_110607.pdf

http://writetrends.files.wordpress.com/2009/09/autosys-edk2uaj45cie.pdf

Unicenter AutoSys Job Management

查看错误:

autorep -J jobname -d

FYI:

If you guys need to install autosys jobs in UAT

Login into UAT box

Then scsu - apollotrs

Then change to ksh shell
[apollotrs@pecdlnx1u scripts]$ ksh
$ . ~autosys/.profile

$ . ~autosys/.profile

. ~autosys/.profile

cd /export/opt/NellyTRS/rel_ver/autosys/uat

autorep -j 158459%

LOADING JOBS
BOX:
jil < 158459_EODDataLoadAndCalculations_Box.jil

jil < 158459_Snapshot_UserData.jil
jil < 158459_Snapshot_InFeedData.jil
jil < 158459_Snapshot_TradeData.jil

CHECK THE STATUS OF JOBS

BOX:
autorep -J 158459_EODCalculations_Box

autorep -J 158459_Snapshot_UserData
autorep -J 158459_Snapshot_InFeedData
autorep -J 158459_Snapshot_TradeData
autorep -J 158459_EOD_Calculations
autorep -J 158459_OasysFeeds_Generator
autorep -J 158459_OasysFeeds_FTPSender
autorep -J 158459_Snapshot_Purge
autorep -J 158459_PTRSDailyReportBatch

FORCE STARTING JOBS
BOX:
sendevent -J 158459_EODCalculations_Box -E FORCE_STARTJOB

sendevent -J 158459_Snapshot_UserData -E FORCE_STARTJOB
sendevent -J 158459_Snapshot_InFeedData -E FORCE_STARTJOB
sendevent -J 158459_Snapshot_TradeData -E FORCE_STARTJOB
sendevent -J 158459_EOD_Calculations -E FORCE_STARTJOB
sendevent -J 158459_OasysFeeds_Generator -E FORCE_STARTJOB
sendevent -J 158459_OasysFeeds_FTPSender -E FORCE_STARTJOB
sendevent -J 158459_Snapshot_Purge -E FORCE_STARTJOB

DELETE JOBS
BOX:
sendevent -J 158459_EODCalculations_Box -E DELETEJOB

sendevent -J 158459_Snapshot_UserData -E DELETEJOB
sendevent -J 158459_Snapshot_InFeedData -E DELETEJOB
sendevent -J 158459_Snapshot_TradeData -E DELETEJOB
sendevent -J 158459_EOD_Calculations -E DELETEJOB
sendevent -J 158459_OasysFeeds_Generator -E DELETEJOB
sendevent -J 158459_OasysFeeds_FTPSender -E DELETEJOB

sendevent -J 158459_PTRSDailyReportBatch -E DELETEJOB

jil 
jil>>1> delete_job: 158459_MStopScdApolloService  job_type: c
jil>>2> /
jil>>3> exit

JOB ON ICE

sendevent -J 158459_MStopScdApolloService -E JOB_ON_ICE
sendevent -J 158459_MStartScdApolloService -E JOB_ON_ICE
sendevent -J 158459_Snapshot_Purge -E JOB_ON_ICE

cd ../../log/autosyslog

cd ../../autosys/uat

autorep -q -J

===================================
Login UAT
scsu apollotrs
ksh
. ~autosys/.profile

/* Query autosysy job information */
autorep -J 158459_LCDX_Price_Load -q

/* Insert, update or delete autosys job */
jil < /home/yg14134/test/158459_LCDX_Price_Load.jil -V none

/* start a autosys job */
sendevent -E FORCE_STARTJOB -J 158459_LCDX_Price_Load

/* Query autosysy job runing status */
autorep  -J 33684GDMG_LQT_RefreshDB  -d

====================================

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)]
  
  
  
 ========================================
  sendevent -E event [-S autoserv_instance] [-A alarm][-J job_name] [-s status] [-C comment] [-P priority][-M max_send_trys] [-q job_queue_priority][-T "time_of_event"] [-G "global_name=value"][-k signal_number(s)] [-u]
CHANGE_STATUS - Forces a change in the status of the job specified in job_name. Ordinarily this should not be used, since AutoSys manages job state changes internally. If this option is selected, the -s status option must also be
              selected.
 -s status
              Specifies the status to which the job specified in job_name should be changed. This option is used only when the specified event is CHANGE_STATUS, which requires this option.

These are the valid statuses: RUNNING, STARTING, SUCCESS, FAILURE, INACTIVE, and TERMINATED.

Changing the status to RUNNING does not cause the job to run. It only changes the systemas current notion of the status of the job. Therefore, this option should be used with caution. Changing the state of a box to INACTIVE  will
              recursively cause all the jobs in the box to also be changed to INACTIVE.

ex:sendevent -E CHANGE_STATUS -J 158459_Test_FW -s FAILURE

EXAMPLES
       To start a job named test_install that has no starting conditions specified (and therefore must be started manually), enter this:

sendevent -J test_install -E STARTJOB

To force a job to start named wait_job, which is waiting on the completion of another job, and explain the reasons for your action, enter this:

sendevent -J wait_job -E FORCE_STARTJOB-C "tired of waiting, so forced it"

To change the status of a job called ready_to_run to ON_HOLD to prevent its execution, and to assign the sendevent command a high priority so it will be sent immediately, enter this:

sendevent -J ready_to_run -E JOB_ON_HOLD -P 1

When you want the above job to run, enter this:

sendevent -J ready_to_run -E JOB_OFF_HOLD

To  prevent  a job called lock_out from running between the hours of 11:00 a.m. and 2:00 p.m., a pair of sendevent commands could be used to place it on hold during that time. (These same sendevent commands could be placed in a job that
       is run daily to perpetuate this condition on a regular basis.)

To put the job on hold at 11:00 a.m., enter this:

sendevent -J lock_out -E JOB_ON_HOLD -T "11/08/1997 11:00"

To take the job off hold at 2:00 p.m., enter this:

sendevent -J lock_out -E JOB_OFF_HOLD -T "11/08/1997 14:00"

To write a comment into the Event Processor log file, enter this:

sendevent -E COMMENT -C "have not receivedEOD files - an hour late again"

To stop the Event Processor at 2:30 a.m. on November 9, 1997 (it is always a good idea to attach a comment to this event), enter this:

sendevent -E STOP_DEMON -T "11/09/1997 02:30" -C "stopped for upgrade"

To change a job called resource_hog to a lower priority (it is currently at 1 and is not yet running), and to only issue the sendevent command 5 times, rather than letting it try indefinitely, enter this:

sendevent -J resource_hog -E CHANGE_PRIORITY-q 10 -M 5

Notice that the above command will only change the job queue priority for the next run of the job.

To kill a job named wrong_job which is running on another AutoSys instance called PRD, enter this:

sendevent -J wrong_job -E KILLJOB -S PRD

To set a global variable named today having a value of 12/25/1997, enter this:

sendevent -E SET_GLOBAL -G "today=12/25/1997"

To delete the global variable named today, enter this:

sendevent -E SET_GLOBAL -G "today=DELETE"

To send the Unix signal number 1 to a job named RunData, enter this:

sendevent -E SEND_SIGNAL -j RunData -k 1

To cancel all unprocessed JOB_OFF_HOLD events for a job named RunData, enter this:

sendevent -E JOB_OFF_HOLD -j RunData -u

since the job 158459_FxRateUpload is on ice
ist always SUCCESS

put on ice mean the s(this job) alway return success, so it woundn't affect other job.
put on hold mean the s(this job) alway return fail, so other job would start if depend on it.
mark succes, it will trigger all job which depend on , will start imediat. but if other job have start time, it will start again.

Autosys command相关推荐

  1. autosys虚拟机定义

    delete_machine: V50136 insert_machine: V50136 type:v machine: servername so that autosys know which ...

  2. mongo报错:not authorized on bb to execute command { create: \“xxx\“...}

    mongo报错: {"ok" : 0,"errmsg" : "not authorized on bb to execute command { cr ...

  3. pip install nmslib 失败 (error: command ‘x86_64-linux-gnu-gcc‘ failed with exit status 1)

    1. 问题现象 使用 pip 安装 nmslib 命令时出现如下错误: sudo pip install nmslib ....ERROR: Complete output from command ...

  4. 解决 win10 pycurl安装出错 Command python setup.py egg_info failed with error code 10 编译安装包 安装万金油...

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明. 本文链接:https://blog.csdn.net/yexiaohhjk/article/d ...

  5. bash: vue: command not found

    安装vue的时候提示:bash: vue: command not found 我的原因node.js 环境变量配置有问题,最后添加了环境变量就好了..........

  6. -bash: fultter: command not found

    flutter build apk bash: flutter: command not found 在studio中的控制台出现上面错误(如图所示) 解决办法: 安装flutter时,安装时可以执行 ...

  7. jenkins 插件执行shell命令时,提示“Command not found”处理方法

    首先提示找不到"Command not found,可能我们第一反应是查看目标机器是否已支持该命令,不过如果相信能找到这里来的朋友估计遇到的跟我一样,其实目标机器是没有问题的通过一些远程工具 ...

  8. python mysql gcc_MySQL-python “error: command 'gcc' failed with exit status 1”错误

    安装MySQL-python-1.2.3c1出现"error: command 'gcc' failed with exit status 1"错误 具体报错信息如下: _mysq ...

  9. 在Ubuntu 16.04.6 LTS上安装python3.7和pip3后出现Command '('lsb_release', '-a')' 出错问题的解决方法

    在Ubuntu 16.04.6 LTS上安装python3.7和pip3后出现Command '('lsb_release', '-a')' returned non-zero exit status ...

最新文章

  1. zen3架构_AMD Zen3架构处理器的L3缓存或将翻倍到64MB
  2. Shell之sed用法 转滴
  3. PHP的pcntl多进程
  4. 远程计算机的分辨率调整,手把手教你解决win10系统远程连接设置电脑分辨率的设置方法...
  5. python有没有三元运算符_Python基础入门:从变量到异常处理(1)
  6. python自己的模块_Python--构建发布自己的模块
  7. python3中的property使用方法
  8. Retrofit 使用flatmap操作符时处理错误、异常
  9. ubuntu安装使用latex和texmaker--PC端
  10. Windows 2003上 SaltStack/Salt 和 psutil 可能存在的问题及解决
  11. 有人说过世界是丑陋的,但是我们的目的就是要找出那些好的东西,然后好好珍惜...
  12. Chrome浏览器安装Axure插件
  13. Excel打印针式打印机备货单
  14. java quartz定时_Java初级面试题之Quartz定时任务
  15. 4G模块(BC76)
  16. 《OnlineChat996》基于微信群聊的在线实时通信工具
  17. 【工具】Vscode翻译插件推荐(不用谷歌翻译api、支持短句英汉互译、支持查词、支持自动补全、不需要浏览器)
  18. C语言中strlen和sizeof的区别
  19. 自学python(2):利用opencv实现读图,显示,画框,裁剪的python代码
  20. 新能源充电桩:特来电、小鹏汽车加速跑

热门文章

  1. LeetCode Algorithm 704. 二分查找
  2. ubuntu16.04中成功安装ROS后,小海龟示例
  3. 【Linux系统编程】进程间通信--无名管道(pipe)
  4. mysql url格式,关于MySql链接url参数的设置
  5. 杭电oj java printf_杭电oj1042题大数,java,百思不得其解为何WA,求指教
  6. c++大作业迷宫游戏 规定时间内完成_小学生做作业磨蹭的7个原因及对策!太准了~...
  7. 每天一道LeetCode-----找到所有被某个字符包围的另一个字符
  8. Java堆排序递归_大顶堆第二弹----堆排序(递归实现)
  9. 用python实现TCP协议传输功能(客户端代码)
  10. 单词拆分—leetcode139