Re: 'show run router' equivalent

From: Jason Gardiner (gardiner@xxxxxxxxxx)
Date: Wed Aug 01 2001 - 09:33:05 GMT-3


   
>From CCO:

In Cisco IOS Release 12.0(1)T or later, you can search and filter the
output for show and more commands. This functionality is useful when you
need to sort through large amounts of output,
or if you want to exclude output that you do not need to see.

To use this functionality, enter a show or more command followed by the
"pipe" character (|), one of the keywords begin, include, or exclude,
and an expression that you want to search or
filter on:

command | {begin | include | exclude} regular-expression

Jason Gardiner wrote:
>
> There are actually a few variations that, if the right IOS is in the Lab,
> will be a godsend:
>
> sh <whatever> | include <whatever> - shows only those lines, like grep
> sh <whatever> | begin <whatever> - takes you to the first occurrence
> sh run, then use the / to do a search like in vi.
>
> I like sh run | include neighbor xxx.xxx.xxx.xxx to get all the
> information for a bgp session. Or sh run | include access-list xxx
>
> BUt these only appear to work in certain IOS flavors.
>
> Thanks,
>
> Jason Gardiner
> Supervisor, Engineering Services
> Sprint E|Solutions
>
> "You can swim all day in the Sea of Knowledge and
> still come out completely dry. Most people do."
>
> - Norton Juster
>
> On Tue, 31 Jul 2001, Daniel C. Young wrote:
>
> > I always thought that a 'show run router' would be a really nice command,
> > much like the conveniences of 'show run interface'. Well, 'show run router'
> > unfortunately does not exsist. But I did find an alternate:
> >
> > r3b#sh run | begin router
> > router eigrp 1
> > redistribute ospf 1
> > network 138.20.48.0 0.0.15.255
> > default-metric 10000 1 255 1 1500
> > !
> > router ospf 1
> > redistribute eigrp 1 subnets
> > network 138.20.34.0 0.0.0.255 area 34
> > network 138.20.123.0 0.0.0.255 area 0
> > area 34 virtual-link 138.20.34.4 authentication-key virtual
> > !
> > ip classless
> > no ip http server
> > !
> > access-list 99 permit 138.20.34.4
> > access-list 99 permit 138.20.123.1
> > !
> > !
> > line con 0
> > exec-timeout 0 0
> > privilege level 15
> > logging synchronous
> > transport input none
> > --More--
> >
> > Hope ya'll find it useful.
> >
> > Best,
> >
> > Daniel C. Young
> > Sr. Network Engineer
> > (909) 221-1928 Direct
> > dan.young@sbc.com
> >
> > SBC Internet Data Center
> > 2681 Kelvin Ave.
> > Irvine, CA 92614
> > (949) 221-1900 Main
> > (949) 221-1978 Fax
> > **Please read:http://www.groupstudy.com/list/posting.html
> **Please read:http://www.groupstudy.com/list/posting.html

--
Thanks,

Jason Gardiner Supervisor, Engineering Services Sprint E|Solutions

"You can swim all day in the Sea of Knowledge and still come out completely dry. Most people do."

- Norton Juster **Please read:http://www.groupstudy.com/list/posting.html



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:31:42 GMT-3