Difference between revisions of "Ntp"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk m (→Query status) |
||
Line 9: | Line 9: | ||
remote refid st t when poll reach delay offset jitter | remote refid st t when poll reach delay offset jitter | ||
============================================================================== | ============================================================================== | ||
− | *timehost1.local .PPS. 1 u 356 1024 377 1.404 0.049 0.154 | + | *timehost1.local .PPS. 1 u 356 1024 377 1.404 0.049 0.154 |
− | + | ||
− | Checking for network time protocol daemon (NTPD): running | + | Checking for network time protocol daemon (NTPD): running |
= Configure it = | = Configure it = | ||
Edit /etc/ntp.conf, add your time server like this: | Edit /etc/ntp.conf, add your time server like this: | ||
server ''myserver.domain'' | server ''myserver.domain'' |
Revision as of 12:07, 16 August 2011
NTP is the network time protocol. It allows you to fetch the current date/time from an internet time server. You can also use it to provide a network time service.
Show time offset from time server
# sntp timeserver.mycompany.com 2011 Aug 16 13:59:55.000224 + 0.000137 +/- 0.002426 secs
Query status
# /etc/init.d/ntp status remote refid st t when poll reach delay offset jitter ============================================================================== *timehost1.local .PPS. 1 u 356 1024 377 1.404 0.049 0.154 Checking for network time protocol daemon (NTPD): running
Configure it
Edit /etc/ntp.conf, add your time server like this:
server myserver.domain