RE: show int | include ... [7:26422]

2001-11-16 Thread Ole Drews Jensen

Thanks Kevin,

Have a great weekend,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
~~~ 
 http://www.RouterChief.com
~~~
 NEED A JOB ???
 http://www.oledrews.com/job
~~~


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: RE: show int | include ... [7:26422]


You're quite welcome.

As best I can tell, the regular expression functionality cannot include or
exclude one line of text based on the contents of another line of text,
unless you're willing to use the begin parameter & put up with all the
output past the line of interest.

It's also my (admittedly shallow) understanding that you cannot use both
the include & exclude argument as an output modifier for the same instance
of the show command.

Of course, since i backed into this business via exposure to x86 & AT
architecture and microsoft operating systems, my best guesses regarding
such functionality are not worth too much. If someone who actually
understands this stuff wants to chime in, please feel free to do so.






Ole Drews Jensen  on 11/15/2001 10:56:32 PM
To:   "'[EMAIL PROTECTED]'" ,
      [EMAIL PROTECTED]
cc:
Subject:  RE: show int | include ... [7:26422]


THANKS!!

That worked - incredible that you cannot use spaces between the searched
words and the |'s.

The only questions left now is what if you only want to see the interfaces
that are FastEthernet AND has a description :-) ???

I guess that's not possible, but it's worth a try...

Thanks again Kevin,

Ole


 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
 http://www.RouterChief.com

 NEED A JOB ???
 http://www.oledrews.com/job




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 6:05 PM
To: [EMAIL PROTECTED]
Subject: Re: show int | include ... [7:26422]


show int | include FastE|Description

i usually wind up entering

show int | include line|Description|Internet


this feature is the reason i find any excuse at all to avoid working with
routers bearing 11.x IOS.


http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120

t/120t1/cliparse.htm





"Ole Drews Jensen" @groupstudy.com on 11/15/2001
06:10:43 PM

Please respond to "Ole Drews Jensen"

Sent by:  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Cullimore)
Subject:  show int | include ... [7:26422]


I wanted to play around with the | include option on the show command, but
I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a

 show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

 show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

 show int | include FastEthernet Description
 show int | include FastEthernet , Description
 show int | include FastEthernet | Description
 show int | include FastEthernet | include Description
 show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times, but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
~~~
 http://www

RE: show int | include ... [7:26422]

2001-11-16 Thread [EMAIL PROTECTED]

You're quite welcome.

As best I can tell, the regular expression functionality cannot include or
exclude one line of text based on the contents of another line of text,
unless you're willing to use the begin parameter & put up with all the
output past the line of interest.

It's also my (admittedly shallow) understanding that you cannot use both
the include & exclude argument as an output modifier for the same instance
of the show command.

Of course, since i backed into this business via exposure to x86 & AT
architecture and microsoft operating systems, my best guesses regarding
such functionality are not worth too much. If someone who actually
understands this stuff wants to chime in, please feel free to do so.






Ole Drews Jensen  on 11/15/2001 10:56:32 PM
To:   "'[EMAIL PROTECTED]'" ,
      [EMAIL PROTECTED]
cc:
Subject:  RE: show int | include ... [7:26422]


THANKS!!

That worked - incredible that you cannot use spaces between the searched
words and the |'s.

The only questions left now is what if you only want to see the interfaces
that are FastEthernet AND has a description :-) ???

I guess that's not possible, but it's worth a try...

Thanks again Kevin,

Ole


 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
 http://www.RouterChief.com

 NEED A JOB ???
 http://www.oledrews.com/job




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 6:05 PM
To: [EMAIL PROTECTED]
Subject: Re: show int | include ... [7:26422]


show int | include FastE|Description

i usually wind up entering

show int | include line|Description|Internet


this feature is the reason i find any excuse at all to avoid working with
routers bearing 11.x IOS.


http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120

t/120t1/cliparse.htm





"Ole Drews Jensen" @groupstudy.com on 11/15/2001
06:10:43 PM

Please respond to "Ole Drews Jensen"

Sent by:  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Cullimore)
Subject:  show int | include ... [7:26422]


I wanted to play around with the | include option on the show command, but
I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a

 show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

 show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

 show int | include FastEthernet Description
 show int | include FastEthernet , Description
 show int | include FastEthernet | Description
 show int | include FastEthernet | include Description
 show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times, but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
~~~
 http://www.RouterChief.com
