<?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: Ntp problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827750#M88052</link>
    <description>Xntpd does it now with not much slew time.&lt;BR /&gt;Your NTP server should not vary much.&lt;BR /&gt;&lt;BR /&gt;If you need to slew clock time, here is a C program that I use.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;int call_adjtime(delta, olddelta)&lt;BR /&gt;struct timeval *delta;&lt;BR /&gt;struct timeval *olddelta;&lt;BR /&gt;{&lt;BR /&gt;    int  retval;&lt;BR /&gt;&lt;BR /&gt;    retval = adjtime(delta, olddelta);&lt;BR /&gt;    if(retval != 0) {&lt;BR /&gt; perror("adjtime");&lt;BR /&gt;    }&lt;BR /&gt;    return(retval);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;main(argc, argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char **argv;&lt;BR /&gt;{&lt;BR /&gt;    char  *prog;&lt;BR /&gt;    struct timeval delta, olddelta;&lt;BR /&gt;    int   retval;&lt;BR /&gt;&lt;BR /&gt;    if((prog = (char *)rindex(*argv, '/')) == NULL) {&lt;BR /&gt; prog = *argv;&lt;BR /&gt;    }&lt;BR /&gt;    else {&lt;BR /&gt; prog++;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    if(argc != 2) {&lt;BR /&gt; fprintf(stderr, "Usage: %s seconds\n", prog);&lt;BR /&gt; exit(1);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    delta.tv_sec = atoi(argv[1]);&lt;BR /&gt;    delta.tv_usec = 0;&lt;BR /&gt;    olddelta.tv_sec = 0;&lt;BR /&gt;    olddelta.tv_usec = 0;&lt;BR /&gt;&lt;BR /&gt;    retval = 1;&lt;BR /&gt;    while(retval != 0) {&lt;BR /&gt; retval = call_adjtime(δ, &amp;amp;olddelta);&lt;BR /&gt;    }&lt;BR /&gt;    for(;;) {&lt;BR /&gt; delta.tv_sec = olddelta.tv_sec;&lt;BR /&gt; delta.tv_usec = olddelta.tv_usec;&lt;BR /&gt; call_adjtime(NULL, &amp;amp;olddelta);&lt;BR /&gt; if(olddelta.tv_sec == 0 &amp;amp;&amp;amp; olddelta.tv_usec == 0) {&lt;BR /&gt;     if(delta.tv_sec == 0 &amp;amp;&amp;amp; labs(delta.tv_usec) &amp;lt; 100000) {&lt;BR /&gt;  break;&lt;BR /&gt;     }&lt;BR /&gt;     else {&lt;BR /&gt;  call_adjtime(δ, &amp;amp;olddelta);&lt;BR /&gt;  call_adjtime(NULL, &amp;amp;olddelta);&lt;BR /&gt;     }&lt;BR /&gt; }&lt;BR /&gt; printf("remained %d.%06d\n", olddelta.tv_sec, labs(olddelta.tv_usec));&lt;BR /&gt; sleep(1);&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;/SYS&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;</description>
    <pubDate>Thu, 17 Oct 2002 12:06:21 GMT</pubDate>
    <dc:creator>John Bolene</dc:creator>
    <dc:date>2002-10-17T12:06:21Z</dc:date>
    <item>
      <title>Ntp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827749#M88051</link>
      <description>Hi all&lt;BR /&gt;I configured my system to use local ntp server using its internal clock.I installed patch phne_19710. My system contains one ntp server and three ntp clients. All hpux 10.20. I moved time on ntp server 2 minutes forward and after 10 minutes all clients&lt;BR /&gt;was synchronized to the server's time. But synchronization occurs immediately i.e. client's clock jumps 2 minutes in one second and this may cause application problem.&lt;BR /&gt;If this is correct?&lt;BR /&gt;Why ntp client doesn't correct its time slowly as in command ntpdate -B server?&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 07:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827749#M88051</guid>
      <dc:creator>mark_150</dc:creator>
      <dc:date>2002-10-17T07:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ntp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827750#M88052</link>
      <description>Xntpd does it now with not much slew time.&lt;BR /&gt;Your NTP server should not vary much.&lt;BR /&gt;&lt;BR /&gt;If you need to slew clock time, here is a C program that I use.&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;&lt;BR /&gt;int call_adjtime(delta, olddelta)&lt;BR /&gt;struct timeval *delta;&lt;BR /&gt;struct timeval *olddelta;&lt;BR /&gt;{&lt;BR /&gt;    int  retval;&lt;BR /&gt;&lt;BR /&gt;    retval = adjtime(delta, olddelta);&lt;BR /&gt;    if(retval != 0) {&lt;BR /&gt; perror("adjtime");&lt;BR /&gt;    }&lt;BR /&gt;    return(retval);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;main(argc, argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char **argv;&lt;BR /&gt;{&lt;BR /&gt;    char  *prog;&lt;BR /&gt;    struct timeval delta, olddelta;&lt;BR /&gt;    int   retval;&lt;BR /&gt;&lt;BR /&gt;    if((prog = (char *)rindex(*argv, '/')) == NULL) {&lt;BR /&gt; prog = *argv;&lt;BR /&gt;    }&lt;BR /&gt;    else {&lt;BR /&gt; prog++;&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    if(argc != 2) {&lt;BR /&gt; fprintf(stderr, "Usage: %s seconds\n", prog);&lt;BR /&gt; exit(1);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    delta.tv_sec = atoi(argv[1]);&lt;BR /&gt;    delta.tv_usec = 0;&lt;BR /&gt;    olddelta.tv_sec = 0;&lt;BR /&gt;    olddelta.tv_usec = 0;&lt;BR /&gt;&lt;BR /&gt;    retval = 1;&lt;BR /&gt;    while(retval != 0) {&lt;BR /&gt; retval = call_adjtime(δ, &amp;amp;olddelta);&lt;BR /&gt;    }&lt;BR /&gt;    for(;;) {&lt;BR /&gt; delta.tv_sec = olddelta.tv_sec;&lt;BR /&gt; delta.tv_usec = olddelta.tv_usec;&lt;BR /&gt; call_adjtime(NULL, &amp;amp;olddelta);&lt;BR /&gt; if(olddelta.tv_sec == 0 &amp;amp;&amp;amp; olddelta.tv_usec == 0) {&lt;BR /&gt;     if(delta.tv_sec == 0 &amp;amp;&amp;amp; labs(delta.tv_usec) &amp;lt; 100000) {&lt;BR /&gt;  break;&lt;BR /&gt;     }&lt;BR /&gt;     else {&lt;BR /&gt;  call_adjtime(δ, &amp;amp;olddelta);&lt;BR /&gt;  call_adjtime(NULL, &amp;amp;olddelta);&lt;BR /&gt;     }&lt;BR /&gt; }&lt;BR /&gt; printf("remained %d.%06d\n", olddelta.tv_sec, labs(olddelta.tv_usec));&lt;BR /&gt; sleep(1);&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;/SYS&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 17 Oct 2002 12:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827750#M88052</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2002-10-17T12:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ntp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827751#M88053</link>
      <description>check what James has to tell here&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x1e80e78d8c50d611abdb0090277a778c,00.html" target="_blank"&gt;http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x1e80e78d8c50d611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 17 Oct 2002 12:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827751#M88053</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-17T12:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ntp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827752#M88054</link>
      <description>Thanks for all.</description>
      <pubDate>Thu, 17 Oct 2002 13:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827752#M88054</guid>
      <dc:creator>mark_150</dc:creator>
      <dc:date>2002-10-17T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ntp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827753#M88055</link>
      <description>my understanding is that the NTP client will sync with whatever the server says.  Think of it this way.  When daylight savings time comes around and you bump up your ntp server 1 hour, do you want the clients to make that same change immediately or spread it out slowly over the entire day?&lt;BR /&gt;&lt;BR /&gt;If you need to adjust it slowly adjust the server slowly via the "date -a" command.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Oct 2002 13:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827753#M88055</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-10-17T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ntp problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827754#M88056</link>
      <description>whether a client slews time or does a stepwise adjustment depends on the settings and patches on the _client_ not the server, so you need to make sure that the client's have the slew patch installed and enabled.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Oct 2002 17:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ntp-problem/m-p/2827754#M88056</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2002-10-18T17:26:54Z</dc:date>
    </item>
  </channel>
</rss>

