From: ccie2be (ccie2be@nyc.rr.com)
Date: Tue May 06 2003 - 00:03:05 GMT-3
Hey Barry,
Thanks for the response. One other person came up with the same idea and
he's a cisco guru so you're in good company. Maybe someday cisco will
integrate the functionality of both commands into one so it will be a little
less clumsy but until then this approach seems workable for double checking
for the dumb errors I seem to make all too often. Jim
----- Original Message -----
From: "Barry Templeton" <barryt28078@yahoo.com>
To: "ccie2be" <ccie2be@nyc.rr.com>
Sent: Monday, May 05, 2003 9:58 PM
Subject: Re: Show command output modifiers
> How about
> term len 10
> sho run | b router
> sho run int x
> no term len 10
>
> --- ccie2be <ccie2be@nyc.rr.com> wrote:
> > OK, so there was a little misunderstanding about
> > what I was looking to do.
> > No, problem. But, is there a way to generate 10
> > consecutive lines of
> > output starting at a certain specified point in the
> > config file?
> >
> > Can you imagine how helpful something like that
> > would be?
> >
> > For example, suppose you wanted to double check the
> > ip addr assigned to an
> > interface against the network specified under the
> > routing process - the
> > cause of hours of frustration on my part due to
> > transposing 2 digits,
> > wouldn't it be great if you could do a sh int x (
> > generate just 3 or 4 lines
> > of output) and then do a show run | b router ( again
> > generating only 8 or 10
> > lines of output) so that one could see side by side
> > the addresses and masks
> > typed in?
> >
> > Thanks, Jim
> >
> > ----- Original Message -----
> > From: "Charles Church" <cchurch@wamnet.com>
> > To: "ccie2be" <ccie2be@nyc.rr.com>
> > Sent: Friday, May 02, 2003 12:38 PM
> > Subject: RE: Show command output modifiers
> >
> >
> > > When you mentioned 'all lines starting with router
> > ospf', I though you
> > meant
> > > each individual line that literally started with
> > 'router ospf'. So what I
> > > wrote would show you all the ospf process lines in
> > your config. But no,
> > it
> > > won't show anything else. But it is handy to show
> > your network
> > statements,
> > > passive interfaces, etc. Sorry I was misleading.
> > >
> > > Chuck Church
> > > CCIE #8776, MCNE, MCSE
> > > Wam!Net Government Services
> > > 13665 Dulles Technology Dr. Ste 250
> > > Herndon, VA 20171
> > > Office: 703-480-2569
> > > Cell: 585-233-2706
> > > cchurch@wamnet.com
> > >
> > > -----Original Message-----
> > > From: ccie2be [mailto:ccie2be@nyc.rr.com]
> > > Sent: Friday, May 02, 2003 12:27 PM
> > > To: Charles Church
> > > Subject: Re: Show command output modifiers
> > >
> > >
> > > Hi Chuck,
> > >
> > > Thanks for your response.
> > >
> > > I think, however, I must be missing something
> > because I don't see how to
> > use
> > > that for this situation, eg. seeing the config
> > file starting at say,
> > router
> > > ospf x and showing the next 8 lines. Jim
> > > ----- Original Message -----
> > > From: "Charles Church" <cchurch@wamnet.com>
> > > To: "ccie2be" <ccie2be@nyc.rr.com>; "Group Study"
> > <ccielab@groupstudy.com>
> > > Sent: Friday, May 02, 2003 8:26 AM
> > > Subject: RE: Show command output modifiers
> > >
> > >
> > > > sh run | include xxxxxx will show only lines
> > that contain xxxxxx .
> > > >
> > > > Chuck Church
> > > > CCIE #8776, MCNE, MCSE
> > > > Wam!Net Government Services
> > > > 13665 Dulles Technology Dr. Ste 250
> > > > Herndon, VA 20171
> > > > Office: 703-480-2569
> > > > Cell: 585-233-2706
> > > > cchurch@wamnet.com
> > > >
> > > > -----Original Message-----
> > > > From: nobody@groupstudy.com
> > [mailto:nobody@groupstudy.com]On Behalf Of
> > > > ccie2be
> > > > Sent: Thursday, May 01, 2003 10:24 PM
> > > > To: Group Study
> > > > Subject: Show command output modifiers
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > Is there a way to limit the output of a show
> > command to a certain number
> > > of
> > > > lines starting at a certain point in the config
> > file?
> > > >
> > > > For example, let's say I want to see the config
> > file starting from
> > "router
> > > > ospf" plus the next 10 lines. I know that "show
> > run | begin router
> > ospf"
> > > > will
> > > > output the config file starting at router ospf
> > but how do I limit the
> > > output
> > > > to just the lines beginning with router ospf?
> > > >
> > > > Thanks, Jim
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
This archive was generated by hypermail 2.1.4 : Mon Jun 02 2003 - 15:13:37 GMT-3