-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 18 November 2001 03:55 am, Bret Hughes wrote: > Is there anyway to determine whether or not a redhat7.1 box is synced > to a timeserver via ntp? I can see the daemon running via ps of course > but I can't find a way to tell if it is currently synced. In fact I > can;t figure out any way other than an expect script running ntpq and > then pe to tell from a script. I hope I am missing something.
I believe /sbin/ntpq -p will do the trick. [root@enigma root]# ntpq -p remote refid st t when poll reach delay offset jitter =============================================== +bonehed.lcs.mit .GPS. 1 u 869 1024 377 48.546 4.924 6.723 +tick.usno.navy. .PSC. 1 u 841 1024 377 61.899 12.004 11.965 *tock.usno.navy. .PSC. 1 u 824 1024 377 37.280 0.016 6.736 Hope that's what you're looking for. - -D - -- pgp key: http://www.tuxfan.homeip.net:8080/pgpkey.txt - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE796qieMAUbzJhSVcRAk8fAKCpx4vaLY1NQkixywgYh+GjfKiR7wCgmU97 Wrgef6/rflyTkirxugKZuls= =ZYQ/ -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list