Dear Sunish,
Please kindly refrain from taking community threads to private messages, as this is a discussion that others may want to parttake in as well.
To answer your question, you can duplicate the agent directory whole, once for prod and once for dev/test, but the most minimal setup is to use one agent directory and only have two separate ini files.
The command you sent to me is how you start the service manager. I do not recommend two separate service managers, I recommmend one service manager per machine. So starting separate service managers for prod and test/dev is not my advise.
In that one service manager, you'll have a .smd file (smd = service manager definitions, presumably). In that .smd file, there's the command that starts the agent. Something like this:
DEFINE UNIX-Agent;/opt/agents/unix/bin/ucxjlx6 /opt/agents/unix/bin/ucxjlx6.ini;/opt/agents/unix/bin/
The first is the binary being started, the second (argument number 1 to that binary) is the .ini file being used, and the third is the working directory.
You can start the same agent instance with different .ini files like so:
DEFINE UNIX-Agent;/opt/agents/unix/bin/ucxjlx6 /opt/agents/unix/bin/ucxjlx6_number_one.ini;/opt/agents/unix/bin/
DEFINE UNIX-Agent2;/opt/agents/unix/bin/ucxjlx6 /opt/agents/unix/bin/ucxjlx6_number_two.ini;/opt/agents/unix/bin/
Then have one ini file connect to the one engine, the second to the other (via cp=).
Hth
Original Message:
Sent: 11-06-2019 07:22 AM
From: Carsten Schmitz
Subject: Can 1 Automic Agent communicates with Prd & Non Prd Automic Engine?
Hi.
The answer is: Not at all.
The best you can do is start one set of agent binaries twice, once with an .ini file that connects to "prod" and once with a different .ini file that connects to "test". You will have two agent instances on the same machine that way, off of one agent binary on disk.
But you can not connect the same instance of one agent with the same .ini file to two environments. They need to talk to one control panel, and that is a monolithic/singular entry in the .ini file. Furthermore, there might also be licensing implications to consider.
Hth,
Original Message:
Sent: 11-06-2019 06:56 AM
From: Sunish Mittal
Subject: Can 1 Automic Agent communicates with Prd & Non Prd Automic Engine?
Hi,
we have the requirement or a scenario where in we need to have 1 automic agent communicate & trigger jobs on both Automic (Prd & Non Prd). Can you please suggest how to handle this requirement?