Linux server time verification

Source: Internet
Author: User
Linux server time verification 1. View server time drift [root @ localhost ~] # Ntpdate-dpool.ntp.org3Jun12: 23: 02 ntpdate [23209]: ntpdate4.2.2p1@1.1570-oThuJan2202: 50: 41UTC2009 (1) Looking... linux server time verification 1. View server time drift [root @ localhost ~] # Ntpdate-d pool. ntp. org3 Jun 12:23:02 ntpdate [23209]: ntpdate 4.2.2p1@1.1570-o Thu Jan 22 02:50:41 UTC 2009 (1) Looking for host pool.ntp.org and service ntphost found: round (114.80.81.13) receive (114.80.81.13) transmit (region) receive (region) transmit (114.80.81.13) receive (114.80.81.13) transmit (114.80.81.13) receive (region) transmit (114.80.81.13) transmit (region) re Ceive (region) transmit (region) receive (114.80.81.12) transmit (region) receive (region) transmit (114.80.81.12) server 114.80.81.13, port 123 stratum 2, precision-19, leap 00, trust 000 refid [114.80.81.13], delay 0.07500, dispersion 0.00000 transmitted 4, in filter 4 reference time: cfb1abe6. c1705427 Thu, Jun 3 2010 12:19:50. 755 originate time Stamp: cfb1aca6. e02c965f Thu, Jun 3 2010 12:23:02. 875 transmit timestamp: cfb1aca6.72dc3bd5 Thu, Jun 3 2010 12:23:02. 448 filter delay: 0.07510 0.07500 0.07520 0.07578 0.00000 0.00000 0.00000 filter offset: 0.00000 0.401860 0.401864 0.401836 0.401890 0.000000 0.000000 delay 0.000000, dispersion 0.000000 offset 0.07500 server 114.80.81.12, port 0.00000 stratum 2, precision-19, leap 00, trust 000 refid [114.80.81.12], delay 0.07466, dispersion 0.00002 transmitted 4, in filter 4 reference time: cfb1a5be. cab58f10 Thu, Jun 3 2010 11:53:34. 791 originate timestamp: cfb1aca7.0fc8e87f Thu, Jun 3 2010 12:23:03. 061 transmit timestamp: cfb1aca6. a5c93ea2 Thu, Jun 3 2010 12:23:02. 647 filter delay: 0.07474 0.07477 0.07466 0.07497 0.00000 0.00000 0.00000 filter offset: 0.00000 0.389573 0.389545 0.389362 0.000000 0.000000 0.000000 0.000000 delay 0.07466, dispersion 0.00002 offset 0.3895643 Jun 12:23:02 ntpdate [23209]: adjust time server 114.80.81.12 offset 0.389564 sec 2. server time synchronization [root @ localhost ~] # Ntpdate pool. ntp. org3 Jun 12:24:52 ntpdate [23216]: adjust time server 114.80.81.12 offset 0.389726 sec 3. write the time synchronization to the scheduled task [root @ localhost ~] # Crontab-l # Time Synchronization0 */2 *** "ntpdate pool.ntp.org">/dev/null 2> & 1 4. check whether the scheduled task is executed [root @ localhost ~] # Grep ntpdate/var/log/cron if the following information is displayed and executed every two hours, the configuration is correct. Jun 1 18:00:01 localhost crond [4729]: (root) CMD ("ntpdate pool.ntp.org">/dev/null 2> & 1) Jun 1 20:00:01 localhost crond [5959]: (root) CMD ("ntpdate pool.ntp.org">/dev/null 2> & 1) by ikon
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.