Hi,
The below may not work for you but it may get you closer. When the MAX() count is set to 30 I think it will round robin between the two servers so each ends up with 15 jobs. There may be a way to set a server preference. In the example there are 5 servers but your example only needs two, Also change the MAX(1) TO MAX(30) .
The jobs will move to an available server.
My example is for Austria. NOTE: DPU01, 2, 3, 4, 5 are my server names.
STEPS
Defined 5 AGENTS in AGENTDEF
DPU01,DPU02,DPU03,DPU04,DPU05
Define Node
NODE AUSTRIA ADD
Define CPUs
CPU DPU01 ADD NODE(AUSTRIA) AGENT(DPU01)
CPU DPU02 ADD NODE(AUSTRIA) AGENT(DPU02)
CPU DPU03 ADD NODE(AUSTRIA) AGENT(DPU03)
CPU DPU04 ADD NODE(AUSTRIA) AGENT(DPU04)
CPU DPU05 ADD NODE(AUSTRIA) AGENT(DPU05)
Define RESDEF
RESDEF RESAUSTRIA ADD NODE(AUSTRIA) CPU(DPU01) LOCAL RENEWABLE GRAVITY MAX(1)
RESDEF RESAUSTRIA SET NODE(AUSTRIA) CPU(DPU02) MAX(1)
RESDEF RESAUSTRIA SET NODE(AUSTRIA) CPU(DPU03) MAX(1)
RESDEF RESAUSTRIA SET NODE(AUSTRIA) CPU(DPU04) MAX(1)
RESDEF RESAUSTRIA SET NODE(AUSTRIA) CPU(DPU05) MAX(1)
Define JOBs similar to the one below. Each job has ROUTING and the resource RESAUSTRIA in it.
NT_JOB DPCMD001
RUN ANY
RESOURCE (1,RESAUSTRIA)
CMDNAME "C:\PROGRAM FILES\CA\SCRIPTS\TEST.BAT"
AGENT DPU01 ROUTING
ENDJOB
Let me know if there are any questions.
2¢