Configure NTP client on AIX
From Notes_Wiki
Revision as of 07:27, 22 July 2022 by Saurabh (talk | contribs) (Created page with "Home > VOIS or AIX > Configure NTP client on AIX To configure NTP client on AIX use: # 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. # Synchornize time with suitable NTP server #:<pre> #:: ntpdate -d ip.address.of.server #:</pre> #: For example #::<pre> #::: ntpdate -d pool.ntp.org #::</pre> #:: '''Note that t...")
Home > VOIS or AIX > Configure NTP client on AIX
To configure NTP client on AIX use:
- 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.
- 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.
- Validate date and time are corrected
- date
- Edit /etc/ntp.conf file to make following changes
- Comment out 'broadcastclient' line
- Mention name of servers such as below example:
- server time.google.com
- server pool.ntp.org
- server 0.us.pool.ntp.org
- Start ntp service for current boot using:
- startsrc -s xntpd
- Configure NTP to automatically start on machine reboot by editing '/etc/rc.tcpip' and uncomment
- start /usr/sbin/xntpd "$src_running"
- Verify ntp is working as expected using:
- lssrc -ls xntpd
- ntpq -p
Refer: