Network Time (ntp): Difference between revisions

From JCWiki
Jump to navigation Jump to search
Created page with "# see if its connected: ::[root@quar1 /vz/private]# '''ntpq -pn''' ::ntpq: read: Connection refused :<big>not running</big> <ol start="2"> <li>start it:</li> [root@quar1 /..."
 
No edit summary
Line 17: Line 17:
[root@quar1 /vz/private]# ntpq -pn
[root@quar1 /vz/private]# ntpq -pn
     remote          refid      st t when poll reach  delay  offset jitter<br>10.1.4.5        66.187.233.4    2 u    4  64    1    0.317  876558.  0.000
     remote          refid      st t when poll reach  delay  offset jitter<br>10.1.4.5        66.187.233.4    2 u    4  64    1    0.317  876558.  0.000
<br>
<ol start="4">
<li>[root@quar1 /vz/private]# date</li>
Thu Oct 11 10:58:05 PDT 2012
</ol>
:<big>time is 11:13</big>

Revision as of 07:50, 13 October 2012

  1. see if its connected:
[root@quar1 /vz/private]# ntpq -pn
ntpq: read: Connection refused
not running
  1. start it:
  2. [root@quar1 /vz/private]# service ntpd start
    Starting ntpd: [ OK ]
  1. Query the NTP Server to see if it is paired
  2. [root@quar1 /vz/private]# ntpq -pn remote refid st t when poll reach delay offset jitter
    10.1.4.5 66.187.233.4 2 u 4 64 1 0.317 876558. 0.000
    1. [root@quar1 /vz/private]# date
    2. Thu Oct 11 10:58:05 PDT 2012
    time is 11:13