Operating System - HP-UX
1834149 Members
4012 Online
110064 Solutions
New Discussion

Setting The Date Backwards

 
SOLVED
Go to solution
Anthony_69
Occasional Contributor

Setting The Date Backwards

Hi,

I currently have a data sensitive live HP UX system that is running at approximately 5 minutes ahead of what it should be.
Can someone advise me of the safest way to change the time backwards?

Thanks
4 REPLIES 4
John Poff
Honored Contributor
Solution

Re: Setting The Date Backwards

Hi,

I would suggest setting up the NTP protocol to keep the time in sync.

JP
Jeff Schussele
Honored Contributor

Re: Setting The Date Backwards

Hi Anthony,

Use the date command as follows:

date -a -300

This will slowly slew the time backwards five minutes
NOTE the negative value on seconds.
This will not make time go backwards literally, it slows the the actual seconds until the slew value is reached. Perfectly safe.
Then you need to get an NTP server set up to keep time in line.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Anthony_69
Occasional Contributor

Re: Setting The Date Backwards

Thanks guys. Seems to be working a treat. I did have it talking to an NTP server, however said server decided to go to sleep over the past couple of weeks
Jeff Schussele
Honored Contributor

Re: Setting The Date Backwards

Hi (again) Anthony,

300 seconds should take 2-4 hours to accomplish, so be patient.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!