Try TT Now

TTM Network Administration

Manually Configuring the TTM Daemon using Include Files

Overview

Include files are used to add or overwrite TTM configuration parameters in the ttmd.cfg files. This is useful when configuring multiple servers. For example, to override a setting for multiple servers that have non-identical ttmd.cfg files, you can just change the include file once and then copy it to the multiple servers.

The include files are formatted as ttmd.cfg style files and saved to the TTM_INCLUDE_CONFIG_FILE_PATH location (typically <root drive>:ttconfig). After the include files are created, they can be copied to any TTM Daemon and used by including the IncludeFile parameter to the ttmd.cfg file. Parameters specified in the include files overwrite parameters configured in the ttmd.cfg file.

Creating a TTM Include File

To manually configure the TTM Daemon using include files:

  1. Create a TTM include file. This file must be a ttmd.cfg style file.
    • The non-commented portion of the file must start with the <TTMConfiguration> tag and end with the </TTMConfiguration> tag.
    • General parameters must appear within the <General> and </General> tags.
    • Multicast Group parameters must appear within the <MulticastGroups> and <MulticastGroups> tags.
    • The TTM Daemon logs an error and skips any include files that are formatted incorrectly.

    For example, the following include file configures logging parameters (Refer to Configuring Logging Behavior in ttmd.cfg for details about the logging parameters).

    Example include file - Logging.cfg

    ## TTM Communication Daemon Configuration file

    # Copyright(C) 2009 Trading Technologies International Inc., all

    # rights reserved

    #####################################################################

    <TTMConfiguration>

    <General>

    LoggingType = both

    TracingLevel = normal

    LogFileHistory = 15

    </General>

    </TTMConfiguration>

  2. Save the include file as a .cfg file and copy it to the TTM_INCLUDE_CONFIG_FILE_PATH location on the TTM Daemon. If the TTM_INCLUDE_CONFIG_FILE_PATH environment variable is not defined, the system uses the TTM_CONFIG_FILE_PATH location (typically <root drive>:ttconfig). For information about environment variables, refer to Environmental Variables.
  3. Open the ttmd.cfg file, typically located in the <root drive>:ttconfig folder.
  4. Add the IncludeFile parameter above the <TTMConfiguration> section.
  5. IncludeFile=<filename>

    Example ttmd.cfg with include file

    #

    # TTM Communication Daemon Configuration file

    # Copyright(C) 2009 Trading Technologies International Inc., all

    # rights reserved

    #####################################################################

    IncludeFile=Logging.cfg

    <TTMConfiguration>

    <General>

    # Logging type StdErr, File, both, none

    LoggingType = File

    # tracing level normal, trace1, trace2, trace3, trace4

    TracingLevel = normal

    # Number of days log files will be kept for

    LogFileHistory = 10

    # Request Port

    RequestPort = 10200

    # If true, only local communications (on the same box) allowed

    local = false

    </General>

    <MulticastGroups>

    > = [mapped-gw-multicast]

    </MulticastGroups>

    </TTMConfiguration>

    The settings in the include file overwrite the settings in the ttmd.cfg file. Additionally, if more than one file was included, and the same parameter is included in multiple include files, the system uses the value from the last include file listed.

  6. Save and close the ttmd.cfg file.