Example: Using the DPI Script Service
To use the DPI script service provided:
- Download the DPI script service to your system from the
Juniper Networks website: https://www.juniper.net/support/downloads/?p=src#sw
The files for supporting the DPI script service can be found in the SRC Demo and Sample Application software (SDK+AppSupport+Demos+Samples.tar.gz file).
The /SDK/scriptServices/dpiScriptService/lib/dpiss.jar file contains the DPI script service implementation. Copy the dpiss.jar file to a location that is accessible to the SAE by a URL.
The /SDK/scriptServices/dpiScriptService/resource/dpiConfig.xml file contains the sample configuration file that is included in the dpiss.jar file.
- Import the sample data for the DPI script service using
an LDAP browser.
The /SDK/scriptServices/dpiScriptService/ldif/dpiService.ldif and /SDK/scriptServices/dpiScriptService/ldif/dpiSubscriber.ldif files contain the sample service definition and subscriber configuration for setting up the script service.
To load the sample data into the database, you can use an LDAP tool, such as ldapmodify. To load data into the Juniper Networks database, you need the IP address of the database and the database credentials. The default bind distinguished name (DN) for the database is cn=umcadmin, o=umc and the password is admin123.
- Modify the service substitutions for your device.
You can make these substitutions by defining the parameter substitutions in the DPI service with the SRC CLI or by passing the values through the enterprise portal.
- Configure a subscription to the DPI service that is activated on login.
Related Documentation
For information about defining parameter substitutions with the SRC CLI, see Creating the DPI Script Service (SRC CLI) or Configuring Subscriptions to the DPI Script Service
For information about passing the values through the SAE core API, see Substituting Parameters in Policy Templates