41.2. TRFA diagnostics, statistics and debug

41.2.1. TRFA diagnostics

The following commands are used to display the diagnostics of the TRFA resource:

d d trfa / d de trfa

Shows the current status of the resource, the current status of the active address array, the current status of the active traffic array, the number of seconds to reach next event, the percentage of use of the active address/backup array, the currently record saved in the active address/backup array, the maximum number of simultaneously record in the active address/backup array, the actual size of the active address/backup array and the number of requests that were discarded because active address/backup array is overflow.

[15:53:04] ABILIS_CPX:d d trfa

RES:Trfa ----------------------------------------------------------------------
       Traffic_Analyzer
       STATE:ACTIVE    ACTIVE-STATE:NORMAL    BACKUP-STATE:NORMAL    EVENT: 32
       ------------------------------------------------------------------------
       ---ARRAY---|---PERC----|----CUR----|---PEAK----|----MAX----|----OVR----|
       ACTIVE     |          1|         13|         21|       1000|          0|
       BACKUP     |          1|         11|         20|       1000|          0|
       ------------------------------------------------------------------------

41.2.2. TRFA statistics

To display the statistics of the TRFA resource the following commands are used:

d s trfa / d se trfa

Shows the total number of requests, the number of requests that were successfully executed, the number of requests that were not satisfied, the number of requests for which the traffic tracing was not activated and the number of failures due to an address overflow.

[15:53:05] ABILIS_CPX:d s trfa

RES:Trfa ----------------------------------------------------------------------
       Traffic_Analyzer
       --- Cleared 1 days 05:32:41 ago, on 29/12/2007 at 13:39:43 -------------
       - Send/Receive statistics ----------------------------------------------
       -----------|---TOTAL---|---SUCC----|---FAIL----|---INACT---|-OVERFLOW--|
       REQUESTS   |    3882659|    3882659|          0|          0|          0|
       ------------------------------------------------------------------------

41.2.3. TRFA debug

The debug commands are useful for various activities, e.g. clearing files, removing data originated from a temporary configuration error, removing obsolete data after a line change, etc..

[11:44:43] ABILIS_CPX:_debug res:trfa

RES:Trfa ----------------------------------------------------------------------
       Traffic_Analyzer
       BufferLength:1007   Date/Time:07/03/2011 11:44:46 TraceTime:226070834

Usage:
   LSN:0         - This help
   LSN:3         - Log commands (help)
   LSN:4         - DATA File status
   LSN:5         - BACKUP File status
   LSN:6         - TEMPORARY File status
   LSN:10        - Purge help
   LSN:10 CMD:PURGE,param,... - Purge specific information

    List of TRFA PURGE parameters:
     IPRES:nnn    - Purge data from IP-RES indicated.
     TYPE:ssss    - Type of purge (ALL, IP, IP-PROT).
     ARCHIVE:ssss - Type of archive (DAY, WEEK, MONTH, YEAR, *=any).
     IP:x.x.x.x   - Purge data with specified IP (only for TYPE:IP/IP-PROT).
                    (single IP or range x.x.x.x-y.y.y.y or *=any).
     PROT:sss     - Purge data with specified protocol (only for TYPE:IP-PROT).
                    (ICMP, TCP, UDP, OTHERPROT, FTP, TELNET, SMTP, DNS, POP3
                     POP3SSL, SNMP, HTTP, HTTPS, OTHERTCP, OTHERUDP).
     FROM:ddmmyyyy[-hhmm]  - Starting range time (*=no limit).
     TO:ddmmyyyy[-hhmm]    - Ending range time (*=no limit).