Configure NTP client on AIX

From Notes_Wiki

Home > VOIS or AIX > Configure NTP client on AIX

To configure NTP client on AIX use:

  1. Assuming DNS is working or configured as per Configure DNS via resolv.conf on AIX. We should be able to ping the desired ntp servers such as pool.ntp.org or time.google.com via DNS.
  2. Synchornize time with suitable NTP server
    ntpdate -d ip.address.of.server
    For example
    ntpdate -d pool.ntp.org
    Note that this will change current time on AIX system immediately. If there is a DB / app running perhaps this should be done during downtime after taking adequate precautions.
  3. Validate date and time are corrected
    date
  4. Edit /etc/ntp.conf file to make following changes
    1. Comment out 'broadcastclient' line
    2. Mention name of servers such as below example:
      server time.google.com
      server 0.pool.ntp.org
      server 1.pool.ntp.org
  5. Start ntp service for current boot using:
    startsrc -s xntpd
  6. Configure NTP to automatically start on machine reboot by editing '/etc/rc.tcpip' and uncomment
    start /usr/sbin/xntpd "$src_running"
  7. Verify ntp is working as expected using:
    lssrc -ls xntpd
    ntpq -p


Refer:


Home > VOIS or AIX > Configure NTP client on AIX