Operating System - HP-UX
1836724 Members
2848 Online
110109 Solutions
New Discussion

How to set system clock smoothly

 
SOLVED
Go to solution
Volker Borowski
Honored Contributor

How to set system clock smoothly

Hello,

is there a third party tool, which can adjust the clock within a given range of hours, to avoid a jumping time ?

I think of a command like

"loose 20 min within the next 6 hours"
or
"win 50 min within the next two days"

Volker

7 REPLIES 7
MANOJ SRIVASTAVA
Honored Contributor

Re: How to set system clock smoothly

I think you need to setup NTP on the local server and point to to any time source all you have to do is to edit /ntp/conf and start the ntp daemon . Please note the time source can be set to local host too or any host with the required time diff. check for www.docs.hp and search for NTP .

Manoj
James R. Ferguson
Acclaimed Contributor

Re: How to set system clock smoothly

Hi Volker:

With 11.x, 'date [-a [-]sss[.fff]]' will do the adjustment backwards or forwards in the fashion you asked.

...JRF...
Volker Borowski
Honored Contributor

Re: How to set system clock smoothly

Thanks guys,

James: unfortunately I need this on 10.20, but I never noticed this extension for 11.0, Thanks!

MANJO, vincento: I think NTP would be a bit oversized in this case. The environment is simply two servers, I can let one follow the other with a remsh-script. But the leading machine is drifting at about 3 Minutes a month.
I do not like to setup NTP for this.

Thanks
Volker
James R. Ferguson
Acclaimed Contributor

Re: How to set system clock smoothly

Hi again:

Take a look at the links I cited in this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd3f6a12d6d27d5118fef0090279cd0f9,00.html

'ntp' is quite easy to setup and with an external clock will keep both your servers nailed.

Regards!

...JRF...
Stefan Schulz
Honored Contributor

Re: How to set system clock smoothly

Hi Volker,

i had a similar problem some time ago. Do a search on this forum. I think the thread was something like "slowing system clock down". Andreas Voss posted a small C-Programm (adjusttime.c) which did exactly what i needed.

Seems to me that this small programm could solve your poblem also.

Hope this helps. Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Andreas Voss
Honored Contributor
Solution

Re: How to set system clock smoothly

Hi,

put you my c-program at attachment.

Regards