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
Rules between remote hosts
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.
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.