11-25-2016 06:23 AM - last edited on 03-25-2019 01:57 PM by ciscomoderator
Hi,
How is it possible to log login attempts on a Nexus9k?
The IOS command login on-success log does not seem to be supported.
Thanks,
Chris
08-29-2017 12:21 PM
I see this post is old but thought I was chime in anyways in case anyone else is looking for this answer... In order to log login attempts in NX-OS, you have to change the log level of the "authpriv" facility. From priv-exec mode on the Nexus, go into global configuration mode and lower the logging level of "authpriv" to 5. By default it is level 3, which only logs errors. Level 5 gives notifications On the switch it looks like:
"
switch# config t
switch(config)# logging level authpriv 5
"
The log messages look a little messy but it does give username and login attempt
That's it.
05-20-2020 11:36 AM
05-22-2020 12:00 PM
It only shows failed login not successful login.
I am running same at one of my customer Nexus 9500 core switches running 7.0(3)I7(4).
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