Rolling back time


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Rolling back time
# 1  
Question Rolling back time

Hi all,

Have a small problem.
Back in October the pervious sys-admin (of a client's company) made the necessary adjustments to the system clock for daylight savings (Sydney time - +11 GMT).

As far as I can gather, they just amended the time - NO TIMEZONE !?!

Is there an effective and safe way that I might be able to roll-back the system-clock without droping the system altogether?

The system is (I believe) SCO OpenServer 5.0.5..

Any assistance with this will be appreciated as the rollback date is at the end of this month.
# 2  
If you use xntpd to set the time, it can gradually slew the clock over several days or weeks (depending on how far out of whack it is)
# 3  
Computer xntpd

Yes, xntpd is the best way to get the time back in whack.
# 4  
Thanks guys.

You wouldn't happend to know of any examples/web-pages for this sucker?
# 5  
Here's a link on NTP - Network Time Protocol from the FreeBSD Handbook:
http://www.freebsd.org/doc/en_US.ISO...dbook/ntp.html
# 6  
Ideally, you want to set your system time to Zulu Time and then set your timezone variable so that your local software handles everything right for your locale. I would try hard for that solution. But in this thread we saw that peter.herlihy had a problem with an unusual timezone too. Most modern variants of unix now have very programmable timezone software. But some older versions only really support US timezones well.

It may be that if you use ntp to sync your clocks that you are left with no way to display the correct local time. If so, you may be forced to misalign your system clock. This is unfortunate, but it's what I would do if I were forced into it. If this is the case, you do do not want ntp.

When one of my system clocks is very far off for some odd reason, I do not patiently wait for ntp to correct the situation. I want instant gratification.

So to answer your original question, kill cron, then change the time, then restart cron. If cron sees the time change, it will catch up or stop running until it thinks it resyncs. Also be sure that no one is using "make". It's best to do this at a time when no one is using the system. If that's not possible, let the users know.
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #175
Difficulty: Medium
ENIAC was one of the first electronic computers and occupied 167 square meters, weighed 27 tons and consumed 150kW of electricity.
True or False?

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Rolling back SQL transaction

Can some one help me related to .sql file issue. I have a .sqlfile and tried to read the file thru unix. In the .sqlfile I have error rows as well and when error comes I dont want to proceed further and need to roll back all the transactions. sample .sql file below insert into test... (2 Replies)
Discussion started by: sri_aue
2 Replies

2. Linux

Rolling Back an Update

I am writing a software product and hope that it will work on a variety of Linux distributions. At the moment, I am trying to create some kind of Linux version of patches/upgrades of installed software. Gathering information on available updates isn't hard, nor is installation of updates, but I... (27 Replies)
Discussion started by: Brandon9000
27 Replies

3. AIX

rolling back Technology Level

Hi, is it possible to roll back currently updated Technology level ? what are steps required? Regards, Manoj (2 Replies)
Discussion started by: manoj.solaris
2 Replies

4. UNIX for Dummies Questions & Answers

Need to get 4 Hrs back time and compare with successive time

Hi all, I am working on a script in which i need to get 4 hrs back time from the current time which i got from this perl function : `perl -e 'print localtime(time() - 14400) . "\n"'` now i need to get this in a loop and increment that time by 15 minutes i.e i=900(=15minutes) `perl... (2 Replies)
Discussion started by: maanik85
2 Replies