Skip to content

GenericFileStitcher

Overview

The Unified Assurance Topology File Stitcher can be used to create device relationships in the graph database. It takes a flat file of device information and makes it available to rules for special processing and entry into the graph database.

The Topology NMAP Stitcher is a default job that utilizes the File Stitcher to create graph database relationships after doing an NMAP scan of the network.

Default Scheduled Job

Field Value
Package Name coreCollection-app
Job Name Topology NMAP Stitcher
Job Program bin/core/collection/GenericFileStitcher
Job Arguments
Job Description Create and update Hierarchy from network inventory for Layer4 via NMAP
Failover Type Standalone (Supported: Standalone, Primary/Backup)
Status Disabled
Privileged (Checked)
Minutes 0
Hours 20
Days *
Months *
WeekDays *

Default Configuration

Name Value Possible Values Notes
BaseRules collection/topology/file/base.rules Text, 255 characters Relative path to Base Rules
BranchDir core/default Text, 255 characters relative path to Rules dir
File /var/log/nmap Text, 255 characters Full path to the file that will be read and processed.
IncludeRules collection/topology/file/base.includes Text, 255 characters Relative path to Include Rules
LoadRules collection/topology/file/base.load Text, 255 characters Relative path to Load Rules
LogFile logs/TopologyNMAPStitcher.log Text, 255 characters Relative path to Log File.
LogLevel ERROR OFF, FATAL, ERROR, WARN, INFO, DEBUG Logging level used by application.

Best Practices

  • The default job is configured to run at 8:00 pm every day, but the default perspective stitcher is configured to run at 9:00 pm every day.

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 use in rules processing.

Token Description
$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'.)
$line Current line of the input file.
$Count Line number for current line of the input file.

Administration Details

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

  • Package - coreCollection-app

  • Synopsis - ./GenericFileStitcher [OPTIONS]

  • Options:

     -c, --AppConfigID N   Application Config ID (Service, Job, or Request ID)
     -?, -h, --Help        Print usage and exit
    
  • Threaded - Single Threaded