<?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>Sys-Admin Information&#039;s &#187; NTP</title>
	<atom:link href="http://sysinfo.bascomp.org/tag/ntp/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting NTP Server &amp; Client in Solaris 10 (update)</title>
		<link>http://sysinfo.bascomp.org/2008/02/setting-ntp/</link>
		<comments>http://sysinfo.bascomp.org/2008/02/setting-ntp/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 06:34:25 +0000</pubDate>
		<dc:creator>Gun nee</dc:creator>
				<category><![CDATA[SMF]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[NTP]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/02/27/setting-ntp/</guid>
		<description><![CDATA[Setting NTP ( Network Time Protocol) on Solaris 10
Configuring an NTP Server 
1. Edit file ntp.conf

bash&#62; cp /etc/inet/ntp.server /etc/inet/ntp.conf
bash&#62; vi /etc/inet/ntp.conf

Add server address for ntp server

server 1.id.pool.ntp.org
server 1.asia.pool.ntp.org
server 3.asia.pool.ntp.org
broadcast 224.0.1.1 ttl 4
&#160;
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
&#160;
keys /etc/inet/ntp.keys
trustedkey [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Setting NTP ( Network Time Protocol) on Solaris 10</strong></p>
<p><strong>Configuring an NTP Server </strong><br />
<strong>1. Edit file ntp.conf</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.server <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf</pre></div></div>

<p>Add server address for ntp server</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">server 1.id.pool.ntp.org
server 1.asia.pool.ntp.org
server 3.asia.pool.ntp.org
broadcast 224.0.1.1 ttl 4
&nbsp;
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
&nbsp;
keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0</pre></div></div>

<p>Save your change configuration</p>
<p><strong>2. Refresh daemon NTP</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>ntp<span style="color: #000000; font-weight: bold;">/</span>ntp.drift
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm <span style="color: #7a0874; font-weight: bold;">enable</span> svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp</pre></div></div>

<p><strong>Configuring an NTP Client </strong><br />
<strong>1. Edit file ntp.conf</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.client <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>ntp<span style="color: #000000; font-weight: bold;">/</span>ntp.drift</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inet<span style="color: #000000; font-weight: bold;">/</span>ntp.conf
    server 10.10.10.1 prefer <span style="color: #666666; font-style: italic;"># IP NTP Server  Primary</span>
    server 10.10.10.2         <span style="color: #666666; font-style: italic;"># IP NTP Server Secondary</span>
    driftfile <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>ntp<span style="color: #000000; font-weight: bold;">/</span>ntp.drift</pre></div></div>

<p><strong>2. Refresh daemon NTP</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm <span style="color: #7a0874; font-weight: bold;">enable</span> svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm refresh svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp
<span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> svcadm restart svc:<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>ntp</pre></div></div>

<p>You can use "ntpq -p" to monitor ntpd's performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/02/setting-ntp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
