Dell Command Line Reference Guide for the S4048–ON System 9.14.2.5

PDF

show login statistics

Displays login statistics of users who have used the console or virtual terminal lines to log in to the system.

Syntax
show login statistics [all | [[successful-attempts | unsuccessful-attempts] [user login-id] [time-period days]] | user login-id]
Parameters
all

(Optional)Displays the login statistics of all users in the last 30 days or the custom defined time period.

time-period days

(Optional)Displays the number of failed login attempts by the current user in the specified period.

successful-attempts

(Optional)Displays the number of successful login attempts by the current user in the last 30 days or the custom defined time period

unsuccessful-attempts

(Optional)Displays the number of failed login attempts by the current user in the last 30 days or the custom defined time period.

user login-id

(Optional)Displays the login statistics of a specific user in the last 30 days or the custom defined time period. When you use it with the unsuccessful-attempts keyword, the system displays the number of failed login attempts by a specific user in the last 30 days or the custom defined time period

Defaults
None
Command Modes
CONFIGURATION
Command History

This guide is platform-specific. For command information about other platforms, see the relevant Dell EMC Networking OS Command Line Reference Guide.

Version
Description
9.10(0.1)
Introduced on the S6010-ON and S4048T-ON.
9.10(0.0)
Introduced on the S3148.
9.10(0.0)
Introduced the successful-attempts keyword.
9.8(2.0)
Introduced on the S3100 series.
9.8(1.0)
Introduced on the Z9100–ON.
9.8(0.0P5)
Introduced on the S4048-ON.
9.8(0.0P2)
Introduced on the S3048-ON.
9.8(0.0)
Introduced on the S4810, S4820, S5000, S6000, S6000-ON, and Z9500.
Usage Information

To view the successful and failed login details of the current user in the last 30 days or the custom defined period, use the show login statistics command.

To view the successful and failed login details of all users in the last 30 days or the custom defined period, use the show login statistics all command. You can use this command only if you have system or security administrator rights.

To view the successful and failed login details of a specific user in the last 30 days or the custom defined time period, use the show login statistics user user-id command. If you have system or security administrator rights, you can view the login statistics of other users. If you do not have system or security administrator rights, you can view your login statistics but not the login statistics of others.

NOTE: By default, these commands display the details for the last 30 days. If you set a custom-defined time period for login statistics using the login statistics time-period days command, these commands display details only for that period.
Example

The following is sample output of the show login statistics command.

DellEMC#show login statistics

------------------------------------------------------------------
User: admin
Last login time: 12:52:01 UTC Tue Mar 22 2016
Last login location: Line vty0 ( 10.16.127.143 )
Unsuccessful login attempt(s) since the last successful login: 0
Unsuccessful login attempt(s) in last 30 day(s): 0
Successful login attempt(s) in last 30 day(s): 1
------------------------------------------------------------------

The following is sample output of the show login statistics all command.

DellEMC#show login statistics all

------------------------------------------------------------------
User: admin
Last login time: 08:54:28 UTC Wed Mar 23 2016
Last login location: Line vty0 ( 10.16.127.145 )
Unsuccessful login attempt(s) since the last successful login: 0
Unsuccessful login attempt(s) in last 30 day(s): 3
Successful login attempt(s) in last 30 day(s): 4
------------------------------------------------------------------

------------------------------------------------------------------
User: admin1
Last login time: 12:49:19 UTC Tue Mar 22 2016
Last login location: Line vty0 ( 10.16.127.145 )
Unsuccessful login attempt(s) since the last successful login: 0
Unsuccessful login attempt(s) in last 30 day(s): 3
Successful login attempt(s) in last 30 day(s): 2
------------------------------------------------------------------

------------------------------------------------------------------
User: admin2
Last login time: 12:49:27 UTC Tue Mar 22 2016
Last login location: Line vty0 ( 10.16.127.145 )
Unsuccessful login attempt(s) since the last successful login: 0
Unsuccessful login attempt(s) in last 30 day(s): 3
Successful login attempt(s) in last 30 day(s): 2
------------------------------------------------------------------

------------------------------------------------------------------
User: admin3
Last login time: 13:18:42 UTC Tue Mar 22 2016
Last login location: Line vty0 ( 10.16.127.145 )
Unsuccessful login attempt(s) since the last successful login: 0
Unsuccessful login attempt(s) in last 30 day(s): 3
Successful login attempt(s) in last 30 day(s): 2

The following is sample output of the show login statistics user user-id command.

DellEMC# show login statistics user admin

------------------------------------------------------------------
User: admin
Last login time: 12:52:01 UTC Tue Mar 22 2016
Last login location: Line vty0 ( 10.16.127.143 )
Unsuccessful login attempt(s) since the last successful login: 0
Unsuccessful login attempt(s) in last 30 day(s): 0
Successful login attempt(s) in last 30 day(s): 1
------------------------------------------------------------------

The following is sample output of the show login statistics unsuccessful-attempts command.

DellEMC#show login statistics unsuccessful-attempts
There were 3 unsuccessful login attempt(s) for user admin in last 30 day(s).

The following is sample output of the show login statistics unsuccessful-attempts time-period days command.

DellEMC# show login statistics unsuccessful-attempts time-period 15
There were 0 unsuccessful login attempt(s) for user admin in last 15 day(s).

The following is sample output of the show login statistics unsuccessful-attempts user login-id command.

DellEMC# show login statistics unsuccessful-attempts user admin
There were 3 unsuccessful login attempt(s) for user admin in last 12 day(s).

The following is sample output of the show login statistics successful-attempts command.

DellEMC#show login statistics successful-attempts
There were 4 successful login attempt(s) for user admin in last 30 day(s).
Related Commands
  • login statistics — enable and configure user login statistics on console and virtual terminal lines.
  • login concurrent-session — configures the limit of concurrent sessions for each user on console and virtual terminal lines.

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\