Solved

Synchronizing AIX with an external ntp server

Posted on 2010-08-18
3
2,745 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can I delete authorized_keys in FreeBSD 1 121
NTP Server in VMware 5 465
Access Required to Read Linux Security Settings and User Permissions 13 158
swp file in unix 16 43
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

734 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