~~~
 NEED A JOB ???
 http://www.oledrews.com/job
~~~

This message may contain confidential and/or privileged
information.  If you are not the addressee or authorized to
receive this for the addressee, you must not use, copy,
disclose or take any action based on this message or any
information herein.  If you have received this message in
error, please advise the sender immediately by reply e-mail
and delete this message.  Thank you for your cooperation.
=

RE: show int | include ... [7:26422]

2001-11-16 Thread John Neiberger

Yeah, I just read that.  Very cool!  I was playing around with those
commands using some pretty wild regular expressions and I got some
wonderful results.  

John

>>> Ole Drews Jensen  11/15/01 8:57:24 PM >>>
Actually John, you CAN do it.

See the reply I got from Kevin Cullimore.

Thanks,

Ole


 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED] 
 http://www.RouterChief.com 

 NEED A JOB ???
 http://www.oledrews.com/job 




-Original Message-
From: John Neiberger [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 15, 2001 5:31 PM
To: [EMAIL PROTECTED] 
Subject: Re: show int | include ... [7:26422]


The  include option works like grep in unix.  AFAIK, there is no way
to
do what you want from the command line.

You could add the words "FastEthernet" to each description!  :-)

Then, show int | inc FastEthernet would work.  

John

>>> "Ole Drews Jensen"  11/15/01 4:10:43 PM >>>
I wanted to play around with the | include option on the show command,
but I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a 

show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

show int | include FastEthernet Description
show int | include FastEthernet , Description
show int | include FastEthernet | Description
show int | include FastEthernet | include Description
show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times,
but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED] 
~~~ 
 http://www.RouterChief.com 
~~~
 NEED A JOB ???
 http://www.oledrews.com/job 
~~~




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=26475&t=26422
--
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



RE: show int | include ... [7:26422]

2001-11-15 Thread Ole Drews Jensen

Actually John, you CAN do it.

See the reply I got from Kevin Cullimore.

Thanks,

Ole


 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
 http://www.RouterChief.com

 NEED A JOB ???
 http://www.oledrews.com/job




-Original Message-
From: John Neiberger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 5:31 PM
To: [EMAIL PROTECTED]
Subject: Re: show int | include ... [7:26422]


The  include option works like grep in unix.  AFAIK, there is no way to
do what you want from the command line.

You could add the words "FastEthernet" to each description!  :-)

Then, show int | inc FastEthernet would work.  

John

>>> "Ole Drews Jensen"  11/15/01 4:10:43 PM >>>
I wanted to play around with the | include option on the show command,
but I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a 

show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

show int | include FastEthernet Description
show int | include FastEthernet , Description
show int | include FastEthernet | Description
show int | include FastEthernet | include Description
show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times,
but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED] 
~~~ 
 http://www.RouterChief.com 
~~~
 NEED A JOB ???
 http://www.oledrews.com/job 
~~~




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=26438&t=26422
--
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



RE: show int | include ... [7:26422]

2001-11-15 Thread Ole Drews Jensen

THANKS!!

That worked - incredible that you cannot use spaces between the searched
words and the |'s.

The only questions left now is what if you only want to see the interfaces
that are FastEthernet AND has a description :-) ???

I guess that's not possible, but it's worth a try...

Thanks again Kevin,

Ole


 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
 http://www.RouterChief.com

 NEED A JOB ???
 http://www.oledrews.com/job




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 6:05 PM
To: [EMAIL PROTECTED]
Subject: Re: show int | include ... [7:26422]


show int | include FastE|Description

i usually wind up entering

show int | include line|Description|Internet


this feature is the reason i find any excuse at all to avoid working with
routers bearing 11.x IOS.


http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120
t/120t1/cliparse.htm





"Ole Drews Jensen" @groupstudy.com on 11/15/2001
06:10:43 PM

Please respond to "Ole Drews Jensen" 

Sent by:  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:    (bcc: Kevin Cullimore)
Subject:  show int | include ... [7:26422]


I wanted to play around with the | include option on the show command, but
I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a

 show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

 show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

 show int | include FastEthernet Description
 show int | include FastEthernet , Description
 show int | include FastEthernet | Description
 show int | include FastEthernet | include Description
 show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times, but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
~~~
 http://www.RouterChief.com
~~~
 NEED A JOB ???
 http://www.oledrews.com/job
~~~

This message may contain confidential and/or privileged
information.  If you are not the addressee or authorized to
receive this for the addressee, you must not use, copy,
disclose or take any action based on this message or any
information herein.  If you have received this message in
error, please advise the sender immediately by reply e-mail
and delete this message.  Thank you for your cooperation.





Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=26437&t=26422
--
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



Re: show int | include ... [7:26422]

2001-11-15 Thread [EMAIL PROTECTED]

show int | include FastE|Description

i usually wind up entering

show int | include line|Description|Internet


this feature is the reason i find any excuse at all to avoid working with
routers bearing 11.x IOS.


http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t1/cliparse.htm





"Ole Drews Jensen" @groupstudy.com on 11/15/2001
06:10:43 PM

Please respond to "Ole Drews Jensen" 

Sent by:  [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Kevin Cullimore)
Subject:  show int | include ... [7:26422]


I wanted to play around with the | include option on the show command, but
I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a

 show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

 show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

 show int | include FastEthernet Description
 show int | include FastEthernet , Description
 show int | include FastEthernet | Description
 show int | include FastEthernet | include Description
 show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times, but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
~~~
 http://www.RouterChief.com
~~~
 NEED A JOB ???
 http://www.oledrews.com/job
~~~

This message may contain confidential and/or privileged
information.  If you are not the addressee or authorized to
receive this for the addressee, you must not use, copy,
disclose or take any action based on this message or any
information herein.  If you have received this message in
error, please advise the sender immediately by reply e-mail
and delete this message.  Thank you for your cooperation.





Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=26426&t=26422
--
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



Re: show int | include ... [7:26422]

2001-11-15 Thread John Neiberger

The  include option works like grep in unix.  AFAIK, there is no way to
do what you want from the command line.

You could add the words "FastEthernet" to each description!  :-)

Then, show int | inc FastEthernet would work.  

John

>>> "Ole Drews Jensen"  11/15/01 4:10:43 PM >>>
I wanted to play around with the | include option on the show command,
but I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a 

show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

show int | include FastEthernet Description
show int | include FastEthernet , Description
show int | include FastEthernet | Description
show int | include FastEthernet | include Description
show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times,
but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED] 
~~~ 
 http://www.RouterChief.com 
~~~
 NEED A JOB ???
 http://www.oledrews.com/job 
~~~




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=26425&t=26422
--
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



show int | include ... [7:26422]

2001-11-15 Thread Ole Drews Jensen

I wanted to play around with the | include option on the show command, but I
can't get it to do what I want, and I can't find any docs on it.

I want to include the interface and description of all FastEthernet
interfaces.

If I do a 

show int | include FastEthernet

it will show the line where it says FastEthernet for all FastEthernet
interfaces.

Example:

SANTA#show int | include FastEthernet
FastEthernet0/1 is up, line protocol is up
FastEthernet0/2 is up, line protocol is up
FastEthernet0/3 is down, line protocol is down
FastEthernet0/4 is down, line protocol is down
FastEthernet0/5 is down, line protocol is down
FastEthernet0/6 is up, line protocol is up
FastEthernet0/7 is up, line protocol is up
FastEthernet0/8 is up, line protocol is up
FastEthernet0/9 is up, line protocol is up
FastEthernet0/10 is down, line protocol is down
FastEthernet0/11 is down, line protocol is down
FastEthernet0/12 is up, line protocol is up

If I do a

show int | include Description

it will show the line where there is a description for all interfaces.

Example:

SANTA#show int | include Description
  Description: LINK TO SWITCH IN SUITE 1209
  Description: LINK TO HUB IN SUITE 1303
  Description: HP LaserJet 4 Plus
  Description: HP DeskJet 930C
  Description: FIREWALL
  Description: Dave
  Description: Cindy
  Description: Lauren
  Description: Sharon

But, how do I get both?

I have tried the following with out luck:

show int | include FastEthernet Description
show int | include FastEthernet , Description
show int | include FastEthernet | Description
show int | include FastEthernet | include Description
show int | include FastEthernet include Description

This is one of those stupid command options you've seen so many times, but
never used.

Any comments?

Thanks in advance,

Ole

~~~
 Ole Drews Jensen
 Systems Network Manager
 CCNP, MCSE, MCP+I
 RWR Enterprises, Inc.
 [EMAIL PROTECTED]
~~~ 
 http://www.RouterChief.com
~~~
 NEED A JOB ???
 http://www.oledrews.com/job
~~~




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=26422&t=26422
--
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]