CLI Guide

login statistics
Enable and configure user login statistics on console and virtual terminal lines.
Syntax
login statistics {enable | time-period days}
no login statistics {enable | time-period days}
Parameters
enable
Enables user login statistics. By default, the system displays
the login statistics for the last 30 days.
time-period days
Sets the number of days for which the system stores the
user login statistics. The range is from 1 to 30.
Defaults Not configured
Command Modes CONFIGURATION
Supported Modes Full–Switch
Command History
Version Description
9.9(0.0) Introduced on the FN IOM.
9.8(0.0) Introduced on the MXL 10/40GbE Switch IO Module.
Usage Information
Only the system and security administrators can configure login activity tracking
and view the login activity details of other users.
If you enable user login statistics, the system displays the last successful login
details of the current user and the details of any failed login attempts by others.
If you use the login statistics time-period days command to set a
custom time period, the system only reports the login statistics during that interval.
NOTE: Login statistics is not applicable for login sessions that do not use user
names for authentication. For example, the system does not report login
activity for a telnet session that prompts only a password field.
Example
When you login to the system, it displays a message similar to the following:
$ telnet 10.11.178.14
Trying 10.11.178.14...
Connected to 10.11.178.14.
Escape character is '^]'.
Login: admin
Password:
Last successful login: Mon Feb 16 04:36:11 2015 Line vty0
( 10.14.1.97 ).
There were 2 unsuccessful login attempt(s) since the last
successful login.
Control and Monitoring
109