Ntp : How is the synchronization time scheduled?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ntp : How is the synchronization time scheduled?
# 1  
Old 09-16-2019
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

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

Nothing about starting tines or similar.

Any ideas?

Greetz
# 2  
Old 09-17-2019
The NTP log messages should be in:

Code:
/var/log/syslog

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

You might find the location of your NTP logs in:

Code:
/etc/ntp.conf

If not, you can normally add the location of the NTP log file there.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

Ntp time synchronization problems

There is one server in my company where the time is out of sync. When I checked (compared with other servers whose time is correct), the XNTPD variable in /etc/rc.config.d/netdaemons was set as 0. I changed this to 1, and tried restarting the xntpd process with : # /sbin/init.d/xntpd start ... (4 Replies)
Discussion started by: anaigini45
4 Replies

2. Red Hat

Cron Jobs not running at scheduled time

I've scheduled few jobs using cron. But they are not running ..... What might be the possible reasons ?? Also tell me how to troubleshoot............. Please help me ....... Thanks in Advance. (2 Replies)
Discussion started by: vamshigvk475
2 Replies

3. Post Here to Contact Site Administrators and Moderators

Server Upgrade Scheduled for Today - 7:30 GMT (2:30 PM Eastern Time)

Dear All, Today, somewhere around 7:30 GMT (2:30 PM Eastern Time) www.unix.com will go down for what we hope is around 15 - 20 minutes as we change out some hardware on the server. Thank you for your patience and support. Neo (0 Replies)
Discussion started by: Neo
0 Replies

4. Red Hat

Auto NTP Time Synchronization

Good morning, My first post and first visit, so hello. I have been asked to see if one of our Linux boxes can have it's time sync automatically because the person who built the system has told our staff it cannot be done. To me that raised some flags because although I am no Linux expert, I just... (12 Replies)
Discussion started by: YSupport
12 Replies

5. Red Hat

ntp time synchronization

hello all,, am trying to do a time synchronization between a ntp server and a client, but facing some problems in doing so: i run the ntpdate in debug mode and this is what i got. please help me out.. # ntpd -d -u 172.22.1.207 ntpd 4.2.2p1@1.1570-o Sun Aug 28 19:21:03 UTC 2011 (1)... (1 Reply)
Discussion started by: rahul11c
1 Replies

6. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

7. Shell Programming and Scripting

Shell script to move certain files on scheduled time

Hi Friends, I want a shell script which will move certain .jar files from a specified location (say /publish/content) to (/publish/archive) on every saturday morning 6 am. One more thing to add is that before moving files it must check free space at (/publish/archive), if it is more than 60 %... (7 Replies)
Discussion started by: abhishek27
7 Replies

8. UNIX for Advanced & Expert Users

time synchronization

i have an HP UNIX box w/c acts as ntp server... I tried to change the time plus 8 minutes... the problem is that the other HP UNIX ntp client did not follow the time... when I tried to restart ntp client... using stop start it only sync to the server once... when I issue the command "ntpq -p", w/c... (2 Replies)
Discussion started by: inquirer
2 Replies

9. UNIX for Dummies Questions & Answers

Time synchronization

All What is the best way to keep the system clock synchronized? I have looked at ntp and netdate. Is one good over the other? Basically I want to know if what is the most secure way to keep the system clock insync. netdate will require me to open up some port 37... is this safe? ntp also... (1 Reply)
Discussion started by: skotapal
1 Replies
Login or Register to Ask a Question