17.2. TELNET diagnostics and statistics

17.2.1. TELNET diagnostics

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

d d telnet / d de telnet

Shows diagnostic information, such as the state of the client and server, the local and the remote addresses-ports connected to the resource, etc..

[17:58:20] ABILIS_CPX:d d telnet

RES:Telnet --------------------------------------------------------------------
       Telnet_Server_and_Client_entities
       STATE:READY
       - Telnet Channels ------------------------------------------------------
       CH TYPE X25-State TCP-State LocAdd-LocPort        RemAdd-RemPort
       ------------------------------------------------------------------------
       1  CLNT READY     READY
       2  CLNT READY     READY
       3  CLNT READY     READY
       4  SERV CONNECTED CONNECTED 192.168.000.251-23    192.168.000.029-3113
       5  SERV READY     LISTEN    000.000.000.000-23
       6  SERV READY     LISTEN    000.000.000.000-23

17.2.2. TELNET statistics

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

d s telnet

Shows statistic information, such as number of segments received/sent, number of characters received/sent, number of packets received/sent, number of calls sent/received and number of resets sent/received.

d se telnet

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

[18:06:18] ABILIS_CPX:d s telnet

RES:Telnet --------------------------------------------------------------------
       Telnet_Server_and_Client_entities
       --- Cleared 009:23:37:23 ago, on 20/10/2006 at 18:29:17 ----------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        710|         89|CHAR       |      41057|        829|
       PCK        |        181|         88|CALL       |          3|         26|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
[18:06:40] ABILIS_CPX:d se telnet

RES:Telnet --------------------------------------------------------------------
       Telnet_Server_and_Client_entities
       --- Cleared 009:23:37:32 ago, on 20/10/2006 at 18:29:17 ----------------
       - Telnet Channels ------------------------------------------------------
       CH TYPE X25-State TCP-State LocAdd-LocPort        RemAdd-RemPort
       ------------------------------------------------------------------------
       1  CLNT READY     READY
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |         11|         48|CHAR       |         44|        258|
       PCK        |         11|         48|CALL       |          3|          0|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
       2  CLNT READY     READY
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       PCK        |          0|          0|CALL       |          0|          0|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
       3  CLNT READY     READY
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       PCK        |          0|          0|CALL       |          0|          0|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
       4  SERV CONNECTED CONNECTED 192.168.000.251-23    192.168.000.029-3113
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        376|         22|CHAR       |      22301|        332|
       PCK        |         85|         22|CALL       |          0|          9|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
       5  SERV READY     LISTEN    000.000.000.000-23
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |        260|         14|CHAR       |      15251|        146|
       PCK        |         66|         14|CALL       |          0|          8|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
       6  SERV READY     LISTEN    000.000.000.000-23
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |         74|          6|CHAR       |       4104|        105|
       PCK        |         22|          5|CALL       |          0|          9|
       RESET      |          0|          0|
       ------------------------------------------------------------------------

17.2.3. TELNET session status

To display the communication sessions status for the TELNET resource the following commands are used:

d c telnet

Shows the current state of sessions.

d ce telnet

Shows the current state of sessions in extended format.

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

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

RES:Telnet
    SES:1   UP         CLR:F0,B0
    SES:2   UP         CLR:F0,B0
    SES:3   CONN TO    RES:Cp        SES:1
            CG:                CD:00              PID:01000000 UD:CP
            IPSRC:192.168.000.025
    SES:4   UP         CLR:F0,D0
    SES:5   UP         CLR:00,00
    SES:6   UP         CLR:F0,D0