Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Script to detect time drift on server Post 303017185 by Green_Star on Thursday 10th of May 2018 10:06:12 AM
Old 05-10-2018
Script to detect time drift on server

Hello there,

I am not an expert in networking related stuff but I got a requirement to create UNIX script to query our Company's internal time source via NTP for time drift detect and report it when > +/- 50ms.

I have been googling a lot but thought to post it in this forum to get a suggestion on the best way to do this.

Can we read in the ntp.drift file that is created on the server which script will run and use the value in the file to calculate the time drift?

Thanks in-advance for you suggestions.

Last edited by Green_Star; 05-10-2018 at 01:20 PM.. Reason: I re-posted this question in HP-UX, so please ignore this
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

2. Web Development

[PHP] Script to Time Remote Server Response and Email

Here is a simple PHP script I wrote that times getting a link using mtime with curl and emails if it does not meet my objective. I use it in production for checking the performance of a Content Delivery Network (CDN), but you can use it for any web server. <?php $heartbeat =... (1 Reply)
Discussion started by: Neo
1 Replies

3. Programming

[C++] [Unix] TCP non-blocking. Detect server disconnection procedure over, from client.

Hello! I searched forum for similar topic, with no luck, if you know one, delete this topic, and send me private message with link please. Little background: I have a lot of clients and one serwer. Client can make multiple connections on different ports and ips, but only one can be acctive... (2 Replies)
Discussion started by: ikeban
2 Replies

4. Solaris

modifying date and time and time zone on solaris 5.10 with (redundant server) veritas

I have a cluster of two Solaris server (veritas cluster). one working and the other is standby I am going to change the date on them , and am looking for a secure solution as it is giving an important service. my opinion is that the active one doesn't need to be restarted (if I don't change the... (1 Reply)
Discussion started by: barry1946
1 Replies

5. Linux

How to detect FC lun on Server?

I have created a lun on Storage and connected it to server using fiber channel. LUN is presented on new Server . How do i check and mount this newly created LUN? (1 Reply)
Discussion started by: pinga123
1 Replies

6. Solaris

Solaris can't detect external HDD on HP server

Hello, Unix users :) Has anyone had this problem when you connect an external hard drive to the server and it is simply not visible with any commands? The server is HP DL380 g8, and OS is: root@...:/# cat /etc/release Oracle Solaris 10 8/11 s10x_u10wos_17b X86 ... (16 Replies)
Discussion started by: Aratai
16 Replies

7. UNIX for Advanced & Expert Users

How to detect files transmission at UNIX server ?

Dear Expert Users, I know that Unix utility ( fuser ) is used to detect "transmission" of files from Source system to "current Linux Server". I have scheduled this Unix script to work every 30th minutes of the hour and whenever files transmission starts at that very moment. And, the file... (4 Replies)
Discussion started by: schandrakar1
4 Replies

8. Post Here to Contact Site Administrators and Moderators

AIX server do not detect LUN from HP storage

ssssssssssss (0 Replies)
Discussion started by: sampathenjoy
0 Replies

9. HP-UX

Script to detect time drift

Hello there, I am not an expert in networking related stuff but I got a requirement to create UNIX script to query our Company's internal time source via NTP for time drift detect and report it when > +/- 50ms. I have been googling a lot but thought to post it in this forum to get a... (17 Replies)
Discussion started by: Green_Star
17 Replies
ADJTIMEXCONFIG(8)					      System Manager's Manual						 ADJTIMEXCONFIG(8)

NAME
adjtimexconfig - find kernel clock variables and save for reboots SYNOPSIS
/sbin/adjtimexconfig DESCRIPTION
This script uses adjtimex(8) to find values for the kernel variables tick and frequency that will make the system clock approximately agree with the CMOS clock. It then saves these values in the configuration file /etc/default/adjtimex so the settings will be restored on every boot, when /etc/init.d/adjtimex runs. adjtimexconfig uses the drift rate recorded in /etc/adjtime to adjust the times it reads from the CMOS clock. If you find the CMOS clock has a systematic drift, read the clock(8) or hwclock(8) manual page, modify /etc/adjtime as required, and run adjtimexconfig again. AUTHOR
Michael Meskes <meskes@debian.org>. FILES
/etc/default/adjtimex /etc/init.d/adjtimex SEE ALSO
adjtimex(8), clock(8), hwclock(8), ntpd(8) April 27, 2003 ADJTIMEXCONFIG(8)
All times are GMT -4. The time now is 03:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy