<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cli on Aaron&#39;s Worthless Words</title>
    <link>https://a996c8ee.aww-3cz.pages.dev/tags/cli/</link>
    <description>Recent content in Cli on Aaron&#39;s Worthless Words</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 05 Nov 2009 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://a996c8ee.aww-3cz.pages.dev/tags/cli/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ISCW Notes - Role-based Views</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2009/11/iscw-notes-role-based-views/</link>
      <pubDate>Thu, 05 Nov 2009 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2009/11/iscw-notes-role-based-views/</guid>
      <description>&lt;p&gt;I&amp;rsquo;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.&lt;/p&gt;&#xA;&lt;p&gt;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&amp;rsquo;t get it to work&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using SSH to Run Commands on a Router or Switch</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2009/04/using-ssh-to-run-commands-on-a-router-or-switch/</link>
      <pubDate>Thu, 30 Apr 2009 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2009/04/using-ssh-to-run-commands-on-a-router-or-switch/</guid>
      <description>&lt;p&gt;SSH is more than just a shell.  You can copy files from and to a server or piece of network gear with it.  You can use it to tunnel traffic.  Possibly my favorite, though, is to use SSH to run a command on a remote box without interacting with a shell.&lt;/p&gt;&#xA;&lt;p&gt;One of my biggest pet peeves with IOS (or pretty much any Cisco OS) is the lack of complex filtering.  Let&amp;rsquo;s say I want to look at all the downed ports and interfaces on modules 3 and 6 of my 6509.  I can&amp;rsquo;t easily do that with command from the IOS, but, on my Linux box, I can use multiple &lt;em&gt;grep&lt;/em&gt; commands to get exactly what I want really easily.  Let&amp;rsquo;s work through the example, shall we?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using the Pipe in IOS</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2008/04/using-the-pipe-in-ios/</link>
      <pubDate>Mon, 14 Apr 2008 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2008/04/using-the-pipe-in-ios/</guid>
      <description>&lt;p&gt;A lot of IOS commands give you a lot of information. Most of the time, though, it&amp;rsquo;s way too much information, and it sure would be nice to do some grep-like stuff on the output, right? Well, just like on Linux, you can use the pipe (|) to do such. That&amp;rsquo;s not a butt cheek, by the way.&lt;/p&gt;&#xA;&lt;p&gt;The most useful function is the &lt;em&gt;include&lt;/em&gt; directive. This is the equivalent of just plain &lt;em&gt;grep&lt;/em&gt; on Linux, and will show you only lines that match a string that you give it. Say that you want to find what ports on your switch are down, but don&amp;rsquo;t want to grind through all the lines of a &lt;em&gt;show ip interface brief&lt;/em&gt;. If you just pipe it to the &lt;em&gt;include&lt;/em&gt; command followed by the word &amp;ldquo;down&amp;rdquo;, you&amp;rsquo;ll see something like this.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Common Cisco IOS Commands</title>
      <link>https://a996c8ee.aww-3cz.pages.dev/posts/2007/08/common-cisco-ios-commands/</link>
      <pubDate>Fri, 17 Aug 2007 00:00:00 +0000</pubDate>
      <guid>https://a996c8ee.aww-3cz.pages.dev/posts/2007/08/common-cisco-ios-commands/</guid>
      <description>&lt;p&gt;Here&amp;rsquo;s a list of IOS commands that I use all the time that aren&amp;rsquo;t a part of the basics. I obviously use more than just these, and you do, too, but I hope there&amp;rsquo;s at least one eye-opener in there.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;em&gt;show env all&lt;/em&gt;&lt;/strong&gt;: Shows the environment status, including fan, power supplies, etc. Good for making sure the environment is alright. &lt;strong&gt;&lt;em&gt;show history&lt;/em&gt;&lt;/strong&gt;: Shows your command history since you logged onto the device. Good for remembering what command you put into get those stats the boss needs. Configuration changes don&amp;rsquo;t show up here. &lt;strong&gt;&lt;em&gt;show inventory&lt;/em&gt;&lt;/strong&gt;: Shows a nice list of what the device has hardware-wise. It&amp;rsquo;s good for a router with a bunch of modules or a switch with a bunch of cards. &lt;strong&gt;&lt;em&gt;show interface trunk&lt;/em&gt;&lt;/strong&gt;: Shows all the trunks on a switch along with pruning information. Good for making sure all VLANs are propagating around the network. &lt;strong&gt;&lt;em&gt;show interface capabilities&lt;/em&gt;&lt;/strong&gt;: Shows what the interface is capable of doing &amp;ndash; not just what&amp;rsquo;s its configured to do. &lt;strong&gt;&lt;em&gt;show interface counters&lt;/em&gt;&lt;/strong&gt;: Shows byte and packet information for every interface. Good for quickly showing statistics without having to look at all the &lt;em&gt;show interface&lt;/em&gt; garbage. &lt;strong&gt;&lt;em&gt;show mac-address-table&lt;/em&gt;&lt;/strong&gt;: Shows the CAM table on a switch. Good for tracking down where a host is plugged into. &lt;strong&gt;&lt;em&gt;show tcp brief&lt;/em&gt;&lt;/strong&gt;: Shows all TCP connections associated with the device like SSH sessions or BGP. &lt;strong&gt;&lt;em&gt;show users&lt;/em&gt;&lt;/strong&gt;: Shows who&amp;rsquo;s logged onto the device. Good for finding a line to clear to kick everyone off the box.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
