3 Management

This service is configured on individual subscribers' level by fdpi_ctrl.

Instruction format:

fdpi_ctrl command --service 6 [IP_list]

You can find more details on the instruction syntax and IP specification methods here: Control instructions

Examples:

To activate notification for a particular subscriber:

fdpi_ctrl load --service 6 --ip 192.168.0.1

After successful notification the service is switched off automatically.

To create a named profile and to activate notification with a profile for a group of subscribers

fdpi_ctrl load profile --service 6 --profile.name TV_channel_our_football_advertisment --profile.json '{ "redirect" : "http://mysite.ru/landing_our_football", "check" : true }'
fdpi_ctrl load --service 6 --profile.name TV_channel_our_football_advertisment --ip 192.168.0.1
fdpi_ctrl load --service 6 --profile.name TV_channel_our_football_advertisment --ip 192.168.0.2

here the following profile setting using the json format are set
redirect - redirection page
check : true/false - check or not to check if the redirection succeeded (redirection checking allows you to increase the reliability of this service, but requires the requests to the redirection page being routed through the dpi)

To activate the notification service with the anonymous profile (profile without a name existing up to the subscriber's service deactivation) for a particular subscriber:

fdpi_ctrl load --service 6 --profile.json '{ "redirect" : "http://mysite.ru/landing_nash_football", "check" : true }' --ip 192.168.0.2

To search the subscribers with active notification service with the given profile name

fdpi_ctrl list all --service 6 --profile.name TV_channel_our_football_advertisment

To delete a named profile (there should be no subscribers using this profile)

fdpi_ctrl del profile --service 6 --profile.name tariff_10

To change the service (profile) settings (new settings are applied to all the subscribers with specified service profile)

fdpi_ctrl load profile --service 6 --profile.name TV_channel_our_football_advertisment --profile.json '{ "redirect" : "http://mysite.ru/landing_nash_football", "check" : true }'

The maximum number of profiles for notification is set by corresponding option in /etc/dpi/fastdpi.conf file:

max_profiles_ntf=65535

here 65535 is the default and the greatest possible value.
It is not the "on the fly" setting, so it requires to restart the service.