Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

EEM Script to parse log buffer for current date

Greetings,

I have a EEM script that looks for OSPF down/full neighbors, but I am wondering if there is a way that I can have the EEM Script look for the current date that the script was run?

For example, if I have an OSPF neighbor go down, is there a way that I could only show the date and time (+/- 10 minutes) to show up in the email alert?

Thanks in advance for any help.

-Mike

3 REPLIES
Cisco Employee

EEM Script to parse log buffer for current date

Try using $_event_pub_time within your applet.

New Member

EEM Script to parse log buffer for current date

Thanks for the reply Joseph.  Would this go into my "action" where I have the email generated?  If so, is there any specific place it should go or anywhere in the action is fine

-Mike

Cisco Employee

EEM Script to parse log buffer for current date

Anywhere in a string within an action is fine.

172
Views
0
Helpful
3
Replies