03-06-2007 10:25 AM
I need to be able to generate either sn SNMP trap or a syslog message when ever someone logs into or out of a IOS router or switch. This is for successful logins.outs.
03-06-2007 12:15 PM
James
This has been a request many times from many people. And in release 12.3(4)T Cisco introduced enhancements that make this possible:
Logging messages can be generated for successful login requests via the new global configuration command login on-success; the login on-failure command generates logs for failed login requests.
For more information this link is very helpful:
http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a0080455b93.html
HTH
Rick
03-06-2007 12:20 PM
Rick,
Thanks for the reply. My Cisco SE had informed me of the same new feature. It doesn't quite do what we want. It does not include the username of the person logging in, although there is a field for it, nor does it send a message when the user logs out. In addition, I wasn't able to get the "login on-failure" feature to work in the 12.2(35)SE switch code I was using to test.
Thanks again.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide