Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Synchronizing AIX with an external ntp server

Posted on 2010-08-18
3
Medium Priority
?
2,954 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

705 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