17.2. CP diagnostics and statistics

17.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 

17.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 1 days 20:03:40 ago, on 18/05/2015 at 13:00:32 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |       3333|        228|CHAR       |     192936|       2549|
       ------------------------------------------------------------------------
[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|
       ------------------------------------------------------------------------

17.2.3. CP sessions status

To display the communication sessions status for 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