RE: Include | exclude | begin: Search features

From: asadovnikov (asadovnikov@comcast.net)
Date: Thu Oct 23 2003 - 01:19:46 GMT-3


This is a regular expression question. There is plenty discussion in
archives but you have to look under BGP regular expressions. There is no
AND, but in many cases you can doe something like

Show run | I Fa.*1/

Which will give you all containing 'Fa' followed later by '1/' much like the
AND.

Best regards,
Alexei

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
David Porta
Sent: Wednesday, October 22, 2003 11:47 PM
To: gs
Subject: Include | exclude | begin: Search features

Hello group,

I have done some research and could not find an answer. I am curious if some
one knows of a method to manipulate the include, exclude and begin search
features in such a way that would allow you to obtain the exact output you
are looking for.

Let me give you an example:
You want to see what interfaces on your running config are configured with
portfast. Therefore you could do: 3550# show run | include Fast|portfast

This will give you the following output:

interface FastEthernet1/1
 spanning-tree portfast
interface FastEthernet1/2
 spanning-tree portfast
interface FastEthernet1/3
interface FastEthernet1/4
interface FastEthernet1/5
interface FastEthernet1/6
interface FastEthernet1/7 ...

However the output represents a logical OR operation, instead of a logical
AND.

Does anyone know a way to perform a search using a logical AND instead of a
logical OR, in order to obtain a more precise output?

Cheers,
_________________________________
David Porta
Ministry of Social Development
Network Operations
+64..04.916.3222

 -------------------------------
 This email message and any attachment(s) is intended only for the
 person(s) or entity(entities) to whom it is addressed. The
 information it contains may be classified as IN CONFIDENCE and may be
legally privileged. If you are not the intended recipient any use,
disclosure or copying of the message or attachment(s) is strictly
 prohibited. If you have received this message in error please
 notify us immediately and destroy it and any attachment(s). Thank you. The
Ministry of Social Development accepts no responsibility for changes made
to this message or to any
 attachment(s) after transmission from the Ministry.
 -------------------------------



This archive was generated by hypermail 2.1.4 : Mon Nov 24 2003 - 07:53:07 GMT-3