cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
894
Views
0
Helpful
1
Replies

send email on login on nexus9k

i want to send an email on a successful login on a nexus 9k.

therfore i have this applet:

event manager applet login

  event syslog pattern "AUTHPRIV-5-SYSTEM_MSG"

  action 1.0 cli show users

  action 2.0 cli callhome send eem subject "login" body "$_cli_result"

i receive an email on a login but it seems that the $_cli_result variable is empty.

has anyone an idea or another approach how to realize this other than with smart call home?

thanks,

chris

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

I don't think the EEM on the N9K supports a $_cli_result environment variable.  You might try having EEM call a Python script that does the CLI you want.

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: