cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1195
Views
0
Helpful
7
Replies

eem in nexus 3064

master8494
Level 1
Level 1

helo

i have a cisco router and i did this eem script to send an email and it is working well :

event manager environment _email_to gg@testmail.com
event manager environment _email_server 192.168.65.3
event manager environment _email_from user1:cisco1234@testmail.com
event manager applet email
event syslog pattern "Interface Loopback1, changed state to down"
action 1.5 cli command "enable"
action 2.0 cli command "show users"
action 2.5 cli command "show int fa0/0"
action 8.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "Interface Loopback1, changed state to down" body "$_cli_result"
action 9.0 syslog msg "E-mail was sent"

 

now i want to do it in cisco nexus 3064 but it is not support

the mail server in action 8.0

and not support 

event manager environment _email_to gg@testmail.com
event manager environment _email_server 192.168.65.3
event manager environment _email_from user1:cisco1234@testmail.com

is there a solution for this please

7 Replies 7

Hello,

 

try the syntax below:

 

event manager environment email_to "gg@testmail.com"
event manager environment email_server "192.168.65.3"
event manager environment email_from "user1:cisco1234@testmail.com"

master8494
Level 1
Level 1

Thank you for reply but it's not working

event manager environment _email_to gg@testmail.com -> 

event manager environment emailto “admin@anyplace.com”

master8494
Level 1
Level 1

Thank you it's working for event environment but the action 8.0 (action 8.0 mail server "$_email_server") it's not working any solution please

balaji.bandi
Hall of Fame
Hall of Fame

as i remember last time i test this was worked :

 

action 8.0 mail server "10.10.10.10" to "balaji.bandi@mydomain.com" from "nexus@mydomain.com" subject "WAN 1 Link Failed" body "WAN link Failed required Investigation"

 

Later we moved to Syslog and another alert system. let us know if that works., also look Logs what is the error?

 

Alternative you can use python email :

 

http://sjston.blogspot.com/2019/07/cisco-ip-sla-with-eem-email-alerts-on.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

master8494
Level 1
Level 1

Thank you for reply but there is no mail server command in my switch as i attached the picture i am using nexus ios nxos.7.0.3.I6.2 i don't know if there is any option or feature i miss

Again thank you for your help

balaji.bandi
Hall of Fame
Hall of Fame

Let me check again the commands.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help