<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Configuring the Time Service: Enabling the Debug Log</title><link>http://blogs.msdn.com/b/w32time/archive/2008/02/28/configuring-the-time-service-enabling-the-debug-log.aspx</link><description>The debug log is a powerful tool in the W32Time bag of tricks when you need to figure out why something isn't working. The debug log tell you (for better or worse) what the Time Service is doing under the hood. Where it is connecting to, how long it is</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Configuring the Time Service: Enabling the Debug Log</title><link>http://blogs.msdn.com/b/w32time/archive/2008/02/28/configuring-the-time-service-enabling-the-debug-log.aspx#10133836</link><pubDate>Fri, 25 Feb 2011 01:24:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10133836</guid><dc:creator>Peter DuDeck</dc:creator><description>&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;149803 23:58:59.2887417s - Time zone OK.&lt;/p&gt;
&lt;p&gt;Equals&lt;/p&gt;
&lt;p&gt;2/24/2011 &amp;nbsp;23:58:59 UTC&lt;/p&gt;
&lt;p&gt;To convert:&lt;/p&gt;
&lt;p&gt;DateAdd (&amp;quot;D&amp;quot;,149803,&amp;quot;1/1/1601&amp;quot;)&lt;/p&gt;
&lt;p&gt;The American National Standards Institute (ANSI) adopted a system of counting days; this system began with December 31, 1600 as Day 0. In turn, that made January 1, 1601 the first “official” day in history, with all subsequent dates and times being based on the number of nanoseconds elapsed since the 0 hour on January 1, 1601. (That day was a Monday, by the way.) These so-called ANSI decimal dates were originally designed for use with the COBOL programming language and have continued to be used by Windows and other operating systems.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10133836" width="1" height="1"&gt;</description></item><item><title>re: Configuring the Time Service: Enabling the Debug Log</title><link>http://blogs.msdn.com/b/w32time/archive/2008/02/28/configuring-the-time-service-enabling-the-debug-log.aspx#8720120</link><pubDate>Fri, 11 Jul 2008 07:55:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8720120</guid><dc:creator>dladen</dc:creator><description>&lt;p&gt;Looking at the debug logs, I see lines like the following:&lt;/p&gt;
&lt;p&gt;148830 21:03:50.5225236s - ---------- Log File Opened -----------------&lt;/p&gt;
&lt;p&gt;The second field looks like the time. &amp;nbsp;I assume the first is a date, how do I convert it to month/day/year format.&lt;/p&gt;
&lt;p&gt;Thank You,&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8720120" width="1" height="1"&gt;</description></item><item><title>re: Configuring the Time Service: Enabling the Debug Log</title><link>http://blogs.msdn.com/b/w32time/archive/2008/02/28/configuring-the-time-service-enabling-the-debug-log.aspx#8576129</link><pubDate>Thu, 05 Jun 2008 22:50:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8576129</guid><dc:creator>brorymes</dc:creator><description>&lt;p&gt;Thanks Ryan!&lt;/p&gt;
&lt;p&gt;With FileLogEntries = 62, only &amp;quot;ClockDiscpln Update&amp;quot; lines are logged - for example:&lt;/p&gt;
&lt;p&gt;ClockDispln Update: SO:10326 KPhO:-392 PhO:10718 uT:3842 FllPPE:10718 PllPPE:10718 FllPPrE:192010 PllPPrE:190311 sysPollTicks:16383 FllDown:65533 PllUp:3842 PllDown:131064 FllRA:0 PllRA:0 RA:0 CR:156256 nT:1033 RAPhO:0 SD:299147 LI:0 S:2 RDl:312500 RDs:371744 TSF:0x0 Sync&lt;/p&gt;
&lt;p&gt;Is this as expected?&lt;/p&gt;
&lt;p&gt;Which of these many fields provides the clock offset - and what are the units?&lt;/p&gt;
&lt;p&gt;Also: These lines appeared before in the &amp;quot;full&amp;quot; log, but were prefixed (as was every log entry) with date and timestamp:&lt;/p&gt;
&lt;p&gt;148809 19:16:49.3914379s - ClockDispln:ClockDispln Update: SO:-219272 KPhO:358 PhO:-219630 uT:3842 FllPPE:-219630 PllPPE:-215788 FllPPrE:242964 PllPPrE:241624 sysPollTicks:16383 FllDown:65533 PllUp:3842 PllDown:131064 FllRA:0 PllRA:0 RA:0 CR:156256 nT:8 RAPhO:0 SD:320512 (i) LI:0 S:2 RDl:312500 RDs:594206 TSF:0x0 Sync&lt;/p&gt;
&lt;p&gt;How do I get the date and time back? Are they controlled by a separate message number, and if so, what is it?&lt;/p&gt;
&lt;p&gt;I would also like to include the individual peer response / offset lines, as in:&lt;/p&gt;
&lt;p&gt;148809 19:17:49.2937259s - Response from peer NTPMMK-E0.fmr.com (ntp.m|0x9|10.86.33.181:123-&amp;gt;10.32.108.10:123), ofs: -00.0050404s&lt;/p&gt;
&lt;p&gt;Which message number would those be?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8576129" width="1" height="1"&gt;</description></item><item><title>re: Configuring the Time Service: Enabling the Debug Log</title><link>http://blogs.msdn.com/b/w32time/archive/2008/02/28/configuring-the-time-service-enabling-the-debug-log.aspx#8571787</link><pubDate>Tue, 03 Jun 2008 19:53:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8571787</guid><dc:creator>Ryan Sizemore</dc:creator><description>&lt;P&gt;The debug log is designed to be an internal debugging tool, but we ship it in the product anyway. As you pointed out, some of the message numbers are documented but not an exhaustive list because it isn't built as a customer tool. If you need specific entries, you can either ask here or use "trial and error". &lt;/P&gt;
&lt;P&gt;Most of the calculations made by the service (that you are interested in) fall into a "discipline calculations" bucket, which is entry 62. Beyond that, you will need to parse the log to find a specific value.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8571787" width="1" height="1"&gt;</description></item><item><title>re: Configuring the Time Service: Enabling the Debug Log</title><link>http://blogs.msdn.com/b/w32time/archive/2008/02/28/configuring-the-time-service-enabling-the-debug-log.aspx#8571669</link><pubDate>Tue, 03 Jun 2008 18:32:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8571669</guid><dc:creator>brorymes</dc:creator><description>&lt;p&gt;Having set the registry entries as described, W32Time is indeed logging a lot of useful information - i.e. a complete blow-by-blow of peer polling, sample filtering, and clock disciplining.&lt;/p&gt;
&lt;p&gt;Now - since I'm interested not in debugging W32Time, but rather in simply logging the clock offset as calculated by NTP - I would like to adjust FileLogEntries accordingly. How do I find out which message numbers correspond to which log messages? The Technet entry for FileLogEntries lists some, but not all - and not this one. (Also - including the numbers in the messages themselves would greatly simplify such adjustments, and log filtering after the fact.)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8571669" width="1" height="1"&gt;</description></item><item><title>BioSensorAB &amp;raquo; Configuring the Time Service: Enabling the Debug Log</title><link>http://blogs.msdn.com/b/w32time/archive/2008/02/28/configuring-the-time-service-enabling-the-debug-log.aspx#7938272</link><pubDate>Fri, 29 Feb 2008 02:34:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7938272</guid><dc:creator>BioSensorAB » Configuring the Time Service: Enabling the Debug Log</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.biosensorab.org/2008/02/28/configuring-the-time-service-enabling-the-debug-log/"&gt;http://www.biosensorab.org/2008/02/28/configuring-the-time-service-enabling-the-debug-log/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7938272" width="1" height="1"&gt;</description></item></channel></rss>