22.2. CP diagnostics and statistics

22.2.1. CP diagnostics

To display the diagnostics of the CP resource the following commands are used:

d d cp

Shows the current state of the driver, the session privilege level actually in use and the current operative state of the CP session (the last two parameters are shown only if the session is in the CONNECTED state).

d de cp

Shows the same information displayed by d d cp command along with the last command typed.

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

RES:Cp ------------------------------------------------------------------------
       Control_Port
       STATE:UP
       Ses    State       AccessLevel    Action
       ------------------------------------------------------------------------
       1      CONNECTED   SUPERUSER      COMMAND-MODE
       2      READY
       3      READY
       4      READY 
[11:09:16] ABILIS_CPX:d de cp

RES:Cp ------------------------------------------------------------------------
       Control_Port
       STATE:UP
       Ses    State       AccessLevel    Action
              [Last Command]
       ------------------------------------------------------------------------
       1      CONNECTED   SUPERUSER      COMMAND-MODE
              d de cp
       2      READY
       3      READY
       4      READY 

The meaning:

State

State of the CP resource session:

  • READY - session is available.

  • CONNECTED - session is connected.

  • CLEARED - session is confirming an incoming clear.

AccessLevel

Access Level of connected user:

  • USER - User login level.

  • ADMINISTRATOR - ADMINISTRATOR login level.

  • SUPERUSER - SUPER-USER login level.

Action

Action made by user:

  • LOGIN-PHASE - CP login phase.

  • COMMAND-MODE - CP Command Exchange.

  • SENDING-FILE - Send File command management.

  • RECEIVING-FILE - Receive File command management.

22.2.2. CP statistics

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

d s cp

Shows the number of data segments sent/received and the number of characters sent/received.

d se cp

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

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

RES:Cp ------------------------------------------------------------------------
       Control_Port                                                            
       --- Cleared 4 days 04:17:43 ago, on 21/09/2017 at 09:03:24 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        908|        105|CHAR       |      48823|        713|
       ------------------------------------------------------------------------
[11:09:16] ABILIS_CPX:d se cp

RES:Cp ------------------------------------------------------------------------
       Control_Port                                                            
       --- Cleared 1 days 20:04:02 ago, on 18/05/2015 at 13:00:32 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |       3342|        229|CHAR       |     193446|       2557|
       ------------------------------------------------------------------------
       - Sessions statistics --------------------------------------------------
       Ses:1
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |       2634|        191|CHAR       |     151577|       1934|
       ------------------------------------------------------------------------
       Ses:2
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        708|         38|CHAR       |      41869|        623|
       ------------------------------------------------------------------------
       Ses:3
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       ------------------------------------------------------------------------
       Ses:4
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       ------------------------------------------------------------------------

With reference to the shown interval of time («Cleared 1 days 20:04:02 ago») these counters show the number of:

SEGNumber of incoming/outgoing data segments..
CHARNumber of incoming/outgoing characters.

22.2.3. CP sessions status

To display the communication sessions status of the CP resource the following commands are used:

d c cp

Shows the current state of sessions.

d ce cp

Shows the current state of sessions in extended format.

[11:09:16] ABILIS_CPX:d c cp

Res:        Ses:  State:     Clr:/Res:   Ses:  [Cg:/Cd:]                Id:/Pr:
-------------------------------------------------------------------------------
Cp          1     CONN FROM  Telnet      4                              0  
            2     UP         F0,D0
            3     UP         F0,B0
            4     UP         F0,B0
-------------------------------------------------------------------------------
[11:09:16] ABILIS_CPX:d ce cp

RES:Cp
    SES:1   CONN FROM  RES:Telnet    SES:4  
            CG:                CD:00              PID:01000000 UD:cp
    SES:2   UP         CLR:F0,D0
    SES:3   UP         CLR:F0,B0
    SES:4   UP         CLR:F0,B0