cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7384
Views
7
Helpful
3
Replies

nexus login logging

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

3 Replies 3

gwinn.joe
Level 1
Level 1

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.

So this doesn't seem to be working on a N9Ks running 9.3.3? Did it ever work on the 9000s? I also saw an even older thread that someone had to set the level on auth, not authpriv to 5. But neither is working for me. Checked both logfile and monitor. Both are set for Severity:notification. But nada. Failed logins show up, but nothing for successful logins.

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).

Review Cisco Networking for a $25 gift card