Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Monitoring the FTP Server

    You can use the dir command to monitor files on the FTP server. You can use the show ftp-server and show users commands to monitor settings of the FTP server. This topic describes the following:

    Monitoring the Information about the FTP Server

    Purpose

    Display information about the FTP server.

    Action

    To display information about the FTP server:

    host1#show ftp-server
    FTP Server state: enabled, 0 open connections
    Statistics since server was last started:
            attempts: 32
            failed hosts: 5
            failed users: 7
    Statistics since last system reload:
            attempts: 35
            failed hosts: 5
            failed users: 8

    Meaning

    Table 1 lists the show ftp-server command output fields.

    Table 1: show ftp-server Output Fields

    Field Name

    Field Description

    FTP Server state

    Status of the FTP server: enabled or disabled

    Open connections

    Number of open connections to the FTP server

    Statistics since server was last started

    Data about the connection attempts since you enabled the FTP server:

    • attempts—Number of attempts to connect
    • failed hosts—Number of connection attempts that failed because of disallowed host addresses
    • failed users—Number of connection attempts that failed because users were not authenticated

    Statistics since last system reload

    Data about the connection attempts since you last booted the system:

    • attempts—Number of attempts to connect
    • failed hosts—Number of connection attempts that failed because of disallowed host addresses
    • failed users—Number of connection attempts that failed because users were not authenticated

    Monitoring User Information of the vty Lines

    Purpose

    Display information about users of the vty lines.

    • You can specify the all keyword to view information for all configured lines (both connected and not connected).
    • You can specify the detail keyword to view detailed information.

    Action

    To display information about users of the vty lines:

    host1#show users
     line                             connected
    number     line name      user       from      connected since
    ------   --------------   -----   ----------   ----------------
    0*       console 0                console      02/12/2001 19:57
    4        vty 3 (ftp)      fred    10.10.0.64   02/12/2001 20:04
    5        vty 4 (telnet)           10.10.0.64   02/12/2001 20:04
    Note: '*' indicates current user.

    To display detailed information about users of the vty lines:

    host1#show users detail
     line                             connected                          idle
    number     line name      user       from       connected since      time
    ------   --------------   ----   ------------   ----------------   --------
    0        console 0               console        08/14/2003 08:01   00:23:50
    1*       vty 0 (telnet)          10.10.120.90   08/15/2003 10:37
     line    virtual   privilege
    number   router      level      current command
    ------   -------   ---------   -----------------
    0        default   10
    1*       default   10          show users detail
    Note: '*' indicates current user. 

    Meaning

    Table 2 lists the show users command output fields.

    Table 2: show users Output Fields

    Field Name

    Field Description

    line number

    Number of the line to which the user is connected

    line name

    Name of the line, the service the line offers, and the relative line number

    user

    Name of the user

    connected from

    Location or IP address of the user

    connected since

    Date and time that the user connected to the line

    idle time

    Amount of time it has been since an entry was made from this line (detail only)

    virtual router

    Virtual router used by this line user (detail only)

    privilege level

    Privilege level of this line user (detail only)

    current command

    Command currently being executed by the user over this line (detail only)

    Published: 2014-08-12