Merge Configuration Files Using Installation-Dependent Values

Merge Configuration Files Using Installation-Dependent Values

The following figure illustrates the command line used to merge configuration options from infile.txt into outfile.txt. In this example, UPIMERGE applies logic specific to a particular configuration file, and updates any references to locations that depend on the installed location of that Universal Agent application.

Command Line Options

The command line options used in this example are:

Option

Description

-dest

Name of a file used to store the result of the merge.

-source

Name of a file used as input to the merge. If this option is omitted, UPIMERGE assumes input is redirected via stdin.

-cfgtype

Notifies UPIMERGE that -source is a configuration file that contains settings for the specified Universal Agent application.

-installdir

Primary location in which the Universal Agent application identified by -cfgtype resides.

Merged File Contents

The following table identifies the contents of outfile.txt after UPIMERGE completes. The result is almost identical to the example shown in Merge Configuration Files Using Program Defaults, except for the value of the -installdir option.

Even though infile.txt contained a value for*-installdir*, UPIMERGE interpreted that value as the application's current location. UPIMERGE then updated any values in outfile.txt (executing logic based on the specified -cfgtype) that depend on the installed location.

This example might be useful in a situation where it is necessary to recover configuration settings from an archived file, but the application no longer resides in the directory specified in the archive file. This is the logic that UPIMERGE uses during a Universal Agent installation to ensure that installation-dependent locations are always correct.

Keyword

Value

installation_directory

"D:\Program Files\Universal\UCmdMgr"

message_level

info

Port

7850

license_product

"UNIVERSAL COMMAND MANAGER"

license_customer

"STONEBRANCH, INC."

license_type

DEMO

license_expiration_date

2012.12.21

license_nt_servers

1

license_key

078B-E180-64E6-3016-EA20-0CF4-58F9-B301

#activity_monitoring

yes

#event_generation

*,x100

Components

Universal Products Install Merge