DarrylA

Cross instance dependancy - a simple scenario

Blog Post created by DarrylA Employee on Nov 13, 2014

We have two autosys 11.3.5 instances  ROS and CAR

 

$ autoflags -a

408 LINUX ORA 11.3.5 0 830a7e6f  ****** ******.XX.com

 

$ echo $AUTOSERV

ROS

 

Inserting external instance

$ jil

jil>>1> insert_xinst: CAR

jil>>2> xtype: a

jil>>3> xmachine: ******

jil>>4> xport: 9000

jil>>5> xcrypt_type: DEFAULT

jil>>6> exit

 

____________________________________________________________________________

 

 

CAUAJM_I_50323 Inserting/Updating External Instance: CAR

CAUAJM_I_50205 Database Change WAS Successful!

 

____________________________________________________________________________

 

CAUAJM_I_52301 Exit Code = 0

 

____________________________________________________________________________

 

 

 

$ autoflags -a

408 LINUX ORA 11.3.5 0 7f0101 YYYYYY  YYYYYY.YY.com

 

$ echo $AUTOSERV

CAR

 

Inserting external instance

$ jil

jil>>1> insert_xinst: ROS

jil>>2> xtype: a

jil>>3> xmachine: YYYYYY

jil>>4> xport: 9000

jil>>5> xcrypt_type: DEFAULT

jil>>6> exit

 

____________________________________________________________________________

 

 

CAUAJM_I_50323 Inserting/Updating External Instance: ROS

CAUAJM_I_50205 Database Change WAS Successful!

 

____________________________________________________________________________

 

 

CAUAJM_I_52301 Exit Code = 0

 

____________________________________________________________________________

 

Creating a job with external dependancy

 

Job defintion for a job in CAR with a dependancy condition on ROS

/* ----------------- CAR_J1 ----------------- */

 

insert_job: CAR_J1   job_type: CMD

command: ls

machine: localhost

owner: root@******

permission:

date_conditions: 0

condition: s(job1^ROS)

alarm_if_fail: 1

 

$ autorep -J CAR_J1 -d

 

Job Name                                                         Last Start           Last End             ST Run/Ntry Pri/Xit

________________________________________________________________ ____________________ ____________________ __ ________ _______

CAR_J1                                                           10/08/2013 20:51:13  10/08/2013 20:51:13  SU 1/1      0

 

  Status/[Event]  Time                 Ntry ES  ProcessTime Machine

  --------------  --------------------- --  --  --------------------- ----------------------------------------

  STARTING        10/08/2013 20:51:12    1  PD  10/08/2013 20:51:12 dalre02-I93949

  RUNNING         10/08/2013 20:51:13    1  PD  10/08/2013 20:51:13 dalre02-I93949

    <Executing at WA_AGENT>

  SUCCESS         10/08/2013 20:51:13    1  PD  10/08/2013 20:51:13 dalre02-I93949

 

It executed as soon as the job1 was executed on the instance ROS

Outcomes