1832089 Members
2698 Online
110037 Solutions
New Discussion

configure NTP client

 
Ravinder Singh Gill
Regular Advisor

configure NTP client

Hi guys,

Can you tell me how I configure an NTP client but ensure I use slew so that the time does not just jump to the correct time, but adjusts slowly.
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: configure NTP client

Hi:

Chapter-7 of the "Installing and Administering Internet Services" guide discusses NTP configuration and support:

http://docs.hp.com/en/B2355-90685/index.html

To configure slewing, set 'XNTPD_ARGS=-x' in '/etc/rc.config.d/netdaemons'.

See the man pages for 'xntpd(1M)' too, for more information.

Regards!

...JRF...
Ravinder Singh Gill
Regular Advisor

Re: configure NTP client

when I am running /sbin/init.d/xntpd script, how do i specify slewing?

it does not specify this in the document
Ravinder Singh Gill
Regular Advisor

Re: configure NTP client

is it as simple as:

#./sbin/init.d/xntpd -x
James R. Ferguson
Acclaimed Contributor

Re: configure NTP client

Hi (again) Ravi:

As I noted, to configure slewing, set 'XNTPD_ARGS=-x'in '/etc/rc.config.d/netdaemons'.

Then do:

# /sbin/init.d/xntpd start

Regards!

...JRF...
Cem Tugrul
Esteemed Contributor

Re: configure NTP client

Ravinder,
so this means you have ntp server
OK.
i have just done it since 3 days onto my
10 hp3600 series WSs.They are all working properly except one;
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=975769

Let me go!
there are 2 ways to setup a ntp client
from command and using SAM.i prefered SAM
and also a command prompt just for to modify
/etc/rc.config.d/netdaemons file on clients
side.
On client side;
go to file /etc/rc.config.d/netdaemons
edit it;then;find the strings;

export NTPDATE_SERVER=""
XNTPD=1
export XNTPD_ARGS=

Just set your ntp server name into;
export NTPDATE_SERVER="ntp_server_name"
then save it!!!
Be sure your ntp server name known from your
clients if so;
Go TO SAM-TIME/select NTP BroadCasting
and "enable Receiving time Broadcasts"
and then start NTP
That's it!!!!
synchronization may depend onto differences
between yout ntp_server&client clock time at first if the times are close to each other then your client synchronization will be fast.

Hope this is clear!!!

Good Luck,



Our greatest duty in this life is to help others. And please, if you can't
Ravinder Singh Gill
Regular Advisor

Re: configure NTP client

I have done the following:

edited /etc/rc.config.d/netdaemons

checked the timezone is correct

edited /etc/ntp.conf

and run command: ntpdate -B SERVERADDRESS (prior to starting ntpd daemon) the time difference between the server and client was quite big. how do i check the time difference again before i start the ntp daemon???
James R. Ferguson
Acclaimed Contributor

Re: configure NTP client

Hi (again):

If the time difference between your server and your NTP source is too great (>= 1000 seconds), XNTPD will die. You may need to plan a reboot to step the time difference to a very small delta. Re-setting the time can play havoc with databases and some applications.

Regards!

...JRF...
Devender Khatana
Honored Contributor

Re: configure NTP client

Hi,

#ntpq -p

Will show the time difference between the server and the client. Also apart from reboot you can manually chnage time a bit closer to time in server, (after shutting databases if any) and then let the time synchronize before restarting the databases.

HTH,
Devender
Impossible itself mentions "I m possible"
Ravinder Singh Gill
Regular Advisor

Re: configure NTP client

before starting it i was advised to do:

#ntpdate -B SERVERADDRESS (to bring it closer in line with the server's time)

#ntpdate -q SERVERADDRESS (to check the difference in time between the two before starting ntpd daemon).

This is correct for when wanting to slew but not restarting the server. This should be used in conjunction with the normal procedure i.e. /etc/rc.config/netdaemons & /etc/TIMEZONE & /etc/ntp.conf files should be changed before this, and ntpd daemon should be started after this.