Search connection strings from configuration documents

The following example demonstrates the content of a configuration signature file used to search connection strings from configuration documents.

<TextFile name="${filename}*.loc">
    <FileLocations>
        <Path>${pluginPath}</Path>
        <Path os="win" includeSub="true">C:\Windows\System*</Path>
    </FileLocations>
	...
</TextFile>
<XmlFile name=">plugin.xml" collect="true">
    <FileContent>${fileContent}</FileContent>
	...
</XmlFile>

To search connection strings from configuration documents, configuration signature uses several elements to define rules:

  • <TextFile>: get strings from a generic text configuration document.
  • <PropertyFile>: get strings from a property file by using specified property key.
  • <XmlFile>: get strings from an XML-format configuration document.
  • <CustomFile>: get strings from a file by using a custom script.

Each of these “File” elements requires a file name, which can use variables. When the collect attribute is set to true (which is by default false), the file will be reported to UCMDB as a ConfigurationDocument CI with file name, full path, and file content. It is useful for troubleshooting. The first child element of a “File” element should be either <FileLocations> or <FileContent>.