<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Operations System Administration Network &#187; book:isbn=1590594843</title>
	<atom:link href="http://www.opssa.net/tag/bookisbn1590594843/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opssa.net</link>
	<description>OpsSA.net - SA wisdom and philosophy</description>
	<lastBuildDate>Sat, 02 Jan 2010 05:46:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Synchronizing Time with NTP</title>
		<link>http://www.opssa.net/2009/01/synchronizing-time-with-ntp/</link>
		<comments>http://www.opssa.net/2009/01/synchronizing-time-with-ntp/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 04:32:28 +0000</pubDate>
		<dc:creator>Jim Sheafer</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[book:isbn=1590594843]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.opssa.net/?p=169</guid>
		<description><![CDATA[Synchronized time is often overlooked as unnecessary in a production environment, with the thought that &#8220;close&#8221; is good enough. Let me convince you that accurate, synchronized time is important, easy to setup, and easy to maintain. I&#8217;ll even show you how to setup your own hyper-accurate time source that is inexpensive and easy to setup.
Accurate [...]]]></description>
			<content:encoded><![CDATA[<p>Synchronized time is often overlooked as unnecessary in a production environment, with the thought that &#8220;close&#8221; is good enough. Let me convince you that accurate, synchronized time is important, easy to setup, and easy to maintain. I&#8217;ll even show you how to setup your own hyper-accurate time source that is inexpensive and easy to setup.</p>
<h4>Accurate Time is Important</h4>
<p>The real time clock built in to your computer is accurate enough for most applications. Setting it from your watch can mean it&#8217;s off by a few minutes, but it will maintain that (incorrect) time fairly well. Join a network with that computer, and suddenly the correct time becomes important. Here&#8217;s why:</p>
<ol>
<li><strong>Network Protocols Rely on Accurate Time</strong> &#8211; Many network protocols, including encryption, data transport, and data caching require the sending and receiving hardware to have accurate time to function well.</li>
<li><strong>Log Analysis Needs Accurate Time</strong> &#8211; Analyzing data across machines in multiple log files is impossible without those machines agreeing on the time.</li>
<li><strong>Legal Records Require Accurate Time</strong> &#8211; When you are being cross-examined and are asked &#8220;Well, how can you be sure that was the exact time in your logs?&#8221; you will be able to demonstrate the automatic process that keeps all of your computer clocks accurate.</li>
<li><strong>Contractual Records Require Accurate Time</strong> &#8211; Knowing when a request was fulfilled is needed for billing and royality payment purposes.</li>
</ol>
<h4>Setup the NTP Server</h4>
<p>Most *nix distributions will have NTP available to install if not installed by default. Once installed, configuring the server is as easy as:</p>
<ol>
<li><strong>Select one or two close servers from which to obtain accurate time.</strong> See <a href="http://support.ntp.org/bin/view/Servers/WebHome">The NTP Servers Web</a> for a list of public servers. List these servers with the &#8220;server&#8221; directive in your ntp.conf file.</li>
<li><strong>Use the &#8220;restrict&#8221; directive.</strong> List the network(s) allowed to query the time.</li>
<li><strong>Run ntpdate several times.</strong> Until the &#8220;offset&#8221; returned is less than 1.</li>
<li><strong>Start the ntpd service.</strong> And make sure it runs after a reboot.</li>
</ol>
<p>You <em>are</em> going to set up more than one of these, right? Single Point of Failure (SPoF) is usually a bad thing&#8230;</p>
<h4>Setup the NTP Clients</h4>
<p>Setting up the client is almost the same procedure as setting up the server.</p>
<ol>
<li><strong>Setup your client to use your local NTP servers.</strong> List these servers with the &#8220;server&#8221; directive in your ntp.conf file.</li>
<li><strong>Run ntpdate several times.</strong> Until the &#8220;offset&#8221; returned is less than 1.</li>
<li><strong>Start the ntpd service.</strong> And make sure it runs after a reboot.</li>
</ol>
<p>You may also want to change the startup script to include <strong>ntpdate -b <em>server</em></strong> at start up (and before starting the daemon). This will cause the time to jump to the correct time instead of being slowly adjusted toward the correct time. Handy if your clock is way off.</p>
<h4>Setup a Stratum 1 Server</h4>
<p>Want to setup NTP, but on an isolated network? No problem &#8211; just setup a stratum 1 server. In NTP, &#8220;stratum&#8221; describes the distance from a stable time source &#8211; higher number is further away. Stratum 0 is the reference time source itself, like <a href="http://tf.nist.gov/stations/wwv.html">WWV</a> or a <a href="http://tf.nist.gov/cesium/fountain.htm">cesium clock</a>. Stratum 1 is the computer directly connected to the reference clock. Most reference clocks are too expensive to run yourself, but there is cheap time source that is easy to setup and connect to your NTP server.</p>
<ol>
<li><strong>Obtain a Stratum 0 time reference</strong> &#8211; Use your favorite internet search engine to find a &#8220;pulse-per-second&#8221; GPS receiver. In January of 2009, <a href="https://buy.garmin.com/shop/shop.do?cID=158&#038;pID=223">Garmin has an OEM model for about $70</a>. Since a GPS knows it&#8217;s location by comparing it&#8217;s (derived) hyper-accurate clock against the time broadcast from GPS satelites, it can tell you the exact time, as well as it&#8217;s location. Learn more details in this <a href="http://www.trimble.com/gps/index.shtml">great tutorial</a>.
<li><strong>Connect the GPS to the Server</strong> &#8211; The pulse-per-second feature sends a signal every second down a wire. Plug that wire into your serial port, and NTP can use that time source as an NTP server.</li>
</ol>
<p>This post certainly isn&#8217;t enough information to set up a stratum 1 server, but it really is pretty easy. To really set it up, you need to read the NTP docs, search the &#8216;net, and read the <a href="http://www.linuxquestions.org/linux/answers/Hardware/Microsecond_Precision_From_Garmin_18_LVC_GPS_unit_with_PPS_Signal_And_NTP">great articles</a> that you find.</p>
<p><center><em>Let me know what you think in the comments</em></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.opssa.net/2009/01/synchronizing-time-with-ntp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.346 seconds -->

