Escolar Documentos
Profissional Documentos
Cultura Documentos
Network Time Protocol can be used to synchronise the time on computers across a network.
A NTP time server is used to obtain the correct time from a time source and adjust the local
time in each connecting computer.
NTPv3 and NTPv4 binaries coexist on AIX.
Important: By default, AIX points to NTP version 3 binaries.
Configure NTP server on AIX :
1.Verify that you have a suitable NTP server.
#lssrc -ls xNTPd
Note : sys peer should show a valid server or 127.127.1.0
If the server is insane, you should need to correct it by adding a server line
into /etc/NTP.conf and restarting xNTPd.
Following these steps
#vi /etc/NTP.conf
Add server :
server 127.127.0.1
Double check that >broadcastclient is commented.
#stopsrc -s xNTPd
#startsrc -s xNTPd
Note : If the server runs databases, use the -x flag to prevent the clock from changing in a
negative direction.
Enter the following:
#startsrc -s xNTPd -a -x
2.Enter
#lssrc -ls xNTPd
to verify that the server is synched. This process can take upto 12 minutes.
Configure NTP client on AIX :
Examples
1. To start the query/control program for the Network Time Protocol daemon,
enter:
NTPdc
2. NTPq4 Daemon
Starts the standard Network Time Protocol (NTP) query program.
Examples
1. To start the Network Time Protocol query program in interactive mode,
enter
NTPq -i
3. NTPdate4 Command
Sets the date and time using the Network Time Protocol (NTP).
Examples
1. To set the local date and time by polling the NTP servers at address
9.41.254.24, enter:
NTPdate 9.41.254.24