TCPServerStitcherd

The Oracle Communications Unified Assurance Topology TCP Server Stitcher is a generic TCP socket stitcher agent that listens for messages from devices using a configurable port. For each message received from a client, it processes the message using customizable rules which will create graph vertices and edges.

The Topology TCP Server Stitcher service has been set up to process received messages to build a dynamic logical layout.

You can run this application as a service using the Services UI.

TCP Server Stitcher Setup

  1. Review the logic in the rules files referenced in the configuration to see the processing that will be done when messages are received:

    • LoadRules will be run during application startup to load data that might be needed during processing.

    • IncludeRules will be read during application startup to load additional files that might be called during processing.

    • BaseRules will be run for each device that is selected based on the configuration.

    Update the logic as needed.

  2. Create a clone of the default service, making changes to the configuration as needed.

  3. Enable the Service.

    Configuration -> Broker Control -> Services

Default Service

The following table shows the settings for the default service. Actual values are in bold, descriptions of values are in plaintext.

Field Value
Package coreCollection-app
Name Topology TCP Server Stitcher
Program bin/core/collection/TCPServerStitcherd
Arguments This field is blank. There is no default value.
Description Topology rules-based TCP Server Stitcher
Failover Type Standalone (Supported: Standalone, Primary, Redundant/Backup)
Status Disabled
Privileged This option is selected.

See Services in Unified Assurance User's Guide for general information about the settings for services.

See Using Application Primary/Backup Failover for more information about the different failover types.

Default Configuration

The following table shows the default configurations for the application. Actual values are in bold, descriptions of values are in plaintext.

Name Default Value Possible Values Notes
BaseRules collection/topology/tcpserver/base.rules Text, 255 characters The relative path to the application Base Rules file.
BranchDir core/default Text, 255 characters The relative path to the rules directory.
Host * Text, 255 characters DNS name or IP Address for the TCP server. Can associate to a particular interface. - NO RELOAD CONFIG SUPPORT
IncludeRules collection/topology/tcpserver/base.includes Text, 255 characters The relative path to the application Include Rules file.
LoadRules collection/topology/tcpserver/base.load Text, 255 characters The relative path to the application Load Rules file.
LogFile logs/TopologyTCPServerStitcher.log Text, 255 characters The relative path to the log file.
LogLevel ERROR OFF, FATAL, ERROR, WARN, INFO, DEBUG The logging level for the application.
Port This field is blank. There is no default value. An integer Port for message collection. - NO RELOAD CONFIG SUPPORT
Threads 3 An integer Number of process threads created. The aggregator takes a third of this value (rounded up) for database threads unless overridden by the DBThreads application configuration.
DelimiterFile This field is blank. There is no default value. Text, 255 characters (Optional) Path to file that contains the regex string delimiter used to separate messages into distinct records e.g. '\\

Rules

This stitcher uses the Unified Assurance standard rules architecture in Perl syntax. For information about creating rules, see the following in Unified Assurance Developer's Guide:

Tokens

The stitcher exposes the following tokens for rules processing.

Token Description
$Message->{'RxTime'} Received Time
$Message->{'Message'} Message received
$Message->{'Host'} Remote Sender DNS Name
$Message->{'IP'} Remote Sender IP Address
$AppConfig Hash reference to the application configuration name-value pairs that were configured. (i.e. use $AppConfig->{'Host'} to retrieve the set value for 'Host'.)
$CustomHash Custom key, value cache available across all rules. Contents commonly defined in Load Rules then used in Base or other rules. NOTE: This variable is a shared object and any additional sub hashes or arrays must be shared before use or it will cause the error: Invalid value for shared scalar. Instantiate the sub hash/array using '&share({})' e.g. $CustomHash->{SubObject} = &share({});
$StorageHash Internal cache used as the StorageHash option when calling rules functions such as FindDeviceID(). NOTE: The structure of this cache is subject to change! Not recommended for custom global storage or manual manipulation; use $CustomHash instead.

Administration Details

The following list shows the technical details you will need for advanced administration of the application: