How to create a DCI rule to include elements within a specific ip address range

Document ID : KB000023759
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

The following DCI example rule will allow the discovery of elements having IP Addresses within the range 201.10.192-155.0-9

Note: for the rule to apply, the device(s) must be discovered with the Discover Policy parameter enabled:

Background: 

Database Configuration Information (DCI) is a powerful API provided by eHealth for controlling elements generating the discovery process. 
DCI consists of formatted records defining eHealth element configuration information. 

Rules files are ASCII files that you use to process the configuration information in a DCI file before CA eHealth saves the information in the element configuration.
You use rules files to group or exclude elements, or change element, group, or group list attributes, including names.

Environment: 

eHealth 6.2.2 Dxx to latest: 6.3.0 - 6.3.2.x

Instructions:

1. Save the contents of the rule below to a flat text file with a .dcr extension and place it in $NH_HOME/discover/. 
(The ".dcr" extension is not required but is used for clarity in this example.)

Note: Any elements matching the first statement would be added with no processing, the rest would be excluded.

#################################################
ipAddr matches "201.10.[192-255].[0-9]+" :
{

    # Blank to include with no processing
}

name matches ".*":
{
   exclude ();
}
##################################################

2. Edit your chosen Discover Policy and select the rule name in the "DCI Rules" list, then save the Discover Policy.

3. Run your discovery.


Additional Information:

See eHealth Documentation:

https://support.ca.com/cadocs/1/CA%20eHealth%206%203%202%2007-ENU/Bookshelf.html

Select Administrator under Product Documentation - By Function 
 

1. Click to show documentation in category "Product Documentation - By Function"
2. Select Develop: Data Integration Guide