Claus_Jambrich_5663

More then one agent on one machine

Discussion created by Claus_Jambrich_5663 on Oct 10, 2016
Latest reply on Oct 11, 2016 by Daniel_Trimmel_2011
You can run more then one agent on one machine. E.g. you run two windows agents on one windows machine because you want to use different interpreters (ECPEXE and ECPEXT in the ini).
Also for test systems it may be useful.

Generally, there a two ways:
You have one set of binaries and use different ini-files for different agents or
you use a set of binaries and ini-files for each agent.

Both methods have advantages and disadvantages, the base for both is the installation of a Windows agent.

One set of binaries for all agents:

You need only one directory with the binaries for the agent, but for each agent an ini-file (key store, ...), like in the screenshot below

tfwirypsw0ed.png

Each ini-file must be configured correctly. Especially important are the ini-parameters

In section [GLOBAL]
  • name: each agent should have a meaningful name. It is also advisable to use it as the ini-file name
  • logging: give the logging-files of each agent a meaningful name, or you will have troubles finding the correct file. you can also specify different log-directories for the different agents.
In section [TCP/IP]
  • port: if several agents run on one machine, the ports must be different, or they will block each other
In section [TRACE]
  • file: for the trace file the same is valid as for the log files.
Each agent is started, either via command line or Service Manager Dialog, by calling the exe with the ini-file as parameter:

path_to_agent\bin\ucxjwx6.exe path_to_inifile\inifile.ini

kwqyvjh6v5hx.png

Remarks: In this way you can start several Agents for one or several systems, but they will all have the same version.

A set of binaries for each agent:

Each agent has its own directory.

lmts13712zr4.png

Each ini-file must be configured correctly. Especially important are the ini-parameters

In section [GLOBAL]
  • name: each agent should have a meaningful name. It is also advisable to use it as the ini-file name
In section [TCP/IP]
  • port: if several agents run on one machine, the ports must be different or they will block each other
As each agent has its own directory and will create the subdirectory temp for logs and traces, the naming of these files is not so crucial. As there is only one ini-file per directory, it is enough to call the exe to start, as it automatically takes the ini-file in the directory.

8bvagd3mql3a.png

Remarks: In this way you can start several Agents for one or several systems and they can even have different versions.



Outcomes