Configure the scanner
To configure the Snow Inventory Oracle Middleware Scanner, use the SnowInventoryOracleMiddlewareScanner element of the agent configuration file, snowagent.config
.
The element has the following contents and default values:
<SnowInventoryOracleMiddlewareScanner enabled="false">
<UseDataOptimization>false</UseDataOptimization>
<Anonymization>
<File filename="config.xml">
<Xpath>//listen-port</Xpath>
<Xpath>//listen-address</Xpath>
<Xpath>//credential-encrypted</Xpath>
<Xpath>//node-manager-password-encrypted</Xpath>
</File>
</Anonymization>
</SnowInventoryOracleMiddlewareScanner>
The available configurations are described in the following sections.
Enable the scanner
To enable the scanner, set the enabled setting to true. The agent will then run the scanner as part of the scanning process.
<SnowInventoryOracleMiddlewareScanner enabled="true">
Configure the scanner to inventory only top-level Middleware components
By enabling this option, only the top-level Middleware components will be inventoried, ignoring all the child Middleware components. This will optimize the data volume, which can be useful when dealing with big estates. It will not affect the visibility of Middleware products, but the drawback is that any additional child components related to those products will not be detected.
To enable the option, use the following configuration:
<UseDataOptimization>true</UseDataOptimization>
The default value is false and is used in all other circumstances than the one described above.
Configure the scanner to anonymize data
Use the Anonymization element to enable data anonymization. Wildcard characters can be used in the filename part. Both xpaths and regular expressions can be used to define the optimization rules.
-
Wildcards in the filename are supported. Example:
<file filename="*.xml">
-
Absolute xpaths are supported, these are paths defined from the root element. Wildcards in the xpaths are also supported. Example:
<xpath>/machine/*/name\</xpath>
-
Relative xpaths are supported, all elements that match the name in the XML document will be anonymized. Example:
<xpath>//listen-address</xpath>
-
Regular expressions are supported. With this example, all IP addresses found will be anonymized:
<regex>^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$</regex>