AIX NTP Client configuration

NTP Client configuration

To configure a AIX box as a NTP client first set the correct time zone using `smitty chtz_date`. Also set the system time manually as accurate as possible, if the system time would be way out of the reality, the xntpd daemon will not handle this and end with the following error in the error log:

---------------------------------------------------------------------------
LABEL:          SRC_SVKO
IDENTIFIER:     BC3BE5A3
Sequence Number: 4298
Class:           S
Type:            PERM
WPAR:            Global
Resource Name:   SRC
escription
SOFTWARE PROGRAM ERROR

Probable Causes
APPLICATION PROGRAM

Failure Causes
SOFTWARE PROGRAM

        Recommended Actions
        MANUALLY RESTART SUBSYSTEM IF NEEDED

Detail Data
SYMPTOM CODE
         256
SOFTWARE ERROR CODE
       -9017
ERROR CODE
           0
DETECTING MODULE
'srchevn.c'@line:'376'
FAILING MODULE
xntpd

Also there will be no error recorded in the syslog, nor will there be any error if xntpd will be run manually with the debug option enabled.

Back to the configuration. This is how my /etc/ntp.conf file looks like:

server 93.184.71.155 prefer
server 176.28.8.111
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace

Now we start the xntpd daemon:

# lssrc -s xntpd
Subsystem         Group            PID          Status
 xntpd            tcpip                         inoperative
# startsrc -s xntpd
0513-059 The xntpd Subsystem has been started. Subsystem PID is 3997772.
# lssrc -s xntpd
Subsystem         Group            PID          Status
 xntpd            tcpip            3997772      active

The time synchronization may take some time. So don’t worry to wait for 15 min. to check the synchronization status using ntpq.

# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
*dns2.vnet.sk    ntp.bts.sk       2 u   62   64  377    39.51    4.800    0.98
+176.28.8.111    187.95.28.233.n  3 u   42   64  357    60.24   -0.091    0.64

Ntpq output explained

Now in order to let xntpd start each time the system boots edit /etc/rc.tcpip and uncomment the ntp entry as follows:

# Start up Network Time Protocol (NTP) daemon
start /usr/sbin/xntpd "$src_running"
4 (1)
Article Rating (1 Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
AIX FC Performance improvements for IBM AIX FC and FCoE device driver stacks
Viewed 5624 times since Fri, Jan 31, 2020
AIX - How to get network speed and statistic of ethernet adapter in AIX
Viewed 13542 times since Fri, Jun 8, 2018
Technology level update on AIX using smit_update and alt_disk_install method
Viewed 5645 times since Sun, Jun 30, 2019
Changing Ethernet Media Speed for AIX
Viewed 3275 times since Tue, Apr 16, 2019
HOWTO: Copy a filesystem on AIX
Viewed 2400 times since Mon, May 28, 2018
How to Backup and Upgrade a Virtual I/O Server Part I
Viewed 4444 times since Wed, Jun 5, 2019
Configuring an AIX client with multiple Kerberos realms
Viewed 8822 times since Mon, Jun 25, 2018
HMC: HMC and LPAR management commands
Viewed 7039 times since Sun, Jun 3, 2018
Aix: How to assign a specific PVID
Viewed 7176 times since Fri, Feb 1, 2019
0516-404 allocpThis system cannot fulfill the allocation
Viewed 9982 times since Thu, Sep 20, 2018