Solved

Synchronizing AIX with an external ntp server

Posted on 2010-08-18
3
2,642 Views
Last Modified: 2013-11-17
Hi, I have to configure all AIX's with an ntp serverr (I believe it's a windows domain server). Which client do you recommend me to use and which is the configuration on AIX's side?

Thanks.
0
Comment
Question by:sminfo
  • 2
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 33462322
Hi again,
AIX has the "xntpd" client which comes with TCP ("bos.net.tcp.client") and is thus present by default in any system having TCP installed.
1) Edit /etc/ntp.conf
Replace the default entry broadcastclient with server your.ntp.server.com
Replace  your.ntp.server.com with the actual fully qualified name of your NTP server or with its IP address.
2) Edit /etc/rc.tcpip and remove the comment sign ("#") in front of  start /usr/sbin/xntpd "$src_running"
3) Make sure that the local time of your AIX machine is no more than 1000 seconds away from the time of your NTP server. Also check the timezone setting ("echo $TZ") for correctness.
4) Make sure that your NTP server is reachable if it's external (firewall?)
5) Issue startsrc -s xntpd
6) Issue lssrc -ls xntpd
The "Peer:" line should now contain the name of your NTP server, indicating 3 lines below "our mode: client, his mode: server"
The "Sys peer:" line will the first few minutes contain "no peer, system is insane", but this should change to the name of your NTP server soon.
7) Done.
8) Have fun.
wmp
0
 

Author Closing Comment

by:sminfo
ID: 33462769
Nice.. I see an option xntp -x to avoid changing time to negative. I think it's recommended for databases. Should I set xntp -x? NOTE: I'm running oracle.

PS: could you please take a look at the end of  http://www.experts-exchange.com/OS/Unix/AIX/Q_26405029.html :-)

Thanks.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33469385
-x is only for "slewing" (i.e. make time adjustments in very small steps). Avoiding to change the time backwards is just a possible (not guaranteed) side effect. For database servers it could make sense as a precautionary measure nevertheless, that's correct.

To implement it:

1) In /etc/rc.tcpip change start /usr/sbin/xntpd "$src_running" to start /usr/sbin/xntpd "$src_running" "-x"

2) Issue stopsrc -s xntpd

3) Issue startsrc -s xntpd -a "-x"

wmp



0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question