cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2614
Views
5
Helpful
3
Replies

Generate SYSLOG message on user login for Nexus

IOS has the command "login on-success log" to do this, but I cannot find something similiar for NX-OS. Is there a way in Nexus that I can generate a SYSLOG message whenever a user logs into the device?

Ultimately I am trying to generate at least one log message a day for our switches. They are not used frequently, so my security guys want an easy way to make sure log messages are still coming through for them. I have RANCID logging in every morning, but I would prefer to not update the scripts to enter enable mode to generate a message.

3 Replies 3

jwmolenaar
Beginner
Beginner

Hi,

If you just want to generate a syslog messages You can do this using an EEM script.

Sent from Cisco Technical Support iPhone App

Thanks for the reply.

Is anyone aware of an easier way? Ideally I could do it with a one-liner that I am not aware of. If not I will look at enabling EEM.

I was able to get what I need by lowering the logging level of the authpriv service to match what my syslog levels are, in this case 5.

logging level authpriv 5

It's a bit chatty, generates 4 messages on login, but it will do the job.

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:

Recognize Your Peers