16.2. CP diagnostics and statistics

16.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
[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

16.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 0 days 00:47:57 ago, on 14/01/2011 at 09:52:54 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        200|         17|CHAR       |      10738|        105|
       ------------------------------------------------------------------------
[11:09:16] ABILIS_CPX:d se cp

RES:Cp ------------------------------------------------------------------------
       Control_Port                                                            
       --- Cleared 0 days 00:48:50 ago, on 14/01/2011 at 09:52:55 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        209|         18|CHAR       |      11252|        113|
       ------------------------------------------------------------------------
       - Sessions statistics --------------------------------------------------
       Ses:1
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        209|         18|CHAR       |      11252|        113|
       ------------------------------------------------------------------------
       Ses:2
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       ------------------------------------------------------------------------
       Ses:3
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       ------------------------------------------------------------------------

16.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  Ssh         4                              0
            2     UP         00,00
            3     UP         F0,B0
-------------------------------------------------------------------------------
[11:09:16] ABILIS_CPX:d ce cp

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