<?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: Using SYSMAN in a DCL program to change the time... in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935269#M35376</link>
    <description>If you want to roll your own version of NTP or DECnet-Plus DTSS, have at.  Just don't assume it's going to be nearly as easy as you might want.&lt;BR /&gt;&lt;BR /&gt;The simplest is SET TIME/CLUSTER [time]&lt;BR /&gt;&lt;BR /&gt;This command is fully supported (again), and documented in the manuals:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/83FINAL/9996/9996pro_223.html#brass_90" target="_blank"&gt;http://h71000.www7.hp.com/doc/83FINAL/9996/9996pro_223.html#brass_90&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;More involved home-grown solutions can involve locally-developed task-to-task DCL:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/wizard/wiz_0159.html" target="_blank"&gt;http://h71000.www7.hp.com/wizard/wiz_0159.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you develop your own time synchronization tools, you'll either have to decide to use the approach of resetting the time to the local value of "current" which can result in duplicate time values or time gaps, or you'll have to set up your own implementation of the mechanisms within OpenVMS used for drifting the time.  &lt;BR /&gt;&lt;BR /&gt;SET TIME and SET TIME/CLUSTER slam the time; these commands do not drift the values.  Slamming the value forward or back can cause various problems.  Usually minor.  But once in a while, an application or a system component gets cranky -- during Y2K testing, the recommendation was to reboot with the new time.  CMS gets cranky at 30 seconds skewage IIRC, and there are other change-sensitive components that were identified back during Y2K.&lt;BR /&gt;&lt;BR /&gt;NTP and DECnet-Plus DTSS provide this synchronization, and various of the available time synchronization tools can drift the time, either slowing it down to drift it backwards, or increasing the speed to drift the time forward.&lt;BR /&gt;&lt;BR /&gt;The OpenVMS APIs for drifting the time are documented, if decide to use that.&lt;BR /&gt;&lt;BR /&gt;Then there are the usual herds of degenerate (error) cases, when you get a wacky value back from a time server, can't connect, or a corrupt message.  What do you do for the error cases?  Do you drift, do you use statistics to compare the differing clocks?&lt;BR /&gt;&lt;BR /&gt;What would I do?  I use NTP.  (Every IP stack for OpenVMS I am aware of has NTP.)  You can use it locally, or you can synchronize remotely.  And there exist NTP daemons that can synchronize to GPS or WWV or other time-bases.  If you choose DECnet-Plus DTSS, you can use the provided tools and can use an available API to write your own time-base connector.   NTP works sufficiently well to meet my local needs, and I don't have to support the code when it doesn't.  (But if you want to maintain your own NTP, source code is available over at U Del.)&lt;BR /&gt;&lt;BR /&gt;If you need a time-base and are not network-connected, there are various options.  Most will involve some sort of outside (and usually telephone or radio) connection, or you could go the cesium clock route.&lt;BR /&gt;&lt;BR /&gt;There's a whole section on this topic in the OpenVMS FAQ -- there's a whole chapter on time and timekeeping on OpenVMS in that document.  The master copy of the FAQ is over at the &lt;A href="http://www.HoffmanLabs.com/vmsfaq/" target="_blank"&gt;http://www.HoffmanLabs.com/vmsfaq/&lt;/A&gt; site.  And given the recent barrage of "fun" with US daylight saving time (DST) changes, I'm preparing the next Ye Olde FAQ update.&lt;BR /&gt;</description>
    <pubDate>Wed, 31 Jan 2007 10:54:28 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2007-01-31T10:54:28Z</dc:date>
    <item>
      <title>Using SYSMAN in a DCL program to change the time...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935263#M35370</link>
      <description>...is ths possible?&lt;BR /&gt;&lt;BR /&gt;On a cluster as well as a standalone node....</description>
      <pubDate>Tue, 30 Jan 2007 16:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935263#M35370</guid>
      <dc:creator>Matt Donlan</dc:creator>
      <dc:date>2007-01-30T16:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using SYSMAN in a DCL program to change the time...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935264#M35371</link>
      <description>Just use&lt;BR /&gt;$ set time/cluster &lt;BR /&gt;&lt;BR /&gt;SET&lt;BR /&gt;&lt;BR /&gt;  TIME&lt;BR /&gt;&lt;BR /&gt;    /CLUSTER&lt;BR /&gt;&lt;BR /&gt;       Requires OPER and LOG_IO privilege, and in an OpenVMS Cluster&lt;BR /&gt;       environment, SYSLCK privilege.&lt;BR /&gt;&lt;BR /&gt;       Sets the time on all nodes in a cluster to the same system time.&lt;BR /&gt;       The format of the SET TIME /CLUSTER command is the following:&lt;BR /&gt;&lt;BR /&gt;       Format&lt;BR /&gt;&lt;BR /&gt;         SET TIME[=time] [/CLUSTER]&lt;BR /&gt;     &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jan 2007 16:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935264#M35371</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2007-01-30T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using SYSMAN in a DCL program to change the time...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935265#M35372</link>
      <description>From Help on v7.3-2:&lt;BR /&gt;&lt;BR /&gt;SET&lt;BR /&gt;&lt;BR /&gt;  TIME&lt;BR /&gt;&lt;BR /&gt;    /CLUSTER&lt;BR /&gt;&lt;BR /&gt;       This command is obsolete and is no longer documented. See the&lt;BR /&gt;       online help for the CONFIGURATION SET TIME command in the System Management utility.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jan 2007 17:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935265#M35372</guid>
      <dc:creator>Dave Gudewicz</dc:creator>
      <dc:date>2007-01-30T17:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using SYSMAN in a DCL program to change the time...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935266#M35373</link>
      <description>Forget my previous reply, it was incorrect.&lt;BR /&gt;&lt;BR /&gt;Dave...</description>
      <pubDate>Tue, 30 Jan 2007 17:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935266#M35373</guid>
      <dc:creator>Dave Gudewicz</dc:creator>
      <dc:date>2007-01-30T17:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using SYSMAN in a DCL program to change the time...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935267#M35374</link>
      <description>Matt, your first post ? Are the replies worth any points ?</description>
      <pubDate>Tue, 30 Jan 2007 20:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935267#M35374</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2007-01-30T20:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using SYSMAN in a DCL program to change the time...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935268#M35375</link>
      <description>Sorry, still new to this, I'll submit the points...Thanks for the advice...what if I want to set time on two standalone nodes...something like set time XX:XX:XX /node= yyy, yyy...this syntax doesn't work, but is there something similar I can use to set the time on two standalone nodes using a DCL program?&lt;BR /&gt;&lt;BR /&gt;Thnaks again!!!&lt;BR /&gt;Matt</description>
      <pubDate>Wed, 31 Jan 2007 10:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935268#M35375</guid>
      <dc:creator>Matt Donlan</dc:creator>
      <dc:date>2007-01-31T10:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using SYSMAN in a DCL program to change the time...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935269#M35376</link>
      <description>If you want to roll your own version of NTP or DECnet-Plus DTSS, have at.  Just don't assume it's going to be nearly as easy as you might want.&lt;BR /&gt;&lt;BR /&gt;The simplest is SET TIME/CLUSTER [time]&lt;BR /&gt;&lt;BR /&gt;This command is fully supported (again), and documented in the manuals:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/83FINAL/9996/9996pro_223.html#brass_90" target="_blank"&gt;http://h71000.www7.hp.com/doc/83FINAL/9996/9996pro_223.html#brass_90&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;More involved home-grown solutions can involve locally-developed task-to-task DCL:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/wizard/wiz_0159.html" target="_blank"&gt;http://h71000.www7.hp.com/wizard/wiz_0159.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you develop your own time synchronization tools, you'll either have to decide to use the approach of resetting the time to the local value of "current" which can result in duplicate time values or time gaps, or you'll have to set up your own implementation of the mechanisms within OpenVMS used for drifting the time.  &lt;BR /&gt;&lt;BR /&gt;SET TIME and SET TIME/CLUSTER slam the time; these commands do not drift the values.  Slamming the value forward or back can cause various problems.  Usually minor.  But once in a while, an application or a system component gets cranky -- during Y2K testing, the recommendation was to reboot with the new time.  CMS gets cranky at 30 seconds skewage IIRC, and there are other change-sensitive components that were identified back during Y2K.&lt;BR /&gt;&lt;BR /&gt;NTP and DECnet-Plus DTSS provide this synchronization, and various of the available time synchronization tools can drift the time, either slowing it down to drift it backwards, or increasing the speed to drift the time forward.&lt;BR /&gt;&lt;BR /&gt;The OpenVMS APIs for drifting the time are documented, if decide to use that.&lt;BR /&gt;&lt;BR /&gt;Then there are the usual herds of degenerate (error) cases, when you get a wacky value back from a time server, can't connect, or a corrupt message.  What do you do for the error cases?  Do you drift, do you use statistics to compare the differing clocks?&lt;BR /&gt;&lt;BR /&gt;What would I do?  I use NTP.  (Every IP stack for OpenVMS I am aware of has NTP.)  You can use it locally, or you can synchronize remotely.  And there exist NTP daemons that can synchronize to GPS or WWV or other time-bases.  If you choose DECnet-Plus DTSS, you can use the provided tools and can use an available API to write your own time-base connector.   NTP works sufficiently well to meet my local needs, and I don't have to support the code when it doesn't.  (But if you want to maintain your own NTP, source code is available over at U Del.)&lt;BR /&gt;&lt;BR /&gt;If you need a time-base and are not network-connected, there are various options.  Most will involve some sort of outside (and usually telephone or radio) connection, or you could go the cesium clock route.&lt;BR /&gt;&lt;BR /&gt;There's a whole section on this topic in the OpenVMS FAQ -- there's a whole chapter on time and timekeeping on OpenVMS in that document.  The master copy of the FAQ is over at the &lt;A href="http://www.HoffmanLabs.com/vmsfaq/" target="_blank"&gt;http://www.HoffmanLabs.com/vmsfaq/&lt;/A&gt; site.  And given the recent barrage of "fun" with US daylight saving time (DST) changes, I'm preparing the next Ye Olde FAQ update.&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jan 2007 10:54:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-sysman-in-a-dcl-program-to-change-the-time/m-p/3935269#M35376</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-01-31T10:54:28Z</dc:date>
    </item>
  </channel>
</rss>

