Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

Re: Script to monitor clock time

$
0
0

Joelby,

I tested that and it and kept getting 0 even when my time was wrong. Turns out we want column 4, not 6. Column 6 is the delay in receiving a reply, column 4 is the offset in seconds.

ntpdate -q pool.ntp.org | head -1 | awk -F '[, -]+' '{print int($4)}'

I will test it as a kaseya script now.


Viewing all articles
Browse latest Browse all 30534

Trending Articles