Management [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:dpi_options:opt_notify:notify_mgmt [2020/02/05 17:35] – ↷ Page moved from en:dpi:dpi_options:base_functionality:opt_notify:notify_mgmt to en:dpi:dpi_options:opt_notify:notify_mgmt lexx26en:dpi:dpi_options:opt_notify:notify_mgmt [2024/09/26 15:29] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Management ====== ====== Management ======
 +{{indexmenu_n>3}}
 +This service is configured on individual subscribers' level by [[en:dpi:dpi_components:platform:subscriber_management:subsman_cmd|fdpi_ctrl]].
  
 +Instruction format:
 +<code>
 +fdpi_ctrl command --service 6 [IP_list]
 +</code>
 +You can find more details on the instruction syntax and IP specification methods here: [[en:dpi:dpi_components:platform:subscriber_management:subsman_cmd|Control instructions]]
 +
 +===== Examples =====
 +
 +1. To activate notification for a particular subscriber **with a default profile** (configuration file ///etc/dpi/fastdpi.conf//):
 +<code>
 +fdpi_ctrl load --service 6 --ip 192.168.0.1
 +</code>
 +
 +<note important>After successful notification the service is switched off automatically.</note>
 +
 +2. To create **a named profile** and to activate notification with a profile for a group of subscribers
 +<code ini>
 +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
 +</code>
 +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 
 +
 +<note important>(redirection checking allows you to increase the reliability of this service, but requires the requests to the redirection page being routed through the DPI)</note>
 +
 +3. 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:
 +<code ini>
 +fdpi_ctrl load --service 6 --profile.json '{ "redirect" : "http://mysite.ru/landing_nash_football", "check" : true }' --ip 192.168.0.2
 +</code>
 +
 +===== Examples of named profiles management =====
 +
 +1. To search the subscribers with active notification service with the given profile name
 +<code>
 +fdpi_ctrl list all --service 6 --profile.name TV_channel_football_advertisment
 +</code>
 +
 +2. To delete a named profile (there should be no subscribers using this profile)
 +<code>
 +fdpi_ctrl del profile --service 6  --profile.name tariff_10
 +</code>
 +
 +3. To change the service (profile) settings (new settings are applied to all the subscribers with specified service profile)
 +<code ini>
 +fdpi_ctrl load profile --service 6 --profile.name TV_channel_our_football_advertisment --profile.json '{ "redirect" : "http://mysite.ru/landing_nash_football", "check" : true }'
 +</code>