Home > ntp offset > ntp error log

Ntp Error Log

Contents

Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about ntp logs windows Stack Overflow the company Business Learn more about hiring developers or posting ads with

Ntp Peerstats

us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and ntp.conf logfile network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Where ntp commands linux can I look up for the ntpd log? up vote 9 down vote favorite I didn't find any ntpd log file in /var/log. I am wondering where can I find those log files, thanks! ntpd share|improve this question asked Jan 23 '11 at 13:51 DavidLiu 148115 add a comment| 3 Answers 3 active oldest votes up vote 6 down vote accepted This may tell you if/where ntp activity is being logged:

Ntp Offset Units

grep log /etc/ntp.conf You can also try: ps auxww | grep '[n]tp' share|improve this answer answered Jan 23 '11 at 14:41 Dennis Williamson 41.2k966106 3 And you can probably just grep for ntp in /var/log/messages. –Phil Hollenback Jan 23 '11 at 18:11 @Phil: That's true as carson said in his answer, however the log file can be changed in the conf file or by using a command line parameter. That's why I suggested something that would lead to where that alternative might be. –Dennis Williamson Jan 23 '11 at 18:16 Absolutely right Dennis. –Phil Hollenback Jan 23 '11 at 19:38 add a comment| up vote 6 down vote NTP doesn't normally generate many log messages nor have its own log file. Log messages on my system are found in /var/log/daemon.log. Statistics are found in the statistics dir (/var/log/ntpstats on my system). Presence of statistics files are controlled by the filegen options in your ntp.conf file. share|improve this answer answered Jan 23 '11 at 19:16 BillThor 20.6k12048 add a comment| up vote 1 down vote You should see them in /var/log/messages or wherever your syslog messages are going. share|improve this answer answered Jan 23 '11 at 14:01 carson 1,4701014 add a comment| Your Answer draft saved

>Next

This is the NTP home page that some people like to see here
8. Troubleshooting

If you have set up your software, you usually what is ntp offset want to know whether it works. This section discusses topics related to configuration, monitoring, ntp offset too large troubleshooting, and debugging of xntp.

8.1. MonitoringWithout any doubt, troubleshooting requires monitoring

Ntp Logs Ubuntu

>. Somehow you must find out that something is wrong before you wonder how to fix it.

8.1.1. If I think my NTP server is working fine, what could I do to confirm http://serverfault.com/questions/225780/where-can-i-look-up-for-the-ntpd-log this?8.1.2. How do I use peerstats and loopstats?8.1.3. How can I see the Time Difference between Client and Server?8.1.4. What does 257 mean as value for reach?8.1.5. What can I use these statistics files for?8.1.1. If I think my NTP server is working fine, what could I do to confirm this?

http://www.ntp.org/ntpfaq/NTP-s-trouble.htm >
One of the quickest commands to verify that ntpd is still up and running as desired is ntpq -p. That command will show all peers used and configured together with their corner performance data.

As the above command requires periodic invocation to monitor the performance, it is also recommended to enable statistic files in ntpd. See also Q: 8.1.2. and Q: 8.1.3..

8.1.2. How do I use peerstats and loopstats?

I use the following lines in /etc/ntp.conf to enable loopfilter statistics (See the line starting with statistics). New files are created every day, and the current files are available as /var/log/ntp/peers and /var/log/ntp/loops. Older files are archived as /var/log/ntp/peers.YYYYMMDD and /var/log/ntp/loops.YYYYMMDD:

statistics loopstats statsdir /var/log/ntp/ filegen peerstats file peers type day link enable filegen loopstats file loops type day link enableUsually I only monitor the loops file. Table 3 lists the individual fields of each file. I'll show examples for peerstats and loopstats for version 3 and 4 in the following screens.

Table 3. Statistic Files

File TypeVersionList of Fields

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super http://superuser.com/questions/181341/how-to-check-if-ntp-adjusted-system-time-on-linux User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site https://www.eecis.udel.edu/~mills/ntp/html/debug.html for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top how to check if NTP adjusted system time on Linux? up vote 14 down vote favorite 3 I have a machine that experienced some troubles with some of the real time ntp offset stuff that I'm running. One lead that I have is that NTP daemon may have moved the time, causing false timeouts. How do I find out if NTP daemon did indeed move time at all? Any logs? I do see NTP daemon restart in /var/log/messages, but I don't know if time adjustment should be there as well. to clarify: I need to understand it from the logs, after the event. May be 2 days after the time was adjusted. Running commands to see the current status doesn't ntp error log help. linux ntp share|improve this question edited Aug 27 '10 at 16:33 asked Aug 27 '10 at 11:35 n-alexander 178227 add a comment| 5 Answers 5 active oldest votes up vote 6 down vote You can use ntpdc -c sysinfo command for querying ntpd status. It returns an output similar to this: system peer: 0.0.0.0 system peer mode: unspec leap indicator: 11 stratum: 16 precision: -20 root distance: 0.00000 s root dispersion: 338.44917 s reference ID: [73.78.73.84] reference time: 00000000.00000000 Thu, Feb 7 2036 8:28:16.000 system flags: auth monitor ntp kernel stats jitter: 0.000000 s stability: 0.000 ppm broadcastdelay: 0.003998 s authdelay: 0.000000 s share|improve this answer answered Aug 27 '10 at 11:50 Janne Pikkarainen 5,2491626 add a comment| up vote 3 down vote you should have a value in the drift file. Its location will be in your /etc/ntp.conf e.g: "driftfile /var/lib/ntp/drift" this file is used to log how far your clock is from what it should be, and slowly ntp should lower this value as time progresses. - It wont do it in one go because that could cause timestamping issues on the system. share|improve this answer answered Aug 27 '10 at 11:44 Sirex 8,65522948 this is good info, thanks. Still, after time has been moved, this will be 0 and I will have lost my information. Doesn't ntp log any messages to tell me it's done it at all? –n-alexander Aug 27 '10 at 14:47 add a comment| up vote 3 down vote ntpq -nc peers will show you your syncronization status with

- standard NTP query program, either on the local server or from a remote machine. In special circumstances the ntpdc - special NTP query program, can be useful, but its use is not covered here. The ntpq program implements the management functions specified in the NTP specification RFC-1305, Appendix A. It is used to read and write the variables defined in the NTP Version 4 specification now navigating the standards process. In addition, the program can be used to send remote configuration commands to the server. The ntpd daemon can operate in two modes, depending on the presence of the -d command-line option. Without the option the daemon detaches from the controlling terminal and proceeds autonomously. With one or more -d options the daemon does not detach and generates special trace output useful for debugging. In general, interpretation of this output requires reference to the sources. However, a single -d does produce only mildly cryptic output and can be very useful in finding problems with configuration and network troubles. Some problems are immediately apparent when the daemon first starts running. The most common of these are the lack of a UDP port for NTP (123) in the Unix /etc/services file (or equivalent in some systems). Note that NTP does not use TCP in any form. Also note that NTP requires port 123 for both source and destination ports. These facts should be pointed out to firewall administrators. Other problems are apparent in the system log, which ordinarily shows the startup banner, some cryptic initialization data and the computed precision value. Event messages at startup and during regular operation are sent to the optional protostats monitor file, as described on the Event Messages and Status Words page. These and other error messages are sent to the system log, as described on the ntpd System Log Messages page. In real emergencies the daemon will sent a terminal error message to the system log and then cease operation. The next most common problem is incorrect DNS names. Check that each DNS name used in the configuration file exists and that the address responds to the Unix ping command. The Unix traceroute or Windows tracert utility can b

 

Related content

ntp synchronization error

Ntp Synchronization Error table id toc tbody tr td div id toctitle Contents div ul li a href What Is Ntp Offset a li li a href Ntp Stratum a li li a href Ntp Jitter a li li a href Ntp Time Sync Windows a li ul td tr tbody table p TD TD Next A TD TR TABLE DIV This is the NTP home page A that some people like to see here DIV relatedl How does it work A H P A This section p h id What Is Ntp Offset p will try to explain how

ntp time maximum error

Ntp Time Maximum Error table id toc tbody tr td div id toctitle Contents div ul li a href What Is Ntp Offset a li li a href Ntp Stratum a li li a href Ntp Polling Interval a li li a href Ntp Jitter a li ul td tr tbody table p NTP maximum error on local network Messages sorted by date thread subject relatedl author ajit warrier at gmail com wrote I p h id What Is Ntp Offset p am currently involved in a research project requiring tight time synchronization ntp protocol port between nodes on an

ntp error estimate

Ntp Error Estimate table id toc tbody tr td div id toctitle Contents div ul li a href What Is Ntp Offset a li li a href Ntp Offset Too Large a li li a href Ntp Commands Linux a li li a href Ntp Drift File a li ul td tr tbody table p TD TD Next A TD TR TABLE DIV This is the NTP home page A that some people like to see here DIV Troubleshooting A H relatedl P A If you have set up your software you p h id What Is Ntp Offset p

ntp error linux

Ntp Error Linux table id toc tbody tr td div id toctitle Contents div ul li a href Ntp Offset Units a li li a href Ntp Offset Meaning a li li a href Ntp Commands Linux a li li a href Ntp Drift File a li ul td tr tbody table p TD TD Next A TD TR TABLE DIV This is the NTP home page A that relatedl some people like to see here DIV Troubleshooting A p h id Ntp Offset Units p H P A If you have set up your software you usually what is

ntp time error

Ntp Time Error table id toc tbody tr td div id toctitle Contents div ul li a href What Is Ntp Offset a li li a href Ntp Offset Too Large a li li a href Ntp Drift File a li ul td tr tbody table p TD TD Next A TD TR TABLE DIV This is the NTP home page A that some people like to see here DIV Troubleshooting A H P A If you relatedl have set up your software you usually want to know ntpd commands whether it works This section discusses topics related to configuration

ntp estimated error

Ntp Estimated Error table id toc tbody tr td div id toctitle Contents div ul li a href Ntp Commands Linux a li li a href Ntp Jitter Too High a li li a href Ntp Offset Meaning a li li a href Ntp Offset Is Over Critical Threshold a li ul td tr tbody table p TD TD Next A TD TR TABLE DIV This is the NTP home page A that some people like to see here DIV relatedl The Kernel Discipline A H P A In addition to the p h id Ntp Commands Linux p NTP

ntpd error

Ntpd Error table id toc tbody tr td div id toctitle Contents div ul li a href What Is Ntp Offset a li li a href Man Ntpq a li li a href Ntp Jitter a li ul td tr tbody table p TD TD Next A TD TR TABLE DIV This is the NTP home page A that some people like relatedl to see here DIV Troubleshooting A H P A If ntpd commands you have set up your software you usually want to know whether p h id What Is Ntp Offset p it works This section discusses