<?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: ntpdate command strange corrections in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164922#M160136</link>
    <description>I think the timezone is wrong&lt;BR /&gt;&lt;BR /&gt;Server A /etc/TIMEZONE&lt;BR /&gt;TZ=sst+8&lt;BR /&gt;export TZ&lt;BR /&gt;&lt;BR /&gt;Server B (192.168.24.27) /etc/TIMEZONE&lt;BR /&gt;TZ=SST-8&lt;BR /&gt;export TZ&lt;BR /&gt;&lt;BR /&gt;How do I check which is correct?&lt;BR /&gt;&lt;BR /&gt;Can I just change Server A /etc/TIMEZONE to&lt;BR /&gt;TZ=SST-8&lt;BR /&gt;export TZ</description>
    <pubDate>Thu, 15 Jan 2004 00:29:14 GMT</pubDate>
    <dc:creator>kenny chia</dc:creator>
    <dc:date>2004-01-15T00:29:14Z</dc:date>
    <item>
      <title>ntpdate command strange corrections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164920#M160134</link>
      <description>Hi&lt;BR /&gt;I ran the ntpdate command on server A to synchronise its time to server B. Both server A and B are a few seconds apart. But when I run the ntpdate command on server A, the time was adjusted back 16 hours.&lt;BR /&gt;&lt;BR /&gt;Why the strange behaviour?&lt;BR /&gt;&lt;BR /&gt;Below is the output at Server A&lt;BR /&gt;&lt;BR /&gt;# ntpdate -d 192.168.24.27&lt;BR /&gt;15 Jan 10:39:06 ntpdate[25059]: ntpdate version=3.5f; Mon Jun  9 14:50:06 PDT 1997 (2)&lt;BR /&gt;transmit(192.168.24.27)&lt;BR /&gt;receive(192.168.24.27)&lt;BR /&gt;transmit(192.168.24.27)&lt;BR /&gt;receive(192.168.24.27)&lt;BR /&gt;transmit(192.168.24.27)&lt;BR /&gt;receive(192.168.24.27)&lt;BR /&gt;transmit(192.168.24.27)&lt;BR /&gt;receive(192.168.24.27)&lt;BR /&gt;transmit(192.168.24.27)&lt;BR /&gt;server 192.168.24.27, port 123&lt;BR /&gt;stratum 6, precision -17, leap 00, trust 000&lt;BR /&gt;refid [192.168.24.30], delay 0.02657, dispersion 0.00070&lt;BR /&gt;transmitted 4, in filter 4&lt;BR /&gt;reference time:      c3b07c03.e3ccb000  Wed, Jan 14 2004 18:40:03.889&lt;BR /&gt;originate timestamp: c3b07c18.8c4ca000  Wed, Jan 14 2004 18:40:24.548&lt;BR /&gt;transmit timestamp:  c3b15cca.5095e000  Thu, Jan 15 2004 10:39:06.314&lt;BR /&gt;filter delay:  0.03703  0.02718  0.02663  0.02657&lt;BR /&gt;               0.00000  0.00000  0.00000  0.00000&lt;BR /&gt;filter offset: -57521.7 -57521.7 -57521.7 -57521.7&lt;BR /&gt;               0.000000 0.000000 0.000000 0.000000&lt;BR /&gt;delay 0.02657, dispersion 0.00070&lt;BR /&gt;offset -57521.767354&lt;BR /&gt;&lt;BR /&gt;15 Jan 10:39:06 ntpdate[25059]: step time server 192.168.24.27 offset -57521.767354 sec</description>
      <pubDate>Wed, 14 Jan 2004 22:47:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164920#M160134</guid>
      <dc:creator>kenny chia</dc:creator>
      <dc:date>2004-01-14T22:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate command strange corrections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164921#M160135</link>
      <description>Normally, you would never use ntpdate on a running system because you necver want to change the time of day except during bootup. Start with both servers: look at /etc/TIMEZONE. Are they the same? (better question: are both servers in the same location or timezone?). Then look at the kernel parameter timezone and dst. They should match.&lt;BR /&gt; &lt;BR /&gt;Next, verify that the NTP server is running correctly with:&lt;BR /&gt; &lt;BR /&gt;ntpq -p 192.168.24.27&lt;BR /&gt; &lt;BR /&gt;It should show the time sources used by the server and how reliable those sources are to that NTP server. All HP-UX systems run GMT or Zulu time internally. However, when the date command is run to set the current time, whatever you type in at the command line is translated into GMT using the current value of $TZ, so the internal time for the HP-UX server should be displayed first:&lt;BR /&gt; &lt;BR /&gt;TZ=GMT date&lt;BR /&gt; &lt;BR /&gt;If this value is widely different between the servers, then the internal clock was incorrectly set with the use of the wrong TZ value.&lt;BR /&gt; &lt;BR /&gt;Finally, HP-UX uses xntpd to maintain sync. ntpdate should ONLY be used during bootup when no time-critical processes are running. You can use SAM or just edit 2 files:&lt;BR /&gt; &lt;BR /&gt;/etc/rc.config.d/netdaemons&lt;BR /&gt;/etc/ntp.conf&lt;BR /&gt; &lt;BR /&gt;The comments in ntp.conf can be overwhelming. Just put the names of your NTP servers in the ntp.conf file as in:&lt;BR /&gt; &lt;BR /&gt;server 192.168.24.27&lt;BR /&gt;server  127.127.1.0            # local clock&lt;BR /&gt;fudge   127.127.1.0 stratum 10 # backup clock (internal)&lt;BR /&gt;driftfile /etc/ntp.drift       # path for drift file&lt;BR /&gt; &lt;BR /&gt;The 127.xxx entries are to allow xntpd to fallback on your internal clock if the NTP servers fail. xntpd will also prevent any time shifts by slowly changing the time between seconds (every day will always have 86400 seconds). ntpdate will lose or gain seconds which can be detrimental to cron, databases and other applications.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jan 2004 23:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164921#M160135</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-01-14T23:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate command strange corrections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164922#M160136</link>
      <description>I think the timezone is wrong&lt;BR /&gt;&lt;BR /&gt;Server A /etc/TIMEZONE&lt;BR /&gt;TZ=sst+8&lt;BR /&gt;export TZ&lt;BR /&gt;&lt;BR /&gt;Server B (192.168.24.27) /etc/TIMEZONE&lt;BR /&gt;TZ=SST-8&lt;BR /&gt;export TZ&lt;BR /&gt;&lt;BR /&gt;How do I check which is correct?&lt;BR /&gt;&lt;BR /&gt;Can I just change Server A /etc/TIMEZONE to&lt;BR /&gt;TZ=SST-8&lt;BR /&gt;export TZ</description>
      <pubDate>Thu, 15 Jan 2004 00:29:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164922#M160136</guid>
      <dc:creator>kenny chia</dc:creator>
      <dc:date>2004-01-15T00:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate command strange corrections</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164923#M160137</link>
      <description>Easy way to find which is correct: see if your east or west from Greenwich. Or:&lt;BR /&gt;#TZ=GMT date&lt;BR /&gt;and compare the result to the last post on the ITRC, which time is always reported in GMT ;-)&lt;BR /&gt;&lt;BR /&gt;To set the clock right:&lt;BR /&gt;1) edit /etc/TIMEZONE&lt;BR /&gt;2) edit /etc/rc.config.d/netdaemons (fill the NTPDATE_SERVER variable with the ntpd server)&lt;BR /&gt;3) reboot&lt;BR /&gt;4) clear the NTPDATE_SERVER variable in /etc/rc.config.d/netdaemons&lt;BR /&gt;&lt;BR /&gt;The final one is to prevent long timeouts if you need to reboot the server while the other server is down.&lt;BR /&gt;&lt;BR /&gt;Now setup ntp.conf etc like mentioned before, and you should be fine.&lt;BR /&gt;&lt;BR /&gt;The reboot is needed to inform all processes, like cron, that the timezone has changed. Otherwise strange scheduling might be the result of your actions.</description>
      <pubDate>Thu, 15 Jan 2004 01:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-command-strange-corrections/m-p/3164923#M160137</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-01-15T01:18:22Z</dc:date>
    </item>
  </channel>
</rss>

