- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: About setting system time.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 07:31 PM
12-04-2001 07:31 PM
About setting system time.
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?
ps. I had tried to use NTP to synchronize the time with other server but failed with following message:
time error -1057.008354 is way too large (set clock manually)
Do you know any other methods to reset the time?
Thanks very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 07:39 PM
12-04-2001 07:39 PM
Re: About setting system time.
If you can't reboot to do this, you can use the 'date' command to slowly set time backwards:
# date -a -sss.fff
...where s=seconds and f=fractional seconds.
If you choose to do this you should plan to stop and restart the cron daemon too:
# /sbin/init.d/cron stop|start
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 07:41 PM
12-04-2001 07:41 PM
Re: About setting system time.
I would be *extremely* careful in setting
the time in reverse. Most, if not all
databases will not like at all.
Suggest you look shutting down all
applications on your system to do this
task. You don't need to reboot your system.
Once done you can restart your applications
and databases.
To actually change the date and time is
as follows:
# date 120502422001
format as [mmddhhmmyyyy]
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 07:44 PM
12-04-2001 07:44 PM
Re: About setting system time.
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.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 07:51 PM
12-04-2001 07:51 PM
Re: About setting system time.
The best way is to do this is setting up NTP Incase if you havn't configured it so far.
Here is the thread you might interested
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
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 08:03 PM
12-04-2001 08:03 PM
Re: About setting system time.
On a test server that I had tried reversing the system timestamp, I observed that:
1) oracle database will act erratically eg. CPU load shoots up extremely high
2) crond will hang
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.
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.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2001 09:29 PM
12-04-2001 09:29 PM
Re: About setting system time.
We had to do this for Euro-testing (and for Y2K, but that was before my time :-) and ran
into the following issues :
- If you do it, do it at level 1. As mentioned
in a previous reply, Oracle will crash.
- Measureware will not crash ... but extract
(of data in the specific interval) will.
- Eliminate timesynchronisation in
/etc/rc.config.d/netdaemons
- If you work in a cluster environment, make
SURE the cluster did not "pass" the time.
Example :
time 08h00
time 08h15 and you set time back to 08h00
If the cluster has run after 08h00 ...
you're in trouble (regardless of whether
you change the time at level 1 or not).
Hope this helps,
Tom Geudens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 12:02 AM
12-05-2001 12:02 AM
Re: About setting system time.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 12:14 AM
12-05-2001 12:14 AM
Re: About setting system time.
Any clue??
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 12:37 AM
12-05-2001 12:37 AM
Re: About setting system time.
You are sure that xntpd is no longer running on your system ?
I just tried date -a -100 myself, and I can see the system time drifting appart slowly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 12:45 AM
12-05-2001 12:45 AM
Re: About setting system time.
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?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 01:44 AM
12-05-2001 01:44 AM
Re: About setting system time.
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.
2) Run NTP on your server, this software will make sure the clocks will get and stay synchronized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2001 01:46 AM
12-05-2001 01:46 AM
Re: About setting system time.
This program compiles without the ANSI C compiler, just run:
$ cc -o adjtime adjtime.c
Make sure xntpd is not running at the same time otherwise it will not work. Then, to set the clock back 15min, run:
$ ./adjtime -set -900
The delta is in seconds. You can watch its progress with:
$ ./adjtime -display
And stop it with:
$ ./adjtime -zero
Regards,
Steve