Installing agent relays in silent mode#
In silent mode, you specify the installation properties in a text file and then run the agent relay installation without command-line prompts.
Ensure that the computer on which you are installing the agent relay has a supported version of the Java™ Runtime Environment (JRE) or Java Development Kit (JDK). For more information, see .
Important: Beginning in version 6.2.2, the HCL™ Launch server and agent relays require a Java Runtime Environment (JRE) or Java Development Kit (JDK) version 8.
If the target computer has an IBM JRE or Java developer kit, update to a supported version of the IBM JRE or Java developer kit.
Set the JAVA_HOME system variable to the location of the JRE or JDK that you are using.
- Set the PATH variable to contain the location of the JRE or JDK that you are using.
- Ensure that the firewall on the computer allows connection to the HCL Launch server through HTTP/HTTPS.
- Install the HCL Launch server.
- Ensure that you have an authentication token for the relay. If you intend to use the component version replication option, the token must be assigned to a user with the server configuration permission
Read Artifact Set List. For information about tokens, see Setting server configuration security.
- Set up an account on the computer for the agent relay to use.
- Make sure that your networks and firewalls allow communication on the required ports. See Firewall and communication configuration.
- Ensure that there is no limit on the maximum memory size and virtual memory size. For example, on most Linux™ systems, you can run the
ulimit -vcommands and ensure that both return the value
unlimited. To find out how to remove the limit on the maximum memory size and virtual memory size, see the documentation for the operating system.
To install the agent relay in silent mode, you specify the installation properties in a properties file. The example.agentrelay.install.properties file is provided as an example of a properties file. The example.agentrelay.install.properties file is in the agent relay installation file.
Download and extract the agent relay installer to the computer on which you want to install the agent relay:
- To download the installer from the server, click Help , located in the upper-right corner of the page, and then click Tools. Then, click HCL Launch Agent Relay and download and extract the file.
- To find the installer on the server with the command line, go to the following location and copy the file to the target system: installation_folder/opt/tomcat/webapps/ROOT/tools/agent-relay.zip
- Expand the compressed installation file.
Open the example.agentrelay.install.properties file for editing, or copy the example.agentrelay.install.properties file to a new properties file.
Customize the installation by specifying the properties in the following table.
If you do not specify a property, the default value is used. These properties are copied to the agentrelay.properties file of the completed installation.
Property Default value Description agentrelay.home
/opt/ibm/agentrelayon Linux or
C:\\Program Files\\IBM\\agentrelayon Windows™
The installation folder for the relay. On Windows, escape each backslash with an additional backslash, as in the following example:
The IP address or host name on which the relay listens for HTTP requests from agents. In most cases, the agent relay listens on all IP addresses that are available to the computer; in this case, specify
The port on which the agent relay listens for HTTP requests coming from agents. In addition, the relay automatically listens for CodeStation requests on port
HTTP_proxy + 1on the system where the agent relay is located. If you use the default port for HTTP requests, the relay uses 20081 for CodeStation requests and artifact transfers. If the CodeStation request port is blocked, agents cannot download artifacts.
The user with which to run the agent relay. This property is not used on Windows systems. agentrelay.group
The group with which to run the agent relay. This property is not used on Windows systems. verify.server.identity
Whether the agent relay attempts to verify the server certificate. If set to
true, you must import the server certificate to the JRE keystore on the agent relay.
agentrelay.codestation.server_url None. The full URL of the central server to connect to, such as
agentrelay.codestation.server_password None. An authentication token from the server. agentrelay.codestation.enable_replication
trueto enable artifact caching on the relay.
agentrelay.codestation.max_cache_size None. The size to which to limit the artifact cache, such as
500Mfor 500 MB or
5Gfor 5 GB. To not put a limit on the cache, specify
none. By default, each hour, the agent relay checks the size of the artifact cache. If the cache is over the limit, the agent relay removes files based on which files have not been used in the longest time. Therefore, the total disk space used by the cache can exceed the cache limit. You must ensure that the agent relay has enough space to store all of the cached artifacts.
agentrelay.codestation.geotags None. If you choose to cache files on the relay, you can specify one or more component version statuses here, separated by semicolons. The agent relay automatically caches component versions with any of these statuses so that those versions are ready when they are needed for a deployment. A status can contain a space except in the first or last position. A status can contain commas. The special
*status replicates all artifacts, but use this status with caution, because it can make the agent relay store a large amount of data. If no value is specified, no component versions are cached automatically. If you cache files on the relay, do not put the CodeStation cache on an NFS file system.
trueto install as a Windows service.This property is used only on Windows.
The name of the service. This property is used only on Windows. agentrelay.install.service.login
The user to run the service. This property is used only on Windows. agentrelay.install.service.password
The password for the user that runs the service. This property is used only on Windows. agentrelay.install.service.autostart
trueto start the service automatically. This property is used only on Windows.
java.home None. To use a JRE other than the JRE in the JAVA_HOME environment variable, specify the location of that JRE here. agentrelay.keystore.password
The keystore password for the agentrelay.keystore file. agentrelay.cert.alias
The certificate alias for the agentrelay.keystore file. agentrelay.cert.password
The password for the agentrelay.keystore certificate. codestation.keystore
The location of the keystore for HTTPS communication. codestation.keystore.password
The keystore password for the codestation.keystore file. codestation.cert.alias
The certificate alias for the codestation.keystore file. codestation.cert.password
The password for the codestation.keystore certificate.
Save the file.
Run the installation file with the install-silent.cmd command on Windows or the ./install-silent.sh command on Linux. Provide the properties file as a command-line argument.
For example, on Windows, if the properties file is named installrelay.properties, type the following command:
On Linux, if the properties file is named installrelay.properties, type the following command:
To install a FIPS-compliant agent relay, add the
-fipsparameter, as in the following example:
./install-silent.sh installrelay.properties -fips
If the relay is on Linux or UNIX and will connect to 400 or more agents, increase the process and file limit for the server:
Add the following lines to the file that sets process and file limits.
For example, for Red Hat Enterprise Linux, version 7, use the /etc/security/limits.conf file. For AIX, use the /etc/security/limits.d/90-nproc.conf file.
relayUser soft nofile 60000 relayUser hard nofile 60000 relayUser soft nproc 65535 relayUser hard nproc 65535
Use the name of the operating system user that is running the agent relay for
relayUser. By default, the agent relay installation program creates a user that is named
Restart the computer that hosts the agent relay.
To start the agent relay, go to the installation folder for the relay and run the following command:
Any messages that are created during the installation are stored in the file agentrelay-install.log.
If you must modify the relay, you can edit these properties in the
agentrelay.properties file in the relay_installation\conf directory.
Now you can install agents and connect them to the relay. See Installing agents.
To monitor the status of the relay and the agents that are connected to it, click Resources > Agent Relays. This tab shows the number of active and offline agents that are connected to each relay, as shown in the following figure:
For more information about an agent relay, in the Name column, click the relay.
Parent topic: Installing agent relays