EEM: email

Answered Question
Jan 13th, 2009
User Badges:

Greetings,

I have started playing around with Event manager applets and have run into something I don't understand.

I have created a small applet that sends an email when an ospf neighbour goes down.

I get the email fine, but the _$syslog_msg text is written in the subject line of the email instead of in the body.


Conf:

event manager applet ospf

event syslog pattern "Nbr 192.168.1.2 on FastEthernet0 from FULL to DOWN, Neighbor Down:"

action 1.0 mail server "x.x.x.x" to "[email protected]" from "[email protected]" subject "SYSLOG" body "$_syslog_msg"


Router is a 1801 running IOS version 12.4(15)XY4.

Am I missing something?


Correct Answer by Joe Clarke about 8 years 2 months ago

This is my bug CSCsl53037. It's fixed in 12.4(15)T2.


Symptom:


Emails originating from Embedded Event Manager (EEM) applets do not have proper subject and body components. Instead, the body is appended to the end of the Subject: line, and the actual body of the message is empty.


Conditions:


This occurs when sending email from EEM applets.


Workaround:


Using an EEM TCL policy instead offers more flexibility when sending email. See http://www.cisco.com/en/US/products/ps6017/products_feature_guide_chapter09186a00804d343f.html for more on writing EEM policies using TCL.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Tue, 01/13/2009 - 13:27
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This is my bug CSCsl53037. It's fixed in 12.4(15)T2.


Symptom:


Emails originating from Embedded Event Manager (EEM) applets do not have proper subject and body components. Instead, the body is appended to the end of the Subject: line, and the actual body of the message is empty.


Conditions:


This occurs when sending email from EEM applets.


Workaround:


Using an EEM TCL policy instead offers more flexibility when sending email. See http://www.cisco.com/en/US/products/ps6017/products_feature_guide_chapter09186a00804d343f.html for more on writing EEM policies using TCL.

Actions

This Discussion