<?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>Aaron&#039;s Worthless Words &#187; time</title>
	<atom:link href="http://aconaway.com/tag/time/feed/" rel="self" type="application/rss+xml" />
	<link>http://aconaway.com</link>
	<description>It&#039;s possible that someone somewhere needs to see this.</description>
	<lastBuildDate>Wed, 01 Feb 2012 02:07:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Stubby Post &#8211; Time-based ACLs and Policy-maps</title>
		<link>http://aconaway.com/2010/04/28/stubby-post-time-based-acls-and-policy-maps/</link>
		<comments>http://aconaway.com/2010/04/28/stubby-post-time-based-acls-and-policy-maps/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 21:16:26 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=714</guid>
		<description><![CDATA[Look.  Time-based ACLs work in policy-maps.]]></description>
			<content:encoded><![CDATA[<p>Certain divisions of the company tend to shoot themselves in the foot by kicking off large file transfers during business hours, so I had a thought that maybe we could use time-based ACLs to do some QoSing for those guys.  I fired up GNS3 with a 3600 running 12.4(25b) with some virtual PCs on it&#8217;s Ethernet interfaces.</p>
<blockquote>
<pre>time-range BUSINESSHOURS
 periodic daily 8:00 to 17:00
!
ip access-list extended PINGS
 permit icmp any any time-range BUSINESSHOURS
!
class-map match-all PINGS
 match access-group name PINGS
!
policy-map PM-F0/0-OUT
 class PINGS</pre>
</blockquote>
<p>First, I set the router&#8217;s time to outside of the time range and sent some pings over.</p>
<blockquote>
<pre>R1#sh clock
00:01:13.107 UTC Wed Apr 28 2010
R1#sh access-lists
Extended IP access list PINGS
    10 permit icmp any any time-range BUSINESSHOURS (inactive)
R1#sh policy-map int f0/0
 FastEthernet0/0

  Service-policy output: PM-F0/0-OUT

    Class-map: PINGS (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps
      Match: access-group name PINGS

    Class-map: class-default (match-any)
      11 packets, 1140 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any</pre>
</blockquote>
<p>Alright, that&#8217;s expected.  Now let&#8217;s set the clock to within the time range and repeat.</p>
<blockquote>
<pre>R1#sh clock
13:00:12.887 UTC Wed Apr 28 2010
R1#sh access-lists
Extended IP access list PINGS
    10 permit icmp any any time-range BUSINESSHOURS (active) (10 matches)
R1#sh policy-map int f0/0
 FastEthernet0/0

  Service-policy output: PM-F0/0-OUT

    Class-map: PINGS (match-all)
      10 packets, 980 bytes
      5 minute offered rate 0 bps
      Match: access-group name PINGS

    Class-map: class-default (match-any)
      20 packets, 1970 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any</pre>
</blockquote>
<p>How about that?  Time-based ACLs seems to work with policy-maps.  I didn&#8217;t know that.</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/04/28/stubby-post-time-based-acls-and-policy-maps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unix Epoch + 1234567890 = Next Friday</title>
		<link>http://aconaway.com/2009/02/03/unix-epoch-1234567890-next-friday/</link>
		<comments>http://aconaway.com/2009/02/03/unix-epoch-1234567890-next-friday/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 16:20:32 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[epoch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=196</guid>
		<description><![CDATA[I&#8217;m kind of an obsessive-compulsive when it comes to numbers (1, 2, 3, 4, 5&#8230;), so I&#8217;m fairly excited about next Friday (..6, 7, 8, 9, 10&#8230;) when Epoch time reaches 1234567890 at 18:31:30 on 13 February(&#8230;11, 12, 13, 14, 15&#8230;).  I&#8217;m sure my ADD will kick in (Oh, look.  A squirrel!) right before, but I&#8217;ll try to remember to run to a Linux box and type date +%s (&#8230;16, 17, 18, 19, 20!  Made it!). Aaron ConawayI like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.Website - More Posts]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m kind of an <a title="Wikipedia.com -- OCD" href="http://en.wikipedia.org/wiki/Obsessive-compulsive_disorder">obsessive-compulsive</a> when it comes to numbers (1, 2, 3, 4, 5&#8230;), so I&#8217;m fairly excited about next Friday (..6, 7, 8, 9, 10&#8230;) when <a title="MatthewHelmke.net -- Unix Time - 1234567890" href="http://matthewhelmke.net/2009/01/15/unix-time-1234567890/">Epoch time reaches 1234567890</a> at 18:31:30 on 13 February(&#8230;11, 12, 13, 14, 15&#8230;).  I&#8217;m sure my ADD will kick in (<a title="CrazyDotTshirts.com - Shirts Built By Dog Robots" href="http://www.crazydogtshirts.com/servlet/the-1135/squirrel-t-dsh-shirt,-funny-shirt,/Detail">Oh, look.  A squirrel!</a>) right before, but I&#8217;ll try to remember to run to a Linux box and type <em>date +%s</em> (&#8230;16, 17, 18, 19, 20!  Made it!).</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2009/02/03/unix-epoch-1234567890-next-friday/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Leap Second</title>
		<link>http://aconaway.com/2009/01/02/leap-second/</link>
		<comments>http://aconaway.com/2009/01/02/leap-second/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 14:34:48 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=179</guid>
		<description><![CDATA[Did anyone notice (or care about) the leap second?  I did neither.  Here&#8217;s some cool output from Kevin Oberman on the NANOG list, though. bash-2.05b# date Thu Jan  1 00:59:58 CET 2009 bash-2.05b# date Thu Jan  1 00:59:59 CET 2009 bash-2.05b# date Thu Jan  1 00:59:60 CET 2009 bash-2.05b# date Thu Jan  1 01:00:00 CET 2009 bash-2.05b# date Thu Jan  1 01:00:01 CET 2009 bash-2.05b# Aaron ConawayI like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.Website - More Posts]]></description>
			<content:encoded><![CDATA[<p>Did anyone notice (or care about) the leap second?  I did neither.  Here&#8217;s some cool output from Kevin Oberman on the <a title="NANOG.org -- Welcoem to NANOG!" href="http://nanog.org/">NANOG </a>list, though.</p>
<blockquote><p>bash-2.05b# date<br />
Thu Jan  1 00:59:58 CET 2009<br />
bash-2.05b# date<br />
Thu Jan  1 00:59:59 CET 2009<br />
bash-2.05b# date<br />
Thu Jan  1 00:59:60 CET 2009<br />
bash-2.05b# date<br />
Thu Jan  1 01:00:00 CET 2009<br />
bash-2.05b# date<br />
Thu Jan  1 01:00:01 CET 2009<br />
bash-2.05b#</p></blockquote>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2009/01/02/leap-second/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

