<?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; view</title>
	<atom:link href="http://aconaway.com/tag/view/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>ISCW Notes &#8211; Role-based Views</title>
		<link>http://aconaway.com/2009/11/04/iscw-notes-role-based-views/</link>
		<comments>http://aconaway.com/2009/11/04/iscw-notes-role-based-views/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 03:05:12 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[iscw]]></category>
		<category><![CDATA[roles]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=381</guid>
		<description><![CDATA[I&#8217;m at training for the ISCW test this week, and this topic came up yesterday.  Since it came up last week at the office, I figure it was a sign from $deity that it was time for a blog entry. An admin in another business unit was trying to set up command access for some of his techs.  He was going through a couple of routers and assigning commands to privilege levels so that his techs could access them.  He was having a boat load of problems, though, and couldn&#8217;t get it to work He was trying to allow his guys to run a show ip route, but they also wanted to run show ip route x.x.x.x.  He was assigning commands to privilege level 7 then giving his tech&#8217;s user accounts the same privilege. Router(config)#privilege exec all level 7 show ip route Router(config)#username user1 privilege 7 secret his.password For some reason, this wasn&#8217;t working, though.  The user could log into the router, but they couldn&#8217;t get authorized to run the subcommands as expected.  I blamed it on his non-standard 7600 running a non-standard IOS version (sorry, I can&#8217;t give any more detail without revealing too much about the company), but [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m at training for the ISCW test this week, and this topic came up yesterday.  Since it came up last week at the office, I figure it was a sign from $deity that it was time for a blog entry.</p>
<p>An admin in another business unit was trying to set up command access for some of his techs.  He was going through a couple of routers and assigning commands to privilege levels so that his techs could access them.  He was having a boat load of problems, though, and couldn&#8217;t get it to work</p>
<p>He was trying to allow his guys to run a <em>show ip route</em>, but they also wanted to run <em>show ip route x.x.x.x</em>.  He was assigning commands to privilege level 7 then giving his tech&#8217;s user accounts the same privilege.</p>
<blockquote>
<pre>Router(config)#privilege exec all level 7 show ip route
Router(config)#username user1 privilege 7 secret his.password</pre>
</blockquote>
<p>For some reason, this wasn&#8217;t working, though.  The user could log into the router, but they couldn&#8217;t get authorized to run the subcommands as expected.  I blamed it on his non-standard 7600 running a non-standard IOS version (sorry, I can&#8217;t give any more detail without revealing too much about the company), but I came across a much easier way to do it today in class with role-based views.</p>
<p>A <em>view</em> is a set of commands that can be assigned to users, and, to give a user access to those commands, you make them a member of that view.  You&#8217;ll see that in a second.  You also have a <em>superview</em>, which is a set of views, so a user can be a member of multiple views.</p>
<p>There are some prerequisites to using views.  First of all, you have to have the enable secret set.  You should already have that on a production router, but, if you&#8217;re working in a lab or something, you may have issues.  You also need to have AAA enabled.  That&#8217;s beyond the scope here, but I&#8217;m sure you can figure it out.</p>
<p>To configure a view, you must first be in the root view.  How do you do that?  Just enable to it.</p>
<blockquote>
<pre>Router#enable view</pre>
</blockquote>
<p>You&#8217;ll enter the enable secret, and nothing special will happen, but now you can use the <em>parser view</em> command to create a new view.  This takes you into the view submode which is where you list what commands you want to let users run.  You also set a secret (password) so you can call up the view later.</p>
<p>Let&#8217;s create a view called &#8220;TechView&#8221; for my guy.  We&#8217;ll give members of that view access to the &#8220;show ip route&#8221; commands to include all the subcommands.  We&#8217;ll put the user &#8220;tech1&#8243; in that view, too.</p>
<blockquote>
<pre>Router(config)#parser view TechView
Router(config-view)#secret view.pass
Router(config-view)#command exec include all show ip route
Router(config)#username tech1 view TechView secret tech.pass</pre>
</blockquote>
<p>Every time that &#8220;tech1&#8243; logs in, that user will have access to all the <em>show ip route</em> commands.  If you have a user who is not in that view but wants access to it, they can run the <em>enable view TechView</em> command and enter the secret.  On the console, you&#8217;ll see a message saying that user has switched to the view.  If the user does a <em>show parser view</em>, they can see what view they&#8217;re in.</p>
<blockquote>
<pre>Router#enable view TechView
Password:
Router#
*Mar  1 00:09:04.047: %PARSER-6-VIEW_SWITCH: successfully set to view 'TechView'.
Router#sh parser view
Current view is 'TechView'</pre>
</blockquote>
<p>Send any <span style="text-decoration: line-through;">test vouchers</span> questions my way.</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/11/04/iscw-notes-role-based-views/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

