Re: "show ip bgp regexp" versus "show ip bgp quote-regexp"

From: Bogdan Sass (bogdan.sass@catc.ro)
Date: Wed Aug 20 2008 - 05:38:24 ART


Huan Pham wrote:
> I do not see any difference between these commands.
>
> The info from command reference for quote-regexp states that "the
> regular expression has to be an exact match.", whereas the other command
> (regexp) does not have this note.
>
> Can anyone please give me an example showing the difference btw the two?
> Thanks.
>
>
    Taken from here:
http://blog.ioshints.info/2008/06/display-bgp-routes-originated-in-local.html
:

"If you want to apply a show filter to the printout of this command, you
have to use the *quote-regexp** *variant; otherwise the rest of the line
is interpreted as regular expression."

    It simply allows you to specify where the regexp stops, so that you
can use show filters (i.e., | i 5555 ).

-- 
Bogdan Sass
CCAI,CCNP,CCSP,JNCIA-ER
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Mon Sep 01 2008 - 08:15:31 ART