Structure and configuration of settings.ini

Last modified by jklein on 2025/04/09 14:53

General

The settings.ini is a configuration file in which the initialisation of the data is stored. It is used so that the agents that have connected to the server can retrieve and check the details of the ACMP Clients. The file contains all the relevant information about the server (the name, port and server ID) by default, as well as the information about the client port that can be used to push the jobs from the server to the clients.

The settings.ini is located in the shared folder of the ACMP Server (C:\Program Files (x86)\Aagon\ACMP Server\Clients). Open the settings.ini with a common text editor to view the file content.

66_Settings.ini_Beispiel eines Servers_421.png

Content of a settings.ini

Structure of a settings.ini

The configuration file can contain either a single server entry or several server entries (see Use Case: Installing ACMP Gateway via MSI). This makes it possible to address several ACMP Servers directly within a single file, to create network mappings, to prepare server migrations or to create „multi-server clients“.

The information contained is always listed line by line, with an equal sign separating the key from its value:

Key=Value
SERVERPORT=2106

For a better overview, the keys are divided into groups called sections. To do this, the name of a file that is to be clearly defined must be enclosed in square brackets. The spelling of the key is not case-sensitive.

Hinweis  Note:  

Selection counting always starts with the number 0 (zero) and is incremented for multiple entries.

Example:

[Section0]
Key=Value
Key2=Value

[Section1]
Key=Value
Key2=Value
Schlüssel3=Wert

Please note that each section and each key used may only occur once per section. If you wish to store comments in the file, these must be preceded by a semicolon and placed on a separate row. Example:

[SERVER|0]
SERVERNAME=server1.acmp.local
SERVERPORT=2106
; check the server name for information on whether the caption has changed

Example of a settings.ini

The example below shows a sample file containing the configuration of two server entries, the mapping and the installation path of the Client. The column Value indicates what can be entered in a settings.ini. The column Explanation explains and justifies the respective content.

 ValueExplanation
 1.[Servers]Specifies the section, i.e. the [Servers]
 2.max=1Indicates the value (max) and the indication of the available Servers. The content is 1, where counting starts at 0.
 3.   
 4.[SERVER|0]Specifies the SERVER section and the first server; the count starts at 0 (zero). The syntax is therefore SERVER|<N>
 5.SERVERNAME=server1.acmp.localThe content is the key (SERVERNAME) and the value (server1.acmp.local) separated by an equal sign; here the server name or the IP of the ACMP Server to be used.
 6.SERVERPORT=2106The key (SERVERPORT) corresponds to the value of the ACMP server port to be used, in this example port 2106
 7.ServerId={CA191843-xxxx-494C-9934-xxxxxxxxxxxx}The key (ServerId) has been assigned the value of the server ID ({CA191843-xxxx-494C-9934-xxxxxxxxxxxx})
 8.MaxBandWidth=100000MaxBandWidth stands for the maximum bandwidth to be used (bits per second). If the specification is unlimited, a zero can also be entered (0=unlimited).
 9.   
10.[SERVER|1]Recurrence of row 4, only for the second listed Server ([SERVER|1]))
11.SERVERNAME=server2.acmp.localRecurrence of row 5 (Server name or the IP of the ACMP Server)
12.SERVERPORT=2106Recurrence of row 6 (specification of server port)
13.ServerId={FDS1843-xxxx-494C-9934-xxxxxxxxxxxx}Recurrence of row 7 (specification of Server ID)
14.MaxBandWidth=0Recurrence of row 8 for maximum bandwidth in bits per second
15.   
16.[CLIENTPORT]Specifies the section, in this case the [CLIENTPORT]. The port is used to push Jobs from the Server to the Clients.
17.VALUE=2108Indicates the value (VALUE) and the content of the ACMP client port used
18.   
19.[Mappings]Introduces the [Mappings] section
20.max=1The value (max) indicates the number of available mappings, starting from 0 (zero).
21.   
22.[Mapping|0]Introduces the mappings section. The first mapping must start with the number 0 (zero) (Mapping|<N>)
23.NetworkAddress=192.168.0.0The NetworkAddress key specifies the net address to which the mapping should apply. The value for this is written after the equals sign.
24.NetworkMask=255.255.255.0The NetworkMask key specifies the net mask to which the mapping should apply (here: 255.255.255.0)
25.PreferredServer=Server|0Specifies the server to be used (Server|0), which was previously named in row 4.
26.  
27.[Mapping|1]Recurrence of row 22, where the second mapping is defined ([Mapping|1])
28.NetworkAddress=192.168.1.0Recurrence of row 23 with the adapted net address for the mapping
29.NetworkMask=255.255.255.0Recurrence of row 24 with the net mask
30.PreferredServer=Server|1Recurrence of row 25 with the specification of the server to be used (Server|1), which was named in row 10
31.  
32.[CLTDEFLOC]The [CLTDEFLOC] section specifies the default storage location for the client.
33.Value=0The value determines where the installation path of the Clients should be:
0=C:\ACMPClient
1=1:\Program Files (x86)\ACMPClient

Hinweis  Note:  

The bandwidth restriction (rows 8 and 14) is used if no client-specific restriction has been stored in the Client's registry. Any changes made on the ACMP Server will be applied without having to restart the Agent service.

66_Settings.ini_Beispiel einer größeren Datei_421.png

Configured settings.ini

Hinweis  Note:  

You can make manual changes to the settings.ini directly in the text editor of your choice by correcting the appropriate place and then saving the file.

Procedure of the Clients

As soon as one or more mappings have been stored in a settings.ini, the specified servers are initially ignored. The client checks all the entered mappings and, for each individual mapping, checks whether the current IP address matches the information in the section. If the IP matches, the client enters the server that was stored under ‘PreferredServer’ in its server list. If no mapping matches, all servers are entered into the server list in sequence. If the client cannot reach the current server, it falls back to the next one on its list. For continuing server requests, the last accessible server is contacted first. When an agent is restarted, another attempt is made to reach the primary server.

Hinweis  Note:  

 If the entries under NetworkAddress or NetworkMask are missing or invalid, the values are treated as 0.0.0.0. This means that the Client is not located in an area that is covered. As a result, the Server is not entered in the Server list.

Hinweis  Hinweis: 

If there are no servers in the server list after evaluating all mappings (e.g. because no suitable entries were found or no mappings are available), the previous behaviour of the client is applied, so that the client takes over all servers from the Client.ini into the server list.

 

© Aagon GmbH 2025
Besuchen Sie unsere neue Aagon-Community