How to Configure File Distribution Using host-config.map in Open iT Core Server
Introduction
The host-config.map file is used to distribute files to selected hosts in the network.
Apply the configurations shown in the Open iT Core Server.
Configuring host-config.map
- Windows
- Unix
Before modifying this file, make sure to put the file(s) to distribute in C:\Program Files\OpeniT\Core\Configuration\dist-config.
-
Open
host-config.mapin the dist-config directory, which is by default inC:\Program Files\OpeniT\Core\Configuration\dist-config.Notice that it contains instructions on how to edit the file.
-
Specify the source, destination, and the hosts with the following syntax:
Mapping SyntaxMAP: <source> (<destination>)
<hostname.domain>The
host-config.mapusesC:\Program Files\OpeniT\Core\Configuration\as the working directory. It is also allowed to use relative paths for the source and destination. Variables like$CONF_DIR/$CONFIG_DIR,$BIN_DIR, and$ROOT_DIRcan be used to set the full path.NOTEFor Open iT version 9.6, use the
$CONF_DIRvariable. Both$CONF_DIRand$CONFIG_DIRwork on later versions.Empty lines are allowed — any line beginning with
#as the first non-white character is considered a comment. Globbing is also supported.ExampleMAP: lmutils/lmutil-v1.exe ($BIN_DIR/lmutil.exe)
host*windows.domainThis will create a copy of the file and replace the target file in all Windows hosts in the domain.
To change this behavior, open
apicontroller.xmlinC:\Program Files\OpeniT\Core\Configuration\Componentsand underdownload_dist, change the value ofactiontomove. This will not replace the target file. -
Save the changes.
Before modifying this file, make sure to put the file(s) to distribute in /var/opt/openit/etc/dist-config.
-
Open
host-config.mapin the dist-config directory, which is by default in/var/opt/openit/etc/dist-config.Notice that it contains instructions on how to edit the file.
-
Specify the source, destination, and the hosts with the following syntax:
Mapping SyntaxMAP: <source> (<destination>)
<hostname.domain>The
host-config.mapuses/var/opt/openit/etc/as the working directory. It is also allowed to use relative paths for the source and destination. Variables like$CONF_DIR/$CONFIG_DIR,$BIN_DIR, and$ROOT_DIRcan be used to set the full path.NOTEFor Open iT version 9.6, use the
$CONF_DIRvariable. Both$CONF_DIRand$CONFIG_DIRwork on later versions.Empty lines are allowed — any line beginning with
#as the first non-white character is considered a comment. Globbing is also supported.ExampleMAP: lmutils/lmutil-v1.exe ($BIN_DIR/lmutil.exe)
host*windows.domainThis will create a copy of the file and replace the target file in all Windows hosts in the domain.
To change this behavior, open
apicontroller.xmlin/var/opt/openit/etc/Componentsand underdownload_dist, change the value ofactiontomove. This will not replace the target file. -
Save the changes.
Example
Distributing Client-Specific AppUsage Configurations using host-config.map
-
Prepare and validate an
appusage.xmlfile that references the selected filtering configuration. -
Create and validate two compatible versions of
appusage.xml, referencinginclude-exclude-minimal.confandinclude-exclude-expanded.conf. -
On the Core Server, navigate to the dist-config directory, which is by default in
C:\Program Files\OpeniT\Core\Configuration\dist-config. Create anappusage-profilesdirectory. -
In the appusage-profiles directory, create the following subdirectories:
-
minimal — Place the
appusage.xmlfile referencinginclude-exclude-minimal.conf. -
expanded — Place the
appusage.xmlfile referencinginclude-exclude-expanded.conf.
The resulting directory structure should be similar to the following:
Directory StructureConfiguration/
└── dist-config/
├── appusage-profiles/
│ ├── minimal/
│ │ └── appusage.xml
│ └── expanded/
│ └── appusage.xml
└── host-config.map -
-
Open the
host-config.mapfile in the dist-config directory, which is by default inC:\Program Files\OpeniT\Core\Configuration\dist-config. -
Add the mapping entries to associate each AppUsage configuration with the intended Windows clients.
Example: host-config.map# Minimal filtering for selected Windows clients
MAP: appusage-profiles/minimal/appusage.xml ($CONF_DIR/Components/appusage.xml)
WIN-HOST01
# Expanded filtering for selected Windows clients
MAP: appusage-profiles/expanded/appusage.xml ($CONF_DIR/Components/appusage.xml)
WIN-HOST02NoteReplace the example hostname patterns with the actual client hostnames or appropriate matching patterns. Make sure the patterns do not overlap unintentionally.
-
Save the changes.
-
Manually trigger the creation and download of a new distributable configuration files package. For instructions, see Manually Creating a Distributable Configuration Files Package.
-
On the target client, verify the received
appusage.xmlfile and confirm its intended configuration.