cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1213
Views
0
Helpful
3
Replies

Logging failed logons on 2960-X

Lisa29236
Level 1
Level 1

I have noticed that the 2960-X switch only logs successful logins, but not failed ones (at least I have failed to configure it). It would be really interesting to get log messages for failed logins. Anyone who knows how to do this?

3 Replies 3

Hello Lisa,

 

Following are the commands for login failed and success to get logged.

 

login on-failure log
login on-success log

 

***Please rate all helpful posts***

Spooster IT Services Team

balaji.bandi
Hall of Fame
Hall of Fame

login on-failure log

login on-success log

 

 

make sure you are not fall under this version and bug :

 

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCud90069/?rfs=iqvred

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Tagir Temirgaliyev
Spotlight
Spotlight

If you think about access security, You can create a list of allowed IP adresses, and you can log all attempts, permitted and not permitted

 

ip access-list standard MGMT_Access
permit 192.168.65.11 log
permit 192.168.65.130 log
deny any log

!
line vty 0 15
access-class MGMT_Access in
exec-timeout 30 0
absolute-timeout 300
logging synchronous
login local
transport input ssh

 

 

You can create a simple ansible script to apply this config to all cisco devices in one click and even not cisco too

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card