24.2. TELNET diagnostics and statistics

24.2.1. TELNET diagnostics

This command reports the current situation of the TELNET resource:

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

RES:Telnet --------------------------------------------------------------------
       Telnet_Server_and_Client_entities                                       
       STATE:READY
       - Telnet Sessions ------------------------------------------------------
       SES 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.029.254-23    192.168.020.104-36540
       5   SERV READY     LISTEN    000.000.000.000-23    
       6   SERV READY     LISTEN    000.000.000.000-23    

The meaning:

TYPE

Type of Telnet session:

  • CLNT - client.

  • SERV - server.

X25-State

State of the X25 resource session:

  • READY - session is available.

  • CONNECTED - session is connected.

  • CLEARED - session is confirming an incoming clear.

TCP-State

State of the TCP resource session:

  • READY - session is available.

  • CONNECTED - session is connected.

  • CLEARED - session is confirming an incoming clear.

  • LISTEN - session is listening.

LocAdd-LocPort

Local IP Address and Local Port.

RemAdd-RemPort

Remote IP Address and Remote Port.

24.2.2. TELNET statistics

This command can help to understand what is happening, in case of troubles:

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

RES:Telnet --------------------------------------------------------------------
       Telnet_Server_and_Client_entities                                       
       --- Cleared 3 days 07:12:47 ago, on 25/08/2017 at 02:02:45 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |         10|          4|CHAR       |        225|         25|
       PCK        |          9|          4|CALL       |          0|          1|
       RESET      |          0|          0|DENIED-IP  |          0|           |
       BANNED-IP  |         18|           |
       ------------------------------------------------------------------------
[18:06:40] ABILIS_CPX:d se telnet

RES:Telnet --------------------------------------------------------------------
       Telnet_Server_and_Client_entities                                       
       --- Cleared 3 days 07:12:54 ago, on 25/08/2017 at 02:02:44 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |         22|          5|CHAR       |        946|         37|
       PCK        |         12|          5|CALL       |          0|          1|
       RESET      |          0|          0|DENIED-IP  |          0|           |
       BANNED-IP  |         18|           |
       ------------------------------------------------------------------------
       - Telnet Sessions ------------------------------------------------------
       SES TYPE X25-State TCP-State LocAdd-LocPort        RemAdd-RemPort
       ------------------------------------------------------------------------
       1   CLNT READY     READY                           
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       PCK        |          0|          0|CALL       |          0|          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.029.254-23    192.168.020.104-36540
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |         22|          5|CHAR       |        946|         37|
       PCK        |         12|          5|CALL       |          0|          1|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
       5   SERV READY     LISTEN    000.000.000.000-23    
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       PCK        |          0|          0|CALL       |          0|          0|
       RESET      |          0|          0|
       ------------------------------------------------------------------------
       6   SERV READY     LISTEN    000.000.000.000-23    
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       SEG        |          0|          0|CHAR       |          0|          0|
       PCK        |          0|          0|CALL       |          0|          0|
       RESET      |          0|          0|
       ------------------------------------------------------------------------

With reference to the shown interval of time («Cleared 3 days 07:12:54 ago») these counters show the number of:

SEGIncoming/outgoing segments.
PCKIncoming/outgoing packets.
RESET Incoming/outgoing resets.
CHARIncoming/outgoing bytes.
CALLIncoming/outgoing calls.
DENIED-IPRequests that was discarded because the source IP was not allowed.
BANNED-IPRequests that was discarded because the source IP was banned by IPBAN service.

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