API Guide

Parameters
user user-id Enter an OS10 username.
all Displays login statistics for all system users.
Default Not configured
Command Mode EXEC
Usage
Information
Only the sysadmin and secadmin roles can access this command. The show output displays login
information for system users, including the number of successful and failed logins, role changes, and the
last time a user logged in.
Example
OS10# show login-statistics all
Display statistics upon user login: Enabled
Time-frame in days: 25
#Fail
since During
Role last Timeframe Last Login
User Change Login #Fail #Success Date/Time Location
-------- ----- ----- -------------- ------------------ ----------
admin False 0 1 13 2017-11-02T16:02:44Z in
netadmin False 0 0 5 2017-11-02T15:59:04Z (00:00)
mltest False 0 0 1 2017-11-01T15:42:07Z 1001:10:16:210::4001
OS10# show login-statistics user mltest
User : mltest
Role changed since last login : False
Failures since last login : 0
Time-frame in days : 25
Failures in time period : 0
Successes in time period : 1
Last Login Time : 2017-11-01T15:42:07Z
Last Login Location : 1001:10:16:210::4001
Supported Releases
10.4.0E(R1) or later
Audit log
To monitor user activity and configuration changes on the switch, enable the audit log. Only the sysadmin and secadmin
roles can enable, view, and clear the audit log.
The audit log records configuration and security events, including:
User logins and logouts on the switch, failed logins, and concurrent login attempts by a user
User-based configuration changes recorded with the user ID, date, and time of the change. The specific parameter changes
are not logged.
Establishment of secure traffic flows, such as SSH, and violations on secure flows
Certificate issues, including user access and changes made to certificate installation using crypto commands
Adding and deleting users
Audit log entries are saved locally and sent to configured Syslog servers. To set up a Syslog server, see System logging.
Enable audit log
Enable configuration and security event recording in the audit log on Syslog servers in CONFIGURATION mode.
logging audit enable
To disable audit logging, use the no logging audit enable command.
View audit log
Security
1051