cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1344
Views
0
Helpful
3
Replies

EEM Script to parse log buffer for current date

mlossmann
Level 1
Level 1

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 3

Joe Clarke
Cisco Employee
Cisco Employee

Try using $_event_pub_time within your applet.

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

Anywhere in a string within an action is fine.