FastPCRF 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:bras_bng:cli:pcrfctl:start [2023/10/13 11:44] – ↷ Операцией перемещения обновлены ссылки elena.krasnobryzhen:dpi:bras_bng:cli:pcrfctl:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== FastPCRF Management ====== 
-{{indexmenu_n>7}} 
  
-The following are the fastPCRF commands, so you have to specify the fastPCRF address in the -r argument of the fdpi_cli utility. 
- 
-===== Authorization request queue ===== 
-[[dpi:bras_bng:radius_integration:radius_auth_fastpcrf_setup:pending_queue|Authorization request queue]] - is an internal fastPCRF queue, which is designed to smooth out the peaks of calls to the Radius-server. When fastDPI authorization from fastPCRF, it does not take into account the bandwidth of Radius-server. There are parameters in fastpcrf.conf that set the maximum length and time spent in the queue, but sometimes you need to manually clear the queue or view its statistics. 
- 
-==== pcrf auth queue stat ==== 
-Displays statistics on the internal queue of authorization requests: 
- 
-<code> 
-fdpi_cli -r <address> pcrf auth queue stat 
-</code> 
- 
-==== pcrf auth queue clear ==== 
-Clears the authorization queue. You can clear the entire queue with the command: 
- 
-<code> 
-fdpi_cli -r <address> pcrf auth queue clear 
-</code> 
-or the oldest records by specifying the ''time = N'' parameter, where N is the number of seconds, - records older than the specified number of seconds will be removed from the queue: 
-<code> 
-fdpi_cli -r <address> pcrf auth queue clear time=60 
-</code> 
- 
-===== Persistent reply queue ===== 
-{{anchor:persist_queue}} 
- 
-[[en:dpi:bras_bng:opt_bras_l3:replication:start|Persistent queue]] management commands (fastPCRF response queues for authorization requests) 
- 
-==== pcrf persist queue stat ==== 
-Displays persistent queue statistics for each fastDPI: 
-<code bash> 
-> fdpi_cli -r <address> pcrf persist queue stat 
- 
-Statistics of persist queue (pcrf -> fastdpi): 
-  FastDPI #0 '127.0.0.1%lo': 
-    queue file: /var/spool/dpi/pcrf/pq-127.0.0.1:29000 
-    current: page count=1, item count=0 
-    connected at: 2019/12/04 12:02:52, -25.332764s (13249164373261240 ticks) 
-    last sent: n/a (0 ticks) 
-    next reconnect: n/a (0 ticks) 
-    Statistics: 
-      sent: packet=0, bytes=0, error=0 
-      received: bytes=0, error=0 
-      socket: open=1, close=0, buffer overflow (split packet)=0 
-      queue: enqueue packet=0 (0 bytes) 
-             drop head=0, push exception=0, clear count=0 
-  FastDPI #1 '10.20.30.41%eth0': 
-    queue file: /var/spool/dpi/pcrf/pq-10.20.30.41:29000 
-    current: page count=1, item count=3560 
-    last sent: n/a (0 ticks) 
-    next reconnect: 2019/12/04 12:03:18, +0.705613s (13249242490512650 ticks) 
-    Statistics: 
-      sent: packet=0, bytes=0, error=0 
-      received: bytes=0, error=0 
-      socket: open=0, close=0, buffer overflow (split packet)=0 
-      queue: enqueue packet=0 (0 bytes) 
-             drop head=0, push exception=0, clear count=0 
-</code> 
- 
-==== pcrf persist queue clear ==== 
-Clears all queues or only the specified queue. 
-The command response is the queue statistics after clearing. 
-<code bash> 
-   # clears all queues 
-fdpi_cli -r <address> pcrf persist queue clear 
- 
-   # clears a queue by its number 
-   # the queue number can be found from the output of the pcrf persist queue stat command 
-fdpi_cli -r <address> pcrf persist queue clear 1 
- 
-   # clears a queue by its name 
-fdpi_cli -r <address> pcrf persist queue clear 127.0.0.1%lo 
-</code> 
- 
-==== pcrf persist queue reconnect ==== 
-Allows you to reconnect to fastDPI without resetting the queue. It can be applied to a specific connection or to all.