34.3. FTP diagnostics and statistics

34.3.1. FTP diagnostics

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

d d ftp / d de ftp

Shows diagnostic information such as the state of the resource, the maximum number of clients allowed, the number of current CONNECTED/LOGGED/DATA-SESSION (for PLAIN o SSL mode), the maximum number of CONNECTED/LOGES/DATA-SESSION reached from start-up (for PLAIN o SSL mode), the IP addresses and ports of clients connected, etc.

[19:00:30] ABILIS_CPX:d d ftp

RES:Ftp -----------------------------------------------------------------------
       File_Transfer_Protocol_Server                                           
       STATE:ACTIVE            MAX-CLI:4
       -- Clients --------|--TOT CUR---|--TOT PEAK--|--SSL CUR---|--SSL PEAK--|
       CONNECTED          |           1|           1|           0|           0|
       LOGGED             |           1|            |           0|            |
       DATA-SESSION       |           0|           0|           0|           0|
       ------------------------------------------------------------------------
       -- Sessions states -----------------------------------------------------
       SES C-STATE C-REM                 C-LOC                 USER
           D-STATE D-REM                 D-LOC
       ------------------------------------------------------------------------
         1 LOGGED  192.168.020.104-43892 192.168.029.254-21    admin
           READY   000.000.000.000-0     000.000.000.000-0     

34.3.2. FTP statistics

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

d s ftp

Shows the number of sent/received characters and packets for both data and control sessions, the number of received valid commands on control session and the number of sent responses.

d se ftp

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

[19:01:14] ABILIS_CPX:d s ftp

RES:Ftp -----------------------------------------------------------------------
       File_Transfer_Protocol_Server                                           
       --- Cleared 0 days 00:11:20 ago, on 05/06/2015 at 14:03:55 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CTRL-CHR   |        110|        300|CTRL-PCK   |          9|         10|
       DATA-CHR   |          0|          0|DATA-PCK   |          0|          0|
       COMMAND    |          9|           |REPLY      |           |         10|
       DENIED-IP  |          0|           |BANNED-IP  |          0|           |
       ------------------------------------------------------------------------
[19:02:03] ABILIS_CPX:d se ftp

RES:Ftp -----------------------------------------------------------------------
       File_Transfer_Protocol_Server                                           
       --- Cleared 0 days 00:11:59 ago, on 05/06/2015 at 14:03:55 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CTRL-CHR   |        144|        406|CTRL-PCK   |         11|         13|
       DATA-CHR   |          0|        242|DATA-PCK   |          0|          1|
       COMMAND    |         11|           |REPLY      |           |         13|
       DENIED-IP  |          0|           |BANNED-IP  |          0|           |
       ------------------------------------------------------------------------
       SES C-STATE C-REM                 C-LOC                 USER
           D-STATE D-REM                 D-LOC
       ------------------------------------------------------------------------
         1 LOGGED  192.168.020.104-43892 192.168.029.254-21    admin
           READY   000.000.000.000-0     000.000.000.000-0     
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CTRL-CHR   |        144|        388|CTRL-PCK   |         11|         12|
       DATA-CHR   |          0|        242|DATA-PCK   |          0|          1|
       COMMAND    |         11|           |REPLY      |           |         12|