Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Synchronizing AIX with an external ntp server

Posted on 2010-08-18
3
Medium Priority
?
3,063 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses

972 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