<?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: About setting system time. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625569#M926705</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;On a test server that I had tried reversing the system timestamp, I observed that:&lt;BR /&gt;&lt;BR /&gt;1) oracle database will act erratically eg. CPU load shoots up extremely high&lt;BR /&gt;&lt;BR /&gt;2) crond will hang&lt;BR /&gt;&lt;BR /&gt;It is still safer to schedule a reboot because there may be quite a few time-dependent components, unless you can keep track and shut these down before time reversion. &lt;BR /&gt;&lt;BR /&gt;If your NTP server is a secured server, it is a good choice for time synchronization. However, I wonder what the impact will be if the NTP server is compromised and time is set backwards.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
    <pubDate>Wed, 05 Dec 2001 04:03:20 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2001-12-05T04:03:20Z</dc:date>
    <item>
      <title>About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625564#M926700</link>
      <description>To all,&lt;BR /&gt;&lt;BR /&gt;I want to set the system time backwards for about 15 mins. Do you know any harmful effects to my server without shutting down the server? Or is it necessary to reboot the server after reset the time?&lt;BR /&gt;&lt;BR /&gt;ps. I had tried to use NTP to synchronize the time with other server but failed with following message:&lt;BR /&gt; &lt;BR /&gt;time error -1057.008354 is way too large (set clock manually)&lt;BR /&gt;&lt;BR /&gt;Do you know any other methods to reset the time?&lt;BR /&gt;&lt;BR /&gt;Thanks very much.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 03:31:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625564#M926700</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2001-12-05T03:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625565#M926701</link>
      <description>Hi Kenny:&lt;BR /&gt;&lt;BR /&gt;If you can't reboot to do this, you can use the 'date' command to slowly set time backwards:&lt;BR /&gt;&lt;BR /&gt;# date -a -sss.fff&lt;BR /&gt;&lt;BR /&gt;...where s=seconds and f=fractional seconds.&lt;BR /&gt;&lt;BR /&gt;If you choose to do this you should plan to stop and restart the cron daemon too:&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/cron stop|start&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Dec 2001 03:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625565#M926701</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-12-05T03:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625566#M926702</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would be *extremely* careful in setting&lt;BR /&gt;the time in reverse. Most, if not all &lt;BR /&gt;databases will not like at all.&lt;BR /&gt;&lt;BR /&gt;Suggest you look shutting down all&lt;BR /&gt;applications on your system to do this &lt;BR /&gt;task. You don't need to reboot your system.&lt;BR /&gt;Once done you can restart your applications&lt;BR /&gt;and databases.&lt;BR /&gt;&lt;BR /&gt;To actually change the date and time is&lt;BR /&gt;as follows:&lt;BR /&gt;&lt;BR /&gt;# date 120502422001 &lt;BR /&gt;format as [mmddhhmmyyyy]&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Wed, 05 Dec 2001 03:41:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625566#M926702</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-12-05T03:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625567#M926703</link>
      <description>Hi (again) Kenny:&lt;BR /&gt;&lt;BR /&gt;BTW, 'ntpd' will not synchronize your server's clock to its refererence source if the difference in time exceeds 1000 seconds or if a suitable source cannot be found in about 320 seconds.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 05 Dec 2001 03:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625567#M926703</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-12-05T03:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625568#M926704</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The best way is to do this is setting up NTP Incase if you havn't configured it so far.&lt;BR /&gt;&lt;BR /&gt;Here is the thread you might interested&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4c22a8e704ab6ab367/screen=ckiDisplayDocument?docId=200000049138043http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4c22a8e704ab6ab367/screen=ckiDisplayDocument?docId=200000053307950" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4c22a8e704ab6ab367/screen=ckiDisplayDocument?docId=200000049138043http://us-support2.external.hp.com/cki/bin/doc.pl/sid=4c22a8e704ab6ab367/screen=ckiDisplayDocument?docId=200000053307950&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;-USA..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 03:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625568#M926704</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-12-05T03:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625569#M926705</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;On a test server that I had tried reversing the system timestamp, I observed that:&lt;BR /&gt;&lt;BR /&gt;1) oracle database will act erratically eg. CPU load shoots up extremely high&lt;BR /&gt;&lt;BR /&gt;2) crond will hang&lt;BR /&gt;&lt;BR /&gt;It is still safer to schedule a reboot because there may be quite a few time-dependent components, unless you can keep track and shut these down before time reversion. &lt;BR /&gt;&lt;BR /&gt;If your NTP server is a secured server, it is a good choice for time synchronization. However, I wonder what the impact will be if the NTP server is compromised and time is set backwards.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Wed, 05 Dec 2001 04:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625569#M926705</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-05T04:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625570#M926706</link>
      <description>Hi,&lt;BR /&gt;We had to do this for Euro-testing (and for Y2K, but that was before my time :-) and ran&lt;BR /&gt;into the following issues : &lt;BR /&gt;- If you do it, do it at level 1. As mentioned&lt;BR /&gt;  in a previous reply, Oracle will crash.&lt;BR /&gt;- Measureware will not crash ... but extract&lt;BR /&gt;  (of data in the specific interval) will.&lt;BR /&gt;- Eliminate timesynchronisation in &lt;BR /&gt;  /etc/rc.config.d/netdaemons&lt;BR /&gt;- If you work in a cluster environment, make &lt;BR /&gt;  SURE the cluster did not "pass" the time.&lt;BR /&gt;  Example : &lt;BR /&gt;  time 08h00&lt;BR /&gt;  time 08h15 and you set time back to 08h00&lt;BR /&gt;  If the cluster has run after 08h00 ... &lt;BR /&gt;  you're in trouble (regardless of whether &lt;BR /&gt;  you change the time at level 1 or not).&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tom Geudens</description>
      <pubDate>Wed, 05 Dec 2001 05:29:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625570#M926706</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2001-12-05T05:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625571#M926707</link>
      <description>I would definitely choose for the solution provided by JRF : use date -a to slowly adjust your clock.&lt;BR /&gt;Do this as precise as possible, and when your system clock matches the clock of the NTP server, restart NTP and let NTP handle the rest and keep the system clocks synchronised.</description>
      <pubDate>Wed, 05 Dec 2001 08:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625571#M926707</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-12-05T08:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625572#M926708</link>
      <description>I had tried to use date -a -100 to slow down the clock but seems nothing happened.&lt;BR /&gt;&lt;BR /&gt;Any clue??&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 05 Dec 2001 08:14:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625572#M926708</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2001-12-05T08:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625573#M926709</link>
      <description>I have no direct answer to that. Have you given the system time enough to adjust it's time ? It could take a while forthe system to slowly adjust the clock 100 seconds.&lt;BR /&gt;&lt;BR /&gt;You are sure that xntpd is no longer running on your system ?&lt;BR /&gt;&lt;BR /&gt;I just tried date -a -100 myself, and I can see the system time drifting appart slowly.</description>
      <pubDate>Wed, 05 Dec 2001 08:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625573#M926709</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-12-05T08:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625574#M926710</link>
      <description>Yes, I am sure that xntpd is not running and I realised that the clock is running slower than usual but really hard to realise that.&lt;BR /&gt;So do I need to keep type the command date -a to slow down the clock or I just need to run it once to slow down until the clock is almost same as the NTP server clock?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2001 08:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625574#M926710</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2001-12-05T08:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625575#M926711</link>
      <description>If yoour first command worked well, You can use date -a in one big step (date -a -957) to get the system clock almost synchronized with the NTP server. From that point on, you have two choises :&lt;BR /&gt;1) Do nothing, and the system clocks will slowly drift appart again. This drift can be very small, a few (tens of) seconds per month. Once every so many weeks, you will have to use dat -a xxx again.&lt;BR /&gt;2) Run NTP on your server, this software will make sure the clocks will get and stay synchronized.</description>
      <pubDate>Wed, 05 Dec 2001 09:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625575#M926711</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-12-05T09:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: About setting system time.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625576#M926712</link>
      <description>Here's a program I wrote some years back.  It uses the adjtime() system call which does not ever turn the clock back, it simply slows it down until the time is where you want it.  This is the same system call that ntp uses to slew the clock.&lt;BR /&gt;&lt;BR /&gt;This program compiles without the ANSI C compiler, just run:&lt;BR /&gt;&lt;BR /&gt;$ cc -o adjtime adjtime.c&lt;BR /&gt;&lt;BR /&gt;Make sure xntpd is not running at the same time otherwise it will not work.  Then, to set the clock back 15min, run:&lt;BR /&gt;&lt;BR /&gt;$ ./adjtime -set -900&lt;BR /&gt;&lt;BR /&gt;The delta is in seconds.  You can watch its progress with:&lt;BR /&gt;&lt;BR /&gt;$ ./adjtime -display&lt;BR /&gt;&lt;BR /&gt;And stop it with:&lt;BR /&gt;&lt;BR /&gt;$ ./adjtime -zero&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 05 Dec 2001 09:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-setting-system-time/m-p/2625576#M926712</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2001-12-05T09:46:50Z</dc:date>
    </item>
  </channel>
</rss>

