Ntp : How is the synchronization time scheduled?

Hello,

one of my clients has the following task for me:

To write a Perl script that checks, whether ntp is active on a particular AIX or Linux box.

Obviously the last synchronization is logged in the file ntp.log
So, my task would be find out, when the synchronization SHOULD have taken place and compare this with the time stamp of the log entry. Seems to be easy, but:

Up to now I could not figure out where the nominal sync time is configured or which command will reveal it.

E.g., the file ntp.conf on the AIX box contains the following entries

broadcastclient
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace

Nothing about starting tines or similar.

Any ideas?

Greetz

The NTP log messages should be in:

/var/log/syslog

But then again, you did not share your operating system.

You might find the location of your NTP logs in:

/etc/ntp.conf

If not, you can normally add the location of the NTP log file there.

Moderator comments were removed during original forum migration.