# File Distribution via host-config.map

The host-config.map file is used to distribute files to selected hosts.

  1. Open host-config.map in the dist-config directory, which is by default in C:\Program Files\OpeniT\Core\Configuration\dist-config.

    Notice that it contains instructions on how to edit the file.

  2. Specify the source, destination, and the hosts with the following syntax:

    MAP: $source ($destination)
    Hostname.domain

    The host-config.map uses C:\Program Files\OpeniT\Core\Configuration\ as the working directory. It is also allowed to use relative path for the source and destination. Variables like $CONF_DIR/$CONFIG_DIR, $BIN_DIR, and $ROOT_DIR can be used to set the full path.

    Empty lines are allowed — any line beginning with # as the first non-white character is considered a comment. Globbing is also supported.

    Example
    MAP: lmutils/lmutil-v1.exe ($BIN_DIR/lmutil.exe)
    host*windows.domain

    This will create a copy of the file and replace the target file in all Windows host in the domain.

    To change this behavior, open apicontroller.xml in C:\Program Files\OpeniT\Core\Configuration\Components and under download_dist, change the value of action to move. This will not replace the target file.

  3. Save the changes.

  1. Open host-config.map in 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.

  2. Specify the source, destination, and the hosts with the following syntax:

    MAP: $source ($destination)
    Hostname.domain

    The host-config.map uses /var/opt/openit/etc/ as the working directory. It is also allowed to use relative path for the source and destination. Variables like $CONF_DIR/$CONFIG_DIR, $BIN_DIR, and $ROOT_DIR can be used to set the full path.

    Empty lines are allowed — any line beginning with # as the first non-white character is considered a comment. Globbing is also supported.

    Example
    MAP: lmutils/lmutil-v1.exe ($BIN_DIR/lmutil.exe)
    host*windows.domain

    This will create a copy of the file and replace the target file in all Windows host in the domain.

    To change this behavior, open apicontroller.xml in /var/opt/openit/etc/Components and under download_dist, change the value of action to move. This will not replace the target file.

  3. Save the changes.

We value your feedback!

Please take a few minutes to complete our survey and share your thoughts on your recent experience with our documentation.

Take survey

Close