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