[c-nsp] can I use | pipe line such as "| inc xxx" and regexp such as "regexp ^$" both , when I execute "show bgp "

Per Carlson pelle at hemmop.com
Thu Sep 23 12:45:55 EDT 2010


Hi
> RP/0/RP0/CPU0:xxxx#sh bgp regexp ^$ | Inc ?
> LINE  <cr>

I don't know what XR version you are running, but I get different
results on 3.6.3 and 3.9.0.

On 3.6.3 I get the same result as you: no matches.

RP/0/7/CPU0:mormor#show bgp regexp ^$ | in /30
RP/0/7/CPU0:mormor#

But on 3.9.0 it works as expected(?):

RP/0/0/CPU0:melker#show bgp regexp ^$ | in /30
*>i10.100.10.0/30     172.16.1.6               0    100      0 ?
*> 10.100.10.132/30   0.0.0.0                  0         32768 ?
*>i10.255.1.0/30      172.16.1.7               0    100      0 ?
*>i160.198.7.0/30     172.16.1.10              0    100      0 ?
RP/0/0/CPU0:melker#


And yes, there are other prefixes as well matching ^$:

RP/0/0/CPU0:melker#show bgp regexp ^$ | utility wc -l
       31
RP/0/0/CPU0:melker#

Note: both routers are GSRs.

-- 
Pelle

RFC1925, truth 11:
 Every old idea will be proposed again with a different name and
 a different presentation, regardless of whether it works.



More information about the cisco-nsp mailing list