07-11-2013 07:23 AM
I generated EEM script for Duplicate IP address detection, but i do not know how to trigger email in NxOS.
event manager environment emailto "xyz@abc.com"
event manager applet Duplicate_IP
description "Detect Duplicate IP and Send Trap"
event syslog pattern "%ARP-2-DUP_SRC_IP"
action 1.0 snmp-trap strdata "Duplicate IP Detected on Host $hostname"
action 2.0 cli sh logg last 100
action 3.0 event-default
Somebody know how to trigger email. There is no good document on EEM email triggering mechanism.
07-11-2013 07:46 AM
This is not currently possible on NX-OS. NX-OS 7.0 will officially support calling a script (Tcl, Python) from an EEM applet, so one will be able to use a script to trigger the email.
08-14-2013 03:28 PM
Hello Joseph,
Will Nexus 7k support calling a script this year?
08-14-2013 03:45 PM
I haven't seen a roadmap on NX-OS 7.0. I'm not certain when it will be released.
08-18-2014 07:23 AM
I'd like to implement this as well directly from NX-OS without have to rely on a remote syslog server to email me on syslog messages.
08-22-2014 01:30 PM
Not sure if this would work in NxOS but I think it would go something like this;
Specify the action of sending a short e-mail when the EEM applet is triggered via the event syslog pattern you already have defined:
Router(config-applet)# action label mail server server-address to to-address from from-address subject subject body body-text
Remember to define the EEM environment variables first when setting up the applet as follows:
event manager environment _email_server
event manager environment _email_to
event manager environment _email_from
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