Service 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
Next revision
Previous revision
en:dpi:dpi_components:platform:subscriber_management:subsman_cmd:start [2018/03/21 11:44] lexx26en:dpi:dpi_components:platform:subscriber_management:subsman_cmd:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== 3 Management of policing and services ====== 
-{{indexmenu_n>3}} 
-Subscribers' management is handled by fdpi_ctrl utility. 
  
-The instruction format: 
-<code> 
-fdpi_ctrl command { --service service_identifier | --policing policing_description_file} [IP_list] [LOGIN_list] 
-</code> 
- 
-Here 'command' is: 
-<code> 
-load : load data 
-del  : remove. You have to specify 'program_identifier' for '--service'. No need to specify for policing 
-list : show the information on the specified 'IP_list' or all the information if the argument is 'all' 
-</code> 
- 
-service_identifier - is one of these values or their comma separated list: 
-<code> 
-1 - bonus program 
-2 - advertising 
-3 - block advertisements 
-4 - black list 
-5 - white list 
-6 - notifications 
-7 - caching 
-8 - DDos protection passed 
-9 - collect netflow statistics for billing 
-</code> 
-  
-IP_list  - is a sequence or one of the following options: 
-<code> 
---file     - a file containing IP list 
---ip       - a single IP 
---ip_range - inclusive IP range 
---cidr     - CIDR 
-</code> 
- 
-LOGIN_list  - is a sequence or one subscriber's name value in format: 
-<code> 
---login USER1 
---login "FIRST_NAME LAST_NAME" is the option to indicate login with special symbols screening 
-</code> 
- 
-IP list or LOGIN can be specified as: 
-<code> 
-192.168.0.1             a single IP 
-192.168.0.1-192.168.0.5 inclusive IP range 
-192.168.0.0/30          CIDR 
-"USER1"                 specify LOGIN in quotes 
-'USER2'                 specify LOGIN in single quotes 
-</code> 
-Lines starting from '#' is treated as a comment. 
- 
-One can specify 'all' instead of IP/LOGIN list in commands list, del, clear. It means to apply the command to all subscribers. 
- 
-Examples: 
- 
-To get the policing application list: 
-<code>  
-fdpi_ctrl list all --policing 
-</code> 
- 
-To get the list of subscribers with active service 1: 
-<code> 
-fdpi_ctrl list all --service 1 
-</code> 
- 
-To get the information for specified IP: 
-<code> 
-fdpi_ctrl list --policing  --ip 192.168.0.1 
-fdpi_ctrl list --service 1 --ip 192.168.0.1 
-</code> 
- 
-To activate service 1: 
-<code> 
-fdpi_ctrl load --service 1 --ip 192.168.0.1 
-or 
-fdpi_ctrl load --service 1 --login USER1 
-</code> 
- 
-To activate policing policy: 
-<code> 
-fdpi_ctrl load --policing tbf.cfg --ip 192.168.0.1 
-</code> 
- 
- 
-To disable service 1: 
-<code> 
-fdpi_ctrl del --service 1 --ip 192.168.0.1 
-</code> 
- 
-One can specify several options '–file', '–ip', '–ip_range', '–cidr' when specifying IP list: 
-<code>  
-fdpi_ctrl list --service 1 --ip 192.168.0.1 --ip 192.168.0.2 --file fip_1.txt --ip_range 192.168.0.3-192.168.0.6 --login USER1 
-</code> 
-This action would be applied to all elements that do not cause any errors.\\  
-:!: No undo for changes that were already implemented is made on errors. 
- 
-Detailed description on policing and services' management one can find in chapters devoted to the respective [[en:dpi:dpi_options:start|options]].