Rules between remote hosts

Tools and several solutions to manage Control-M products
Post Reply
User avatar
Diablau
Nouveau
Nouveau
Posts: 44
Joined: 08 Jul 2009 12:00
Location: Québec, Canada

Rules between remote hosts

Post by Diablau » 14 Dec 2009 4:39

Hi!
We would like to implement in Ctrl-M the following: On three remote hosts is the same .bat. We want the first remote host to start the .bat at a specific time.

1. If the job is completed ->job status ended-ok
2. If and only if the job is not completed ->start the .bat on the next remote host
3. And so on, untill the last remote host.

Do you know if I can do such a thing? I think they want to do that because of NLB.
Thanks

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 14 Dec 2009 7:47

Simplest is to create 3 separate jobs, each job to one agent (remote host or not is irrelevant). If Job1 is NOTOK, kick off Job2. If Job2 is NOTOK, kicks off Job3. The chain will not continue if Job1 or Job2 is OK.

You can alternatively define a node group with the three agents, and schedule a job against the node group. Rerun the job every time it fails. Control-M will use a round robin among the agents within a group. However there is no guarantee that different agent will be picked one after the other.

A guarantee of different agent is to use command in a job to define one agent into the group. Another job is to execute command targeting the node group. Upon execution failure, rerun both jobs. You need to implement a script to replace a different agent into the group every time the job runs.

Post Reply