Configuring Data Integrators
To configure a data integrator, you must create a property file that contains specific properties for the overall data transfer and for the individual data processors. When you create a property file, you must:
- Define logging properties (see Defining Logging Properties).
- Define properties for the individual processors (see Defining Properties for the Individual Processors).
- Define the order in which the processors are called (see Defining the Order of Processors).
Defining Logging Properties
You define logging properties by using the standard property names and values for SDX logging. Define the logging properties by using the following format:
Logger.<groupName>.<propertyName>=<value>For detailed information about configuring SDX logging properties, see SDX Components Guide, Vol. 1, Chapter 11, Configuring Logging.
Defining Properties for the Individual Processors
The properties that you must or can configure depend on the particular processor. You define properties by using the following format:
Processor.<processorName>.<propertyName>=<value>
- <processorName>—Name of processor that you define; each processor in a property file must have a unique name
- <propertyName>—Name of property; may comprise several text strings separated by dots
- <value>—Value of property
The following sections describe how to define properties for each processor. For detailed information about each processor, see the online documentation on the SDX software CD in SDK/doc/dataint.
Database Reader
You must define the following properties for this processor:
Processor.dbreader.dbQuery=SELECT <sqlQuery>Processor.dbreader.driverClass=<driverClass>Processor.dbreader.dbURL=<databaseURL>Processor.dbreader.user=<username>Processor.dbreader.password=<password>
- <username>—Username that the database uses to authenticate the processor
- <password>—Password that the database uses to authenticate the processor
Processor.dbreader.out=domInclusion of data in the XML document that the processor returns Processor.dbreader.genData=trueYou can also define optional properties about the database from which this processor reads data. For information about optional properties for this processor, see the online documentation on the SDX software CD in SDK/doc/datint.
Example
# Database ReaderProcessor.dbreader.class=net.juniper.smgt.ent.datamgt.reader.DBReaderProcessor.dbreader.driverClass=org.gjt.mm.mysql.DriverProcessor.dbreader.dbURL=jdbc:mysql://127.0.0.1:3306/vpnProcessor.dbreader.user=adminProcessor.dbreader.password=secretProcessor.dbreader.genData=trueProcessor.dbreader.out=dom# The SQL queryProcessor.dbreader.dbQuery=SELECT vpn_ownership.vpn_id, vpn_ownership.vpn_owner,vpn_sites.router_name,vpn_sites.interface_name FROM vpn_ownership, vpn_sites where vpn_ownership.vpn_id=vpn_sites.vpn_id# XML element namesProcessor.dbreader.elname.database=database#Processor.dbreader.elname.record=recordLDAP Reader
This processor obtains the query it performs as an XML document from the previous processor in the chain, and you do not need to define the query. You must, however, define the following properties for this processor:
Processor.<processorName>.<desProperty>=<value>
- <processorName>—Name of processor that you define; each processor in the same property file must have a unique name
- <desProperty>—Name of the DES property
- <value>—Value of the DES property
For information about DES properties and values, see SDX Components Guide, Vol. 1, Chapter 12, Configuring the Directory Eventing System.
For information about optional properties for this processor, see the online documentation on the SDX software CD in SDK/doc/dataint.
Example
Processor.ldapreader.class=net.juniper.smgt.ent.datamgt.reader.LDAPReaderProcessor.ldapreader.java.naming.provider.url = ldap://127.0.0.1/Processor.ldapreader.java.naming.security.principal = cn=umcadmin,o=umcProcessor.ldapreader.java.naming.security.credentials = admin123Processor.ldapreader.continuous=trueProcessor.ldapreader.java.naming.provider.url = ldap://127.0.0.1/XML File Reader
You must define the following properties for this processor:
- Name of the class of the processor
- In the following format, the XML document from which this processor reads data:
Processor.<processorName>.XMLFileName= <path>
- <processorName>—Name of processor that you define; each processor in the same property file must have a unique name
- <path>—Path to XML document relative to the folder /opt/UMC/datint
Example
Processor.xmlfilereader.class=net.juniper.smgt.ent.datamgt.reader.XMLFileReaderProcessor.xmlfilereader.XMLFileName=var/log/dbout.xmlEnterprise Audit File Reader
You must define the following properties for this processor:
- Name of the class of the processor
- In the following format, the log file from which this processor reads data:
Processor.<processorName>.auditFileName=<path>
- <processorName>—Name of processor that you define; each processor in the same property file must have a unique name
- <path>—Path to XML document relative to the folder /opt/UMC/datint
For information about optional properties for this processor, see the online documentation on the SDX software CD in SDK/doc/dataint.
Example
Processor.auditfilereader.class=net.juniper.smgt.ent.datamgt.reader.EntAuditFileReaderProcessor.auditfilereader.auditFileName=ent_audit.logProcessor.auditfilereader.filter=(Action=Unexport-VPN)XML File Writer
You must define the following properties for this processor:
- Name of the class of the processor
- In the following format, the XML document to which the processor writes data:
Processor.xmlfilewriter.XMLFileName=<path>Example
Processor.xmlfilewriter.class=net.juniper.smgt.ent.datamgt.filter.XMLFileWriterProcessor.xmlfilewriter.XMLFileName=var/log/ldapout.xmlXSLT Translator
You must define the following properties for this processor:
Processor.<processorName>.XSLTFileName=<path>
- <processorName>—Name of the XSLT translator
- <path>—Path to XSLT file relative to the folder /opt/UMC/datint
Example
Processor.toabstract.class=net.juniper.smgt.ent.datamgt.filter.XSLTTranslatorProcessor.toabstract.XSLTFileName=xslt/vpn.xsltLDAP Writer
You must define the following properties for this processor:
Processor.ldapwriter.<desProperty>=<value>For information about DES properties and values, see SDX Components Guide, Vol. 1, Chapter 12, Configuring the Directory Eventing System.
For information about optional properties for this processor, see the online documentation on the SDX software CD in SDK/doc/dataint.
Example
Processor.ldapwriter.class=net.juniper.smgt.ent.datamgt.filter.LDAPWriterProcessor.ldapwriter.java.naming.provider.url = ldap://127.0.0.1/Processor.ldapwriter.java.naming.security.principal = cn=umcadmin,o=umcProcessor.ldapwriter.java.naming.security.credentials = admin123Processor.ldapwriter.updateRateLimit=3Processor.ldapwriter.continuous=trueDefining the Order of Processors
To define the order in which the processors will be executed, enter one statement in the following format:
Processor.chain=<comma-separated list of names of processors in order>Processor.chain=dbreader,toldap,xmlfilewriter,ldapwriter