<?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 for time synchronization in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849343#M394993</link>
    <description>I think it takes time to fully synchronize.&lt;BR /&gt;I remember from somewhere that it takes up to&lt;BR /&gt;5 minutes to ntp client for full synchronization.So I'd wait and check syslog.log after ~5 minutes.Also can use ntpq -p.It will mark ntp servers that responded with + and most accurate with *.&lt;BR /&gt;&lt;BR /&gt;Zeev</description>
    <pubDate>Wed, 23 Jul 2003 09:33:37 GMT</pubDate>
    <dc:creator>Zeev Schultz</dc:creator>
    <dc:date>2003-07-23T09:33:37Z</dc:date>
    <item>
      <title>ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849341#M394991</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to make usage of the ntpdate command in order to synchonize the clock of four server (cron job). These servers are not on a public domain, so I choosen 1 as Time server (xntpd is running on that one).&lt;BR /&gt;&lt;BR /&gt;Now whenever I query from another server the time server, I got following response:&lt;BR /&gt;&lt;BR /&gt;# ntpdate -d server_name&lt;BR /&gt;23 Jul 07:58:20 ntpdate[12051]: ntpdate version=3.5f; Mon Jun  9 &lt;BR /&gt;14:50:06 PDT 1997 (2)&lt;BR /&gt;transmit(server_ip)&lt;BR /&gt;receive(server_ip)&lt;BR /&gt;transmit(server_ip)&lt;BR /&gt;receive(server_ip)&lt;BR /&gt;transmit(server_ip)&lt;BR /&gt;receive(server_ip)&lt;BR /&gt;transmit(server_ip)&lt;BR /&gt;receive(server_ip)&lt;BR /&gt;transmit(server_ip)&lt;BR /&gt;server server_ip, port 123&lt;BR /&gt;stratum 16, precision -17, leap 11, trust 000&lt;BR /&gt;refid [0.0.0.0], delay 0.02638, dispersion 0.00000&lt;BR /&gt;transmitted 4, in filter 4&lt;BR /&gt;reference time:      00000000.00000000  Thu, Feb  7 2036  6:28:16.000&lt;BR /&gt;originate timestamp: c2c8be75.a0ce7000  Wed, Jul 23 2003  7:57:41.628&lt;BR /&gt;transmit timestamp:  c2c8be9c.d7f1f000  Wed, Jul 23 2003  7:58:20.843&lt;BR /&gt;filter delay:  0.02654  0.02640  0.02638  0.02638&lt;BR /&gt;               0.00000  0.00000  0.00000  0.00000&lt;BR /&gt;filter offset: -39.2159 -39.2159 -39.2159 -39.2159&lt;BR /&gt;               0.000000 0.000000 0.000000 0.000000&lt;BR /&gt;delay 0.02638, dispersion 0.00000&lt;BR /&gt;offset -39.215935&lt;BR /&gt;&lt;BR /&gt;23 Jul 07:58:20 ntpdate[12051]: no server suitable for synchronization found&lt;BR /&gt;&lt;BR /&gt;What I do not understand is that he can compare both times, difference between both server is not so high, and still he cannot synchronize... &lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;BR /&gt;Michael&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jul 2003 08:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849341#M394991</guid>
      <dc:creator>Michael Janssens</dc:creator>
      <dc:date>2003-07-23T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849342#M394992</link>
      <description>Michael,&lt;BR /&gt;I guess your time difference is much to large. It should be within 1 second or so.&lt;BR /&gt;&lt;BR /&gt;Try to adjust manually to close the gap, then retry ntpdate.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bernhard</description>
      <pubDate>Wed, 23 Jul 2003 09:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849342#M394992</guid>
      <dc:creator>Bernhard Mueller</dc:creator>
      <dc:date>2003-07-23T09:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849343#M394993</link>
      <description>I think it takes time to fully synchronize.&lt;BR /&gt;I remember from somewhere that it takes up to&lt;BR /&gt;5 minutes to ntp client for full synchronization.So I'd wait and check syslog.log after ~5 minutes.Also can use ntpq -p.It will mark ntp servers that responded with + and most accurate with *.&lt;BR /&gt;&lt;BR /&gt;Zeev</description>
      <pubDate>Wed, 23 Jul 2003 09:33:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849343#M394993</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2003-07-23T09:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849344#M394994</link>
      <description>Before using ntpdate, always use ntpq -p server_name to make sure the server is properly configured. The error message from ntpdate implies that the server is not running as an NTP server.&lt;BR /&gt;&lt;BR /&gt;ntpdate -b server_name will jump-change the time on the client regardless of the time difference. If you must keep your client running without a visible time change then use ntpdate -B server_name. NOTE: you will need patches for NTP to bring old systems up to date for this option. In this case, the time will be slowly adjusted over hours of time. But it will not change the time slowly if it is off by more than 1024 seconds.&lt;BR /&gt;&lt;BR /&gt;Do NOT use cron to maintain time with ntpdate! The whole design for NTP is to keep accurate time (within 128ms) by automatically checking the time sources at least every 64 seconds and then automatically slowing down once the time is very close (like once every 17 minutes). Maintain time by editing /etc/rc.config.d/netdaemons and turning on XNTPD=1, plus adding the NTP server name (do this AFTER you fix the server so that ntpq -p works OK).  Then edit /etc/ntp.conf. Since it has hundreds of comments, you might make a copy of the file and simplfy the file to just 2 lines:&lt;BR /&gt;&lt;BR /&gt;server server_name prefer&lt;BR /&gt;driftfile /etc/ntp.drift&lt;BR /&gt;&lt;BR /&gt;Then use ntpq -p (with no servername) to see that your client is properly setup. You'll see a report on the NTP server(s) for your client. Then start NTP with: /sbin/init.d/xntpd start&lt;BR /&gt;&lt;BR /&gt;From now on (including reboot) NTP will run automatically--no cron necessary.</description>
      <pubDate>Wed, 23 Jul 2003 10:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849344#M394994</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-07-23T10:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849345#M394995</link>
      <description>Why you are using ntpdate for your clients that is nonsens.&lt;BR /&gt;&lt;BR /&gt;If you run one xntpd server you can configure all other clients to use also xntpd as client.&lt;BR /&gt;This can be easy done.&lt;BR /&gt;&lt;BR /&gt;On your clients:&lt;BR /&gt;&lt;BR /&gt;# vi /etc/ntp.conf&lt;BR /&gt;server &lt;XNTPD server="" ip=""&gt; prefer&lt;BR /&gt;&lt;BR /&gt;The server command specifies that the local server is to operate in client mode.&lt;BR /&gt;&lt;BR /&gt;This should be the only uncommented line in your ntp.conf file&lt;BR /&gt;&lt;BR /&gt;# vi /etc/rc.config.d/netdaemons&lt;BR /&gt;export NTPDATE_SERVER="&lt;XNTPD server="" ip=""&gt;"&lt;BR /&gt;export XNTPD=1&lt;BR /&gt;export XNTPD_ARGS="-l /var/adm/syslog/ntp.log"&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/xntpd start&lt;BR /&gt;&lt;BR /&gt;Test config with&lt;BR /&gt;# /usr/sbin/xntpdc -s&lt;BR /&gt;&lt;BR /&gt;I guess you has attached a external clock to your time server so your ntp.conf should look like this.&lt;BR /&gt;&lt;BR /&gt;server 127.127.8.0 mode 2&lt;BR /&gt;server 127.127.0.1&lt;BR /&gt;fudge 127.127.0.1 stratum 12&lt;BR /&gt;&lt;BR /&gt;I you have not attached an external clock but you want that this your time reference for all other systems you must have only two lines in /etc/ntp.conf&lt;BR /&gt;&lt;BR /&gt;server 127.127.1.1 &lt;BR /&gt;fudge  127.127.1.1 stratum 10&lt;BR /&gt;&lt;BR /&gt;Now the server synchronize to it own internal clock, which you can set with date command and xntpd will use this reference to give the time to the clients.&lt;BR /&gt;&lt;BR /&gt;Now your time sync is completely made with xntp. If you do this like that don't forget to delete the ntpdate command from cron table, because ntpdate and xntpd using the same port.&lt;BR /&gt;So xntpd is already running and the port is in use and ntpdate will fail and you get a lot of error messages in your coron log.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;   Roland&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/XNTPD&gt;&lt;/XNTPD&gt;</description>
      <pubDate>Wed, 23 Jul 2003 10:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849345#M394995</guid>
      <dc:creator>RolandH</dc:creator>
      <dc:date>2003-07-23T10:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849346#M394996</link>
      <description>It works now. Indeed it is taking some time before running fine and the time difference need to be very small when initializing the tool.&lt;BR /&gt;&lt;BR /&gt;Many thanks for all your help.&lt;BR /&gt;&lt;BR /&gt;The idea of using the netdate in a cron job was one that can be find in the documentation of HP. Still I agree this is better.</description>
      <pubDate>Wed, 23 Jul 2003 14:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849346#M394996</guid>
      <dc:creator>Michael Janssens</dc:creator>
      <dc:date>2003-07-23T14:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849347#M394997</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I add to this msg tool called rdate that compiled for hpux so just unzip it&lt;BR /&gt;and use it for sync the time to remote machine.&lt;BR /&gt;It will set the time as on the remote machine.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Wed, 23 Jul 2003 20:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849347#M394997</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-23T20:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: ntpdate for time synchronization</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849348#M394998</link>
      <description>see previous reply</description>
      <pubDate>Mon, 21 Feb 2005 11:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntpdate-for-time-synchronization/m-p/4849348#M394998</guid>
      <dc:creator>Michael Janssens</dc:creator>
      <dc:date>2005-02-21T11:13:37Z</dc:date>
    </item>
  </channel>
</rss>

