<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: f$getsyi(&amp;quot;BOOTTIME&amp;quot;)  drift in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040794#M90534</link>
    <description>Jack,&lt;BR /&gt; Fuzzy recollection... &lt;BR /&gt;&lt;BR /&gt;There are some odd things that can happen with boot times and uptimes with calculations performed on different nodes in the cluster.&lt;BR /&gt;&lt;BR /&gt;For a sanity check, see system cell EXE$GQ_BOOTTIME. This should be the quadword time and shouldn't change.&lt;BR /&gt;&lt;BR /&gt;ANALYZE/SYSTEM&lt;BR /&gt;SDA&amp;gt; EXAMINE/TIME EXE$GQ_BOOTTIME&lt;BR /&gt;&lt;BR /&gt;This should give the same results as F$GETSYI.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 17 Apr 2007 21:26:47 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2007-04-17T21:26:47Z</dc:date>
    <item>
      <title>f$getsyi("BOOTTIME")  drift</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040791#M90531</link>
      <description>VMS V7.3-2/Alpha&lt;BR /&gt;&lt;BR /&gt;Can someone with access to the VMS source listings tell me how this function gets the boot time?  I run a program once a day which uses the output of this function for comparison purposes, and unless I'm going crazy, the value returned seems to change by a few seconds each day I run it - though it doesn't change if I run it multiple times immediately one after another!  (My simplistic expectation was that the boot time was simply stored somewhere as a text string at boot time and would never change.)</description>
      <pubDate>Tue, 17 Apr 2007 18:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040791#M90531</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2007-04-17T18:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: f$getsyi("BOOTTIME")  drift</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040792#M90532</link>
      <description>The system boot time is simply the quadword time when the box boots.&lt;BR /&gt;&lt;BR /&gt;Log the value retrieved at one hour or six hour intervals, and determine if the value really does drift.  (Things that "seem" are a whole lot more difficult to diagnose.)&lt;BR /&gt;&lt;BR /&gt;Some drift in the system time is entirely normal; the system clock just isn't a chronograph.  The saved time (the VAX TOY and the Alpha BB_WATCH) for VAX and Alpha systems can drift by 65 or by 130 seconds a month, and be in spec.  The running time can drift more, depending on what is going on.)&lt;BR /&gt;&lt;BR /&gt;Drift in the system boot time isn't normal.&lt;BR /&gt;&lt;BR /&gt;If this is a cluster, also make sure you are running your code on the node you think you are running it upon.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Apr 2007 19:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040792#M90532</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-04-17T19:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: f$getsyi("BOOTTIME")  drift</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040793#M90533</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;I think the boot time is saved as literal string as we know the other time literals like LOGIN, TODAY, etc. whenever we want to use this, the system's parsing function fetches this values from the internal storage and uses system's convert funtions available in different levels.&lt;BR /&gt;&lt;BR /&gt;As Holf explained clearly, there will be drift in the system running time, the time difference you see may be due to the drift in the runnning system-time you stored; on any version of VMS, the BOOT value never change.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Tue, 17 Apr 2007 20:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040793#M90533</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2007-04-17T20:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: f$getsyi("BOOTTIME")  drift</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040794#M90534</link>
      <description>Jack,&lt;BR /&gt; Fuzzy recollection... &lt;BR /&gt;&lt;BR /&gt;There are some odd things that can happen with boot times and uptimes with calculations performed on different nodes in the cluster.&lt;BR /&gt;&lt;BR /&gt;For a sanity check, see system cell EXE$GQ_BOOTTIME. This should be the quadword time and shouldn't change.&lt;BR /&gt;&lt;BR /&gt;ANALYZE/SYSTEM&lt;BR /&gt;SDA&amp;gt; EXAMINE/TIME EXE$GQ_BOOTTIME&lt;BR /&gt;&lt;BR /&gt;This should give the same results as F$GETSYI.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Apr 2007 21:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040794#M90534</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-04-17T21:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: f$getsyi("BOOTTIME")  drift</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040795#M90535</link>
      <description>It's stored as binary time in EXE$GQ_BOOTTIME.&lt;BR /&gt;Try this:&lt;BR /&gt;$ANALYZE/SYS&lt;BR /&gt;SDA&amp;gt; eval EXE$GQ_BOOTTIME&lt;BR /&gt;Hex = FFFFFFFF.82D06460   Decimal = -2100272032         EXE$GQ_BOOTTIME&lt;BR /&gt;SDA&amp;gt; exam EXE$GQ_BOOTTIME&lt;BR /&gt;SDA&amp;gt; exam EXE$GQ_BOOTTIME/time&lt;BR /&gt;&lt;BR /&gt;Now &lt;BR /&gt;$ write sys$output f$getsyi("BOOTTIME")&lt;BR /&gt;and&lt;BR /&gt;$ exam/hex %x82D06460&lt;BR /&gt;$ exam/hex %x82D06464&lt;BR /&gt;&lt;BR /&gt;The text date× should match&lt;BR /&gt;and the binary date&amp;amp;time will match.&lt;BR /&gt;&lt;BR /&gt;Now add the the DCL examined to the daily script and see if those values move.&lt;BR /&gt;&lt;BR /&gt;I have a hard time imagining an ntp/utc scenarios where a clock adjust would influence the displyed boot time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan&amp;gt;&amp;gt; "I think the boot time is saved as literal string"&lt;BR /&gt;Hmmm, that would be very un-VMS&lt;BR /&gt;All dates are stored as 8-byte = 64-bit binary timestamps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Apr 2007 21:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040795#M90535</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-17T21:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: f$getsyi("BOOTTIME")  drift</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040796#M90536</link>
      <description>Jack,&lt;BR /&gt;  Here's some DCL that will check the SDA value against the SYI value. No output means they are identical (I'd be astonished if they were ever different).&lt;BR /&gt;&lt;BR /&gt;$ EXE$GQ_BOOTTIME=%X95F88828 ! Version specific&lt;BR /&gt;$ t[32,32]=F$CVUI(32,32,F$FAO("!AD",8,EXE$GQ_BOOTTIME))&lt;BR /&gt;$ t[0,32]=F$CVUI(0,32,F$FAO("!AD",8,EXE$GQ_BOOTTIME))&lt;BR /&gt;$ SDA_boottime=F$FAO("!%D",F$CVUI(32,32,F$FAO("!AD",8,t)))&lt;BR /&gt;$ SYI_boottime=F$GETSYI("BOOTTIME")&lt;BR /&gt;$ IF SDA_boottime.NES.SYI_boottime THEN SHOW SYM *_boottime&lt;BR /&gt;&lt;BR /&gt;Note, this uses the V7.3-2 value for EXE$GQ_BOOTTIME, find the appropriate value for your system from SDA:&lt;BR /&gt;&lt;BR /&gt;$ ANALYZE/SYSTEM&lt;BR /&gt;SDA&amp;gt; EVAL EXE$GQ_BOOTTIME&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Apr 2007 23:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040796#M90536</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-04-17T23:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: f$getsyi("BOOTTIME")  drift</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040797#M90537</link>
      <description>Sorry I didn't close this before.&lt;BR /&gt;&lt;BR /&gt;Mr. Gillings seems to be correct about the boottime value being different when examined from different nodes in a cluster.&lt;BR /&gt;&lt;BR /&gt;My simple test:&lt;BR /&gt;&lt;BR /&gt;for each node in a cluster, enter:&lt;BR /&gt;&lt;BR /&gt;$ WRITE SYS$OUTPUT -&lt;BR /&gt;   F$GETSYI("BOOTTIME",nodename)&lt;BR /&gt;&lt;BR /&gt;The values are different depending on the node where the cmd is issued.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jul 2008 16:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-getsyi-quot-boottime-quot-drift/m-p/5040797#M90537</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2008-07-22T16:02:36Z</dc:date>
    </item>
  </channel>
</rss>

