Configuring Subscriptions to the DPI Script Service
You configure subscriptions to the DPI script service by adding subscribers. You can set up the subscription to activate immediately on login.
To add access subscribers:
- From configuration mode, enter the [edit subscribers
retailer] hierarchy. In this sample procedure, the retailer called
DPI is configured in the DPI service scope. user@host# edit subscribers retailer DPI
- Specify the domain name associated with the retailer. [edit subscribers retailer DPI]user@host# set domain-name [domain-name...]
- (Optional) Assign service scopes for the retailer. [edit subscribers retailer DPI]user@host# set scope [scope...]
- Add a subscriber folder for the retailer. In this sample
procedure, local is the name of the subscriber folder. [edit subscribers retailer DPI]user@host# edit subscriber-folder local
- Add an enterprise subscriber. In this sample procedure,
ENT is the name of the enterprise subscriber. [edit subscribers retailer DPI subscriber-folder local]user@host# edit enterprise ENT
- (Optional) Configure values for parameters. [edit subscribers retailer DPI subscriber-folder local enterprise ENT]user@host# set substitution [substitution...]
For example, to specify the dpiRules or dpiAdminState parameter:
user@host# set substitution ’dpiRules=[{app="rtsp", action="accept", fcl="expedited-forwarding"}, {app="bittorrent", action="discard"}]’user@host# set substitution dpiAdminState=\"enabled\" - Configure accesses for the enterprise subscriber. [edit subscribers retailer DPI subscriber-folder local enterprise ENT]user@host# edit access name
- Specify the interface name associated with the access
using the CLI syntax of the device. [edit subscribers retailer DPI subscriber-folder local enterprise ENT access name]user@host# set interface-name interface-name
- (Optional) Configure actual values for parameters. [edit subscribers retailer DPI subscriber-folder local enterprise ENT access name]user@host# set substitution [substitution...]
For example, to specify the interface class:
user@host# set substitution ’dpiInterfaceClasses=["MXEnterprise"]’ - From configuration mode, enter the subscription configuration.
In this sample procedure, the service called DPI is configured for
the enterprise. user@host# edit subscribers retailer DPI subscriber-folder local enterprise ENT subscription DPI
- Specify that the service is activated on login. [edit subscribers retailer DPI subscriber-folder local enterprise ENT subscription DPI]user@host# set activation automatically-on-login