cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2264
Views
0
Helpful
2
Replies

EEM absolute timer issue

joe_quinn
Level 1
Level 1

Hi all,

I've seen an issue with the timer policy between EEM versions. The absolute timer "time" field is supposed to be the number of seconds since January 1 1970. This is the behaviour i am seeing on EEM 4.0.

I have 2 older devices, a 3600 and a 1700 that i am testing with and I am seeing different behaviour.

When i view the configured policy it shows the date as being 26 Jan 1970 whereas the same policy on the device with EEM 4.0 shows the date as being today.

Was there a version of EEM where the meaning of the time field was changed, e.g. went from milliseconds since epoch to seconds since epoch or could there have been a bug with earlier EEM versions?

On

C1700 Software (C1700-ENTSERVICESK9-M), Version 12.4(15)T, RELEASE SOFTWARE (fc3)

::cisco::eem::event_register_timer absolute time 1355148240 name timerets maxrun 0

Gives a date of

Mon Jan 26 1970 20:25:41.760

On

Version 15.2(2r)T, RELEASE SOFTWARE (fc1)

::cisco::eem::event_register_timer absolute time 1355147040 name timertest maxrun 0

Gives a date of

Mon Dec 10 2012 13:44:00.000

This document is what i follow for the correct use of variables:

http://www.cisco.com/en/US/docs/ios/netmgmt/configuration/guide/nm_eem_policy_tcl.pdf

Cheers,

Joe.

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

I know of no one else using this timer, so it's very likely that you have found a bug.  I couldn't locate one that describes this, though.  From what I've seen, it doesn't appear to me milliseconds exactly.  When I take 1355148.240 ms, I get

Fri Jan 16 11:25:48 1970.  I see a lot of code changes in this area, so it wouldn't surprise me if this bug was squashed anonymously.

Hi Jospeh,

I have applied the same policy as Joe on a 2691 with similar results:

::cisco::eem::event_register_timer absolute time 1355218200 name timertest15 maxrun 0

software version

c2691-advipservicesk9-mz.124-15.T14

Regards

Review Cisco Networking for a $25 gift card