64.2. ACNT diagnostics, statistics and debug

64.2.1. ACNT diagnostics

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

d d acnt / d de acnt

Shows diagnostic information, such as the current state of the connection, the current mode for exchanging accounting data, whether data exchanged on the current connection are encrypted, the local IP Address/port and the remote IP address/port of the PC in which is executed the Collector application.

[11:09:16] ABILIS_CPX:d d acnt

RES:Acnt ----------------------------------------------------------------------
       Accounting_Service
       STATE:READY
       - Accounting channels --------------------------------------------------
       Ch State     Mode     Crypt LocAdd-LocPort        RemAdd-RemPort
       ------------------------------------------------------------------------
       1  CONN-FROM SIMPLE   NO    192.168.000.232-2060  192.168.000.024-2384
       2  CONN-FROM SIMPLE   NO    192.168.000.231-2060  192.168.000.051-2702
       3  CONN-FROM SIMPLE   NO    192.168.000.232-2060  192.168.000.250-32966
       - Local storage of CDRs ------------------------------------------------
       CDR-STATE:UP                FIFO-CUR:0            FIFO-PEAK:1
       FIFO-LOST:0                 FIFO-AVG:0            FIFO-SIZE:4096
       ------------- Disk 1 -------------|------------ Disk 2 -----------------
       D1-STATE:UP                        D2-STATE:UNUSED
       D1-ERR:No error                    D2-ERR:No error
       D1-USAGE:2 %                       D2-USAGE:-
       ---------- Disk 1 files ----------|-------- Disk 2 files ---------------
       D1-CUR-STATE:OPENED                D2-CUR-STATE:CLOSED
       D1-NXT-STATE:OPENED                D2-NXT-STATE:CLOSED
       D1-CSV-NUM:365                     D2-CSV-NUM:-
       D1-FRE-NUM:2611                    D2-FRE-NUM:-
       D1-INV-NUM:0                       D2-INV-NUM:-

The meaning:

STATE

ACNT state:

  • INACTIVE - ACNT is inactive, ACT:NO;

  • DOWN - ACNT is active, ACT:YES, but not working;

  • READY - ACNT is active, ACT:YES, and working.

Ch

Channel number.

STATE

ACNT Session state

  • CLOSED - Session not established/establishing and no listen pending;

  • LISTEN - Listen is pending;

  • CALLED - Listen successfully completed;

  • CALLING - Call issued, pending;

  • CONNECTED - Session established and mode successfully set;

  • CLEARING - ACNT initiated disconnection sending hangup;

  • CLEARED - Disconnection signalled to ACNT;

  • DOWN - channel is down.

Mode

ACNT Connection mode

  • ERR - Old MD_SIMPLE1K/TRANSACT1K;

  • SIMPLE - MD_SIMPLE2K;

  • TRANSACT - MD_TRANSACT2K;

  • UNKNOWN - MD_UNKNOWN.

Crypt

ACNT encryption mode.

  • NO - Not ciphered.

  • YES - Ciphered with RC6.

LocAdd-LocPort

Local IP Address and Local Port.

RemAdd-RemPort

Remote IP Address and Remote Port.

CDR-STATE

ACNT CDR-STATE state:

  • INACTIVE - when CDR-ACT:NO, events from CTIR are discarded.

  • DOWN - when CDR-ACT:YES and none of WDIR1/WDIR2 is accessible, i.e.: none of WDIRx is configured OR none of WDIRx/DISKx is functional events from CTIR are buffered in the fifo.

  • UP - when CDR-ACT:YES and the driver is fully functional, i.e.: at least one of WDIRx is configured at least one of WDIRx and corresponding DISKx is functional events from CTIR are buffered in the fifo.

  • STOPPED - when CDR-ACT:YES and write to disk is temporary stopped, i.e.: at least one of WDIRx is configured at least one of WDIRx and corresponding DISKx is functional events from CTIR are buffered in the fifo write to disk is temporarily/administratively stopped.

D1/D2-STATE

ACNT disk state:

  • UNUSED - Disk unused. WDIR not configured.

  • UP - Disk used and properly working.

  • DOWN - Disk used but currently not working properly, disk currently excluded from procedures.

D1/D2-ERR

ACNT disk error state:

  • No error - No error.

  • FAIL_DISK - Disk not found. The drive letter is inaccessible, or the probing procedure detects disk missing (RTF return codes are inconsistent among the RTF functions).

  • SAME_DISK - Same disk configured. Drive letter of WDIR2 is the same of WDIR1.

  • FAIL_WDIR - Failed to create WDIR. Disk is present, functional, without errors, but directory is missing and can't be created, therefore disk use must be stopped.

64.2.2. ACNT statistics

The following commands are used to display the statistics of the ACNT resource:

d s acnt

Shows statistic information, such as the number of failed/succesful calls on the connection, the number of sent/received characters and the number of sent/received messages.

d se acnt

Shows statistic information in an extended format: the same information listed for d s acnt command is shown for each session.

[11:09:16] ABILIS_CPX:d s acnt

RES:Acnt ----------------------------------------------------------------------
       Accounting_Service                                                      
       --- Cleared 10 days 07:29:55 ago, on 11/09/2020 at 09:08:31 ------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       FAIL-CALL  |          0|          0|SUCC-CALL  |          4|          0|
       CHAR       |      40978|     519868|MSG        |           |       2017|
       ------------------------------------------------------------------------
[11:09:16] ABILIS_CPX:d se acnt

RES:Acnt ----------------------------------------------------------------------
       Accounting_Service                                                      
       --- Cleared 10 days 07:29:55 ago, on 11/09/2020 at 09:08:31 ------------
       - Accounting channels --------------------------------------------------
       Ch State     Mode     Crypt LocAdd-LocPort        RemAdd-RemPort        
       ------------------------------------------------------------------------
       1  CONN-FROM SIMPLE   NO    192.168.000.232-2060  192.168.000.024-2384
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       FAIL-CALL  |          0|          0|SUCC-CALL  |          2|          0|
       CHAR       |        232|       4992|MSG        |           |         21|
       ------------------------------------------------------------------------
       2  CONN-FROM SIMPLE   NO    192.168.000.231-2060  192.168.000.051-2702
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       FAIL-CALL  |          0|          0|SUCC-CALL  |          1|          0|
       CHAR       |      14829|     257436|MSG        |           |        998|
       ------------------------------------------------------------------------
       3  CONN-FROM SIMPLE   NO    192.168.000.232-2060  192.168.000.250-32966
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       FAIL-CALL  |          0|          0|SUCC-CALL  |          1|          0|
       CHAR       |      25917|     257440|MSG        |           |        998|
       ------------------------------------------------------------------------
       - Local storage of CDRs ------------------------------------------------
       NO STATITISCS AVAILABLE YET

With reference to the shown interval of time («Cleared 10 days 07:29:55 ago») these counters show the number of:

FAIL-CALLUnsuccessful incoming/outgoing calls.
SUCC-CALLSuccessful incoming/outgoing calls.
CHARNumber of incoming/outgoing characters.
MSGNumber of sent data messages.

64.2.3. ACNT debug

Type the following command to view allowed commands:

[10:10:10] ABILIS_CPX:debug res:acnt

RES:Acnt ----------------------------------------------------------------------
       Accounting_Service                                                      
       BufferLength:64512  Date/Time:18/09/2020 10:10:18 TraceTime:253021888

Usage:

   LSN:0              - This help
   LSN:1              - Driver object (bin)
   LSN:2              - Driver object (txt)
   LSN:3              - Show log
   LSN:3 CMD:CLR      - Clear log
   LSN:3 CMD:SET:[DFT | CLR | FULL | [level,...]] - Set log event mask
                 No parameters - Show current events log mask
                 DFT  - Log default events (ERR events only)
                 FULL - Log all events
                 levels:
                 ERR  - Error events
                 INFO - Informative events
                 DBG  - Debugging events

Type the following command to view the ACNT session log:

[10:11:17] ABILIS_CPX:debug res:acnt lsn:3

RES:Acnt ----------------------------------------------------------------------
       Accounting_Service                                                      
       BufferLength:64512  Date/Time:21/09/2020 16:40:35 TraceTime:535611214

210920 163513 Info  Refresh   of CDR configuration began
210920 163513 Info  Setting   of WDIR1:q:\acnt\ began
210920 163513 Info  Setting   of WDIR1:q:\acnt\ finished
210920 163513 Info  Setting   of WDIR2: began
210920 163513 Err   Setting   of WDIR2: failed, empty configured
210920 163513 Info  Active    of CDR began
210920 163513 Info  Adjusting of FRE files in q:\acnt\: 2976/16/48/F
210920 163513 Info  Creation of FRE files (2976) in q:\acnt\ started
210920 163513 Info  Opening   of 20200921-0000-1630.CUR began
210920 163514 Info  Opening   of 20200921-0000-1630.CUR finished
210920 163514 Info  Opening   of 20200921-0001-1645.NXT began
210920 163514 Info  Opening   of 20200921-0001-1645.NXT finished
210920 163514 Info  Active    of CDR finished successfully
210920 163514 Info  Refresh   of CDR configuration finished