EEM absolute timer issue

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.

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.

Similar Messages

  • EEM problem with "event timer absolute time"

    Hi
    I wanted to execute a EEM script at a certain time, 2015-05-04 03:00:00 GMT+2:00. So I used the "event timer absolute time" command.
    But the switch executed the script immediately. Is there something wrong with the script? Is there another way to execute a few commands at a certain time like this?
    Script:
    event manager applet CHANGE_TO_RAPID-PVST_v2
    event timer absolute time 1430701200
    action 1.0 cli command "enable"
    action 1.1 cli command "config t"
    action 2.0 cli command "spanning-tree mode rapid-pvst"
    action 2.1 cli command "end"
    action 3.0 syslog msg "Changed to Rapid-PVST by EEM script CHANGE_TO_RAPID-PVST_v2"
    Switch: WS-C3560X-24T-S
    IOS: 15.0(2)SE4
    EEM version 3.2
    #show event manager history events
    No. Job Id Proc Status Time of Event Event Type Name
    2 2 Actv success Thu Apr30 09:25:02 2015 timer absolute applet: CHANGE_TO_RAPID-PVST_v2
    I used this link to calcute the timer value. http://www.epochconverter.com/

    I honestly have never seen anyone use this timer.   You'd be better off using cron and removing the applet when it's done.
    That said, this does look like a bug.  Given the little use we've seen of this timer, it's likely a new one.  I recommend opening a TAC case so it can be tracked.

  • Waveform chart X-Axis reverses itself when upper limit is edited in Absolute Time - problem may be linked to Timestamp Control?

    I've seen this problem for some time now, and it still exists in the Silver toolset Waveform Chart in LV 2012.  If the chart is in strip mode, and you edit the upper limit value to a point in the future, the X-Axis will invert (higher values/ later time to the left), to the limit of the Chart History length.  This happens whether the chart is active (logging data on a compiled executable) or even when in design mode, though it's more consistent when there's data in the chart.  It's not history length related as far as I can tell, as I set the length to 7 days of sampling @ 1-second intervals (605K), and it happens when I try to set the end time to an hour in the future with only a few minutes of data collected - suddenly the right Absolute Time becomes the time my last sample point was collected, while the left Absolute Time becomes nearly 7 days in the future (so neither end point is what I was setting it to).
    It's nice that the chart gives the option of editing the limits, but as such, it's important that they work as you would expect them to.
    Also - until this is addressed, is there a way to lock it against editing?  Until a fix is made, my workaround is to put a transparent button over the range start & end points, and a transparent flat rectangle above all other mid-range points, and pop-up a data entry form with a Timestamp control to allow editing.  Unfortunately, this doesn't work as I would expect, as typing "11 AM" in the Timestamp control over a prior value of say "10:05:34.232 AM" ends up becoming "11:05:34.232 AM" instead.  ???  Another error - or is this by design?  If it's by design, is there an option to make it behave as I would prefer (11 AM = 11:00:00.000 AM), as Excel behaves with timestamps?  I can't help but suspect this may be linked to the chart axis issue.
    Also - I just built a simplified chart modeled somewhat on my current project, and could not get this to recur.  BUT... had the strangest thing happen:  My sample data was generated using the Trig functions for Sine and Cosine, and at one point my waveforms distorted on the display, so I'm attaching that here plus the simplified chart project.
    Last - my system is LV 2012 on Win7 Pro-x64.
    Thanks!
    Erik
    Attachments:
    Chart data distorted.png ‏45 KB
    Waveform Chart Flaw.zip ‏17 KB

    I am not so sure that this is a bug, and I have not been able to reproduce this behavior that you are describing. 
    But you can lock it from editing by right-clicking on the graph and go to Properties>>Appearance>>Enabled State --> Disabled
    Also, word of advice for the future: You will get more replies from the community with shorter posts and keeping it to one question per post. Summarize what the issue is, and put the detailed documentation and instructions to reproduce in the actual VI. 
    Huntington W
    National Instruments
    Applications Engineer
    ***Don't forget to give Kudos and Accepted as Solution where it is deserved***

  • How to update the absolute time value in waveform chart for labview 6i?

    Hey there,
    I'm developing a control system using labview 6i on win 2000 os.I'm receiving the sensor data every minute and i want to display the data on a waveform chart with absolute time scale on x-axes. I'm using the property nodes for the offset, multiplier and maximum values putting them outside the while loop and giving them input using get date/time in seconds function. the problem is that the time doesn't gets updated w/ refernce to the computer time and after a certain period the time shown on x-axes lags by several hours. any advise?

    Posting an example ussually help us nail these types of issues fast.
    I am therfore forced to guess.
    Do you have your code written such that the scale operations occur before the loop?
    The next thing I have to suspect (not being able to see your code) is if your dt is correct. If your dt is larger than what the chart is set for, then the time will fall behind.
    I have included an image showing how the chart can be used to show multiple sample rate plots such that the t0 of the readings are used to control how the readings are displayed. This example uses waveform data types (I believe they were available back in 6i). It should serve as a guide to do what you want.
    I suggest you start by recreating the demo and play with it until you have what
    you will need in your app.
    The beauty of this method is it lets you use the chart to plot signals acquired at different frequecies and plot them all together.
    reply to this answer if you have questions,
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Wform_demo.bmp ‏427 KB

  • Time issue- urgnt

    HI Expert !
    I m using this code .
    LTIME TYPE SY-UZEIT
    T1 TYPE SY-UZEIT VALUE 030000,
    T2 TYPE SY-UZEIT VALUE 050000,
    BUT WHEN I M USING T1 AND T2  in loop ( if  statement ),ITS value r
    T1 =  082000.
    t2  = 131100 .
    if  t1(6)  t2(6 )
    ltime (6 ).
    then ok . but in this i wont be able to make comparison in if statement
    how i can resolve this time issue
    i dont want to include timings between 3.00 a.m and 5.00 ,
    for this i have used this code but its not updating data for any employee , is this code correct or not.
    OPEN DATASET PA_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    DO.
    READ DATASET PA_FILE INTO REC.
    CLEAR WA_PUNCHES.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    WRITE: / REC.
    if NOT ( WA_SCORE-LTIME GE T1 AND WA_SCORE-LTIME LE T2 ) .
    AND
    ***( WA_SCORE-TERID NE TR3 AND
    ***WA_SCORE-TERID NE TR4 AND
    ***WA_SCORE-TERID NE TR5 AND
    ***WA_SCORE-TERID NE TR6 AND
    ***WA_SCORE-TERID NE TR7 AND
    ***WA_SCORE-TERID NE TR8 ) .
    WA_SCORE-PERNR = REC+0(8) .
    WA_SCORE-LDATE = REC+9(8) .
    WA_SCORE-LTIME = REC+18(6) .
    WA_SCORE-CANID = REC+25(8) .
    WA_SCORE-TERID = REC+34(4) .
    APPEND WA_SCORE TO IT_SCORE.
    ELSE .
    EXIT .
    ADD 1 TO COUNT.
    ENDIF .
    ENDDO.
    plz help me . its very imp. program .
    thanks

    Hi,
    Pass values in quotes
    T1 TYPE SY-UZEIT VALUE '030000',
    T2 TYPE SY-UZEIT VALUE '050000',
    Can you please check once again after making this change in debug mode, values of T1, T2 and LTIME.
    ashish

  • How do you add the absolute time and date to a spreadshee​t file?

    I am creating a spreadsheet file, and I want to write the absolute time and date to its first column. Does anybody know how to do this?
    Thank You,

    BrianL answer is still valid !
    Attached is an example file with an express vi configured to use the absolute time generated from a get time/date node.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Save with absolute time.vi ‏135 KB

  • Time issue seems odd to me

    I put a secondary domain and po at a remote location - running 8.03 on Sles/Oes and moved all of the "local" users to that po.
    while everything seems to run ok we have a weird time issue.
    Mail into and out of the new mailboxes shows a three and a half hour time difference both in the date column in the groupwise client and in the printed header of the email.
    The odd thing is that if I go to the properties of the email - the Creation date and the File date and time are both correct.
    I can't see any time issues with the servers (primary or secondary) and especially something that would be 3:30 minutes off
    there is a timezone difference between the pri and sec but that's just 1 hour.
    Any thoughts?
    As a workaround I have had my users add the creation column to see when they actually received the email as our clients have time critical projects.
    Thanks
    Dennis

    Danita,
    Thanks for the reply - Oh how I wish it were that easy - I've checked and double checked the PO object and the domain object - both say US eastern time.
    If I send email from a mailbox on the secondary to the primary - everything is correct (a 1 hour time difference - Eastern to Central)
    If I send mail from a mailbox on the primary to the secondary - it shows up right away, but says 3:30 minutes later than it should (in Date/Time, but not in Created)
    If I send email from a mailbox on the secondary to a GMail account - the header shows the 3:30 offset, but the properties of the mail shows correctly.
    I would be happy to send email from that po to anyone that wants to see for themselves.
    Other than the PO Object and the DOM object - Where should I be looking for a time difference
    and how would it be getting UTC minus 30 minutes - - Is there a special timezone out there for Hy Brasil?
    The workstations all get their time settings from "time.windows.com" the windows default.
    Thanks for looking into this - I just hope that I can get it figured out because as small of an issue that I think it is (they get their email, it just looks like it gets read before they officially receive it)
    but it seems that this office uses the received time to track how long it takes them to do their work.
    Dennis

  • Real time issue

    Hi all,
    Can any body plz send me some FICO real time issue on [email protected]
    and plz tell me hw shld I prepare for interview
    Thanks & Regards
    Vaibhav

    Hi Balraj,
    In the normal practice, developers will try to find the similer infocube (as per the requirement) in the Business content. But always you will not be lucky to find such infocube in Business content. You need to create at your own to suite the business requirements. Regarding the characteristcs & key figure, it 's again depend on the requirements. Calculated object can be assign as key figure like. Sales qty, revenue & net sales etc. where as Dimesion (characteritcs) will be purely depends on the reporting point of view. Like Customer, Material & Sales Document type etc.
    Hope this will help you !
    Thanks,
    Sanjiv

  • Execution Time Issue

    Help Please!!!
    I've been searching for an execution time issue in our application for a while now. Here is some background on the application:
    Collects analog data from a cDAQ chassis with a 9205 at 5kHz
    Data is collected in 100ms chunks
    Some of the data is saved directly to a TDMS file while the rest is averaged for a single data point. That single data point is saved to disk in a text file every 200ms.
    Problem: During operation, the VI that writes the data to the text file will periodically take many hundreds of milliseconds to execute. Normal operation execution times are on the order of 1ms or less. This issue will happen randomly during operation. It's usually many seconds between times that this occurs and it doesn't seem to have any pattern to when the event happens.
    Attached is a screenshot of the VI in question. The timing check labeled "A" is the one that will show the troubling execution time. All the other timing checks show 0ms every time this issue occurs. I simply can't see what else is holding this thing up. The only unchecked subVI is the "append error call chain" call. I've gone through the heirarchy of that VI and ensured that everything is set for reentrant execution. I will check that too soon, but I really don't expect to find anything.
    Where else can I look for where the time went? It doesn't seem to make sense.
    Thanks for reading!
    Tim
    Attachments:
    Screen Shot 2013-09-06 at 9.32.46 AM.png ‏87 KB

    You should probably increase how much data you write with a single Write to Text File.  Move the Write to Text File out of the FOR loop.  Just have the data to be written autoindex to create an array of strings.  The Write to Text File will accept the array of strings directly, writing a single line for each element in the arry.
    Another idea I am having is to use another loop (yes another queue as well) for the writing of the file.  But you put the Dequeue Element inside of another WHILE loop.  On the first iteration of this inside loop, set the timeout to something normal or -1 for wait forever.  Any further iteration should have a timeout of 0.  You do this with a shift register.  Autoindex the read strings out of the loop.  This array goes straight into the Write to Text File.  This way you can quickly catch up when your file write takes a long time.
    NOTE:  This is just a very quick example I put together. It is far from a complete idea, but it shows the general idea I was having with reading the queue.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Write all data on queue.png ‏16 KB

  • Create an absolute time display that can be paused and scrolled

    I have 3 waveform graphs that are scrolling by as the data is collected.  They represent past events that can be paused, scrolled back, and printed.  It represents 8 hours of data.  I do not have a time stamp associated with the data going into the graphs at this time.  I dont want to reinvent the Field Point code that is gathering the data just tweak the Host program that monitors the data (this would require flying to the customer site).  I need to have a absolute time clock that will keep up with the data that is scrollong by and pause when the graphs are paused (that is the easy part).  Here is my challenge.  I am using a property node from all three graphs.  I have the x scale-range-all elements tied together so they will all scroll together with 1 x scroll bar.  I need to be able scroll the absolute time clock with the other information.
    Any ideas?
    AUTOM8

    Hi,
    You can use the Get date/time function to get time when the data is recorded. However be advised that this time would only be close to the actual time of data acquisition.  It will not be the actual time when the data was acquired.
    As for scrolling the time display, I think yout best bet would be to tie in a  time stamp (Get date/time function ) with the Y values that you are already acquiring. Then when you scroll to a particular point in the graph, you can programmatically unbundle the waveform at that point to get the time value.
    Regards,
    Ankita

  • Time issues? time zone settings appear in two places

    If you leave the default "set time and date automatically", you see the time zone support below and you can check it or uncheck. You can then set your time zone there. But if you uncheck the automatic date and time, you get another time zone choice and the default is Cupertino, of course. I wonder if that's the problem with some of these time issues.
    I've since unchecked automatic date and time, set my city's time zone, then rechecked automatic. The only weirdness I've seen was with an excel spreadsheet where the time was correctly shown on my mac, but not on the iphone. Unfortunately I don't have that sheet anymore or I'd try again to see if it works now.
    Just a thought.

    I noticed the same thing and did the same thing you did because my time was off by several hours each time I turned the phone on...after it being off overnight. When it was off by only 1 hour I could turn the Auto OFF then 'tap' the timezone (already set to the correct city) and the time would instantly correct itself. Then I'd turn Auto back ON.
    Turns out that my time issue was related to having the SIM PIN enabled. Once I disabled that, the time's been correct every day.

  • Real  time issues

    hi there,
    can any one share some of the issues that have been dealt with in real time. i.e.during blue print stage, <b>especially in realisation stage</b>, final preparation stage
    puhlease answer this question immediately

    Hi Medasani,
    Real time issue you can get it from the Sap support consultants. Hence, getting all the information is very difficult.
    In what basis you are asking let me your requirements.
    For Example :- Tolerance limits is has to increase to Rs.1 to Rs.100. for employees and vendor / customer. This is the issue from client.
    How you will decide that to increase.
    First you should understand the clinet work flow and get the approval from client end (core Team) then you have to increase meanwhile you have to decide the % also.
    Oba3 /Oba2
    Warm Regards,
    Sivakumar Sathiyamoorthy

  • Labview absolute time waveform chart to excel

    Hi everyone, I have a bit confusing on absolute time waveform chart. My problem is when I want to export to excel, the data duplicate nearly 30 times for each second. My project is about collect temperature from serial port and plot it in waveform chart, and I want to view history data in excel.
    Anyone can help to solve my question? I attached my vi here..
    Thank you so much..
    Attachments:
    NEW FINAL1.vi ‏96 KB
    snap.PNG ‏11 KB

    You are getting such a large number of readings because your VI has no timing control in it, if you simply add in a delay somewhere of maybe migrate to an event structure with a timeout then you can control the number of readings that are taken per second.

  • Plot absolute time

    Hi,
    I am reading data that contains date and time when the event occured and I need to plot that on xy chart in absolute time scale.
    This is my example text line...
    1/10/2007 3:51:53 PM Event Happened.....
    1/10/2007 3:52:45 PM Event 2 happened....etc...
    I searched other posts and couldn't find the right example...
    Can someone please help me with some example? I really appreciate the help...
    Thanks~!

    Hi tgif,
    Welcome to the wonderful world of log parsing.
    LV doesn't like to graph categorical data (event 1, event 2) as well as it likes to graph continuous data (1, 2, 3... ).  This means that one possible solution is to convert your categorical data to numeric data.  The problem is, for that to work, you'll need to know at least most of your events in advance.
    Be that as it may, there are some things that will make your life easier: your date/time stamp in your log should always be in the same place/format.  Your events should be easy to recognize (delimited with tabs or other unique characters, for instance).  Data corruption should be minimal (some log writers have real problems with that).
    In any event, my version of sample code is attached.
    Good luck (and <wave> to Dennis),
    Joe Z.
    Attachments:
    Parse_And_Graph.vi ‏52 KB

  • [SOLVED] Yet another time issue...

    Hi there,
    I'm having some crazy, hair pulling, head banging UTC time issues on both my dual boot (Arch & Windows 8) desktop and single boot laptop.
    I've been searching and following a mulitude of old threads and the official Wiki guide, however, I simply cannot get UTC time to stay correct between reboots. I've installed Arch a fair few times now, both before and after the switch to systemd and in dual and single boot setups and have never had time related issues like this before...
    Here's a run down of the whole sorry story....
    Fresh install - set time with hwclock --systohw utc as suggested in the beginners guide.
    First boot - time an hour out - huh? cat /etc/adjtime and ls -l /etc/localtime - everything as it should be... UTC and symlink to /usr/share/zoneinfo/Europe/London. Nonetheless I duly follow the Time guide on the wiki, get to know timedatectl a bit, and soon after, time is set to be correct. Great.
    Reboot. Time an hour out. Whaaaa??. Start googling, finding a plethora of bbs links to others with similar issues, decide to use NTP. Install, ntpd -qg. All good again. Time right. Phew...
    Reboot. Nope. Arrrrgggghhhh. (Bare in mind - at this point I haven't even booted the Windows 8 disc, and I went through the exact same process on my Arch only laptop...)
    More googling, thread reading. Find out that hwclock and ntp might be in conflict. Delete /etc/adjtime, reinstall tzdata, re-follow Time article to the letter and reenable NTP to start at boot.
    Reboot - time is foward an hour yet again. Bang head repeatedly on desk. Then suddenly - 10 mins or so after boot - NTP kicks in, and time is magically goes back an hour to the correct time! Surely NTP should be doing this early in the boot process, not 10 minutes after? But OK, at least something is happening...
    Next I dare to boot into Windows, and yup, time an hour out. Expected, but frustrating nonetheless. Add the registry tweak as suggested in the guide, and turn off the Windows time synchronisation. During which I noticed that Windows 8 time is set to UTC by default, not localtime, which is what the wiki says. Is this a Windows 8 thing?
    I can't help thinking, that if this is the case, and the Wiki advise is written under the assumption that Windows time is always localtime, that perhaps this is the route of my problem....
    Anyway, Windows time all good now, reboot Arch, time again wrong untill NTP finally kicks in - sigh. Reboot to Windows. Time an hour back. Gaaaahhhh - WTF?!! reset it to be correct. Try again. Same thing. Oops, forgot to mention that on each reboot, I check the BIOS clock, which remains persistently correct during the whole debarkle...
    Ok, so I try without the registry hack and turn Windows sync back on. Still fucked. I try various combinations of the two, I try resetting Arch time over and over again. With NTP - late sync. With hwclock only, or both hwclock & NTP - totally fucked! Eventually, I give up on UTC in Arch, set it localtime, delete registry key, turn Windows time sync back on, and thus far all good......
    TL;DR - couldn't get hwclock to set UTC time correctly across reboots. NTP worked (sort of), but after each reboot it would take ten minutes for the time to sync and the clock to move back an hour to the correct time. Localtime just works...
    My question is - why is the wiki (and the timedatectl status output for that matter) - so adamant that we should use UTC? From what I can gather, as long as I boot Windows around the DST time. or manually move the clock forward or back an hour - all should be well, no? Or are there other issues that I may run into that I've missed? The thing I'm most concerned about is data corruption due to timestamp issues...
    Also, why does the wiki repeatedly say that Windows uses localtime, when this doesn't appear to be the case in Eight? Does the wiki need updating or is Windows lying to me? I know which I'd put my money on ;-)
    Finally can anyone explain why my time was always an hour forward after a reboot, even when the time was set correctly before, the BIOS showed the correct time, and NTP was in use?
    Sorry for the crazy long posting, but this issue has been driving me totally batty!! Any light-shedding greatfully appreciated :-)
    Last edited by knowayhack (2013-08-10 15:24:09)

    Ok, so I set the clock back an hour in the BIOS, booted Windows - time right - YAY.
    Rebooted Arch - time right. OMFG - pure joy!!!
    I have to say, I still find it odd that this is how it works, and would like to confirm that things are looking as they should in the output from the following commands....
    toby@archy ~ > timedatectl status
          Local time: Sat 2013-08-10 15:42:56 BST
      Universal time: Sat 2013-08-10 14:42:56 UTC
            Timezone: Europe/London (BST, +0100)
         NTP enabled: n/a
    NTP synchronized: no
    RTC in local TZ: no
          DST active: yes
    Last DST change: DST began at
                      Sun 2013-03-31 00:59:59 GMT
                      Sun 2013-03-31 02:00:00 BST
    Next DST change: DST ends (the clock jumps one hour backwards) at
                      Sun 2013-10-27 01:59:59 BST
                      Sun 2013-10-27 01:00:00 GMT
    toby@archy ~ > sudo hwclock --debug
    sudo: timestamp too far in the future: Aug 10 16:39:24 2013
    We trust you have received the usual lecture from the local System
    Administrator. It usually boils down to these three things:
        #1) Respect the privacy of others.
        #2) Think before you type.
        #3) With great power comes great responsibility.
    [sudo] password for toby:
    hwclock from util-linux 2.23.2
    Using /dev interface to clock.
    Last drift adjustment done at 1376148264 seconds after 1969
    Last calibration done at 1376148264 seconds after 1969
    Hardware clock is on UTC time
    Assuming hardware clock is kept in UTC time.
    Waiting for clock tick...
    ...got clock tick
    Time read from Hardware Clock: 2013/08/10 14:43:20
    Hw clock time : 2013/08/10 14:43:20 = 1376145800 seconds since 1969
    Sat 10 Aug 2013 15:43:20 BST  -0.953640 seconds
    Is it OK to now reinstall NTP to keep the clock in sync on Arch, and are the Windows reg tweaks still necessary on Windows 8?
    Thank you guys SOOO much for all the unbelievabley speedy help on this issue - you have no idea how much this has been stressing me out!!
    Last edited by knowayhack (2013-08-10 14:54:31)

Maybe you are looking for