Solved

Synchronizing AIX with an external ntp server

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
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…
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.:

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now