|Applies To||RSA Product Set: RSA Governance and Lifecycle, Identity Management and Governance|
O/S Version: SuSE Enterprise/Red Hat Enterprise Server
|Tasks||This article gives some tips on testing and configuring NTP for time synchronization.|
|Resolution||There are a lot of commands that can be used to check your current time. These include:|
NTP configuration is stored within the /etc/ntp.conf file. The entries of interest are the lines that start with server for instance:
After you make changes to the ntp.conf you need to restart the daemon for the changes to be re-read.
service ntp restart
service ntpd restart
To check to see if the server is reachable you would run the commands:
# ntpq -n
Here is what the output looks like:
In the as output above, the #1 server is the first in the ntp.conf, it is local and it is reachable.
The second server is the second "server" entry in the ntp.conf but is web based and not reachable.
The pe command not only shows that the server was queried, but it also gives some information into the offset of how far off this system's time is in comparison to the NTP server's time.
If none of your servers are reachable, but you have a Windows domain that is reachable, most Windows domain controllers answer to NTP time requests. You can add a server line for one or more servers, restart the service, then attempt the ntpq commands to verify connectivity.