[c-nsp] can I use | pipe line such as "| inc xxx" and regexp such as "regexp ^$" both , when I execute "show bgp "
Aaron
dudepron at gmail.com
Fri Sep 24 09:56:23 EDT 2010
There was a change done in 3.8 to allow for multiple "|" so in 3.8 and later
if you want multiple pipes you have to use " " after the first one.
On Thu, Sep 23, 2010 at 21:54, 陈云峰 <chenyf at qware.com> wrote:
> hi Pelle,
>
> It`s 3.6.3 here, thank you very much,now I know it`s coursed by
> different IOS-XR version release,
>
>
> Stephen.Chen
>
> 2010/9/24 Per Carlson <pelle at hemmop.com>
>
> > > Note If the regular expression contains spaces, it must be specified
> and
> > > surrounded by quotation marks.
> >
> > Tying up the some loose ends: quoting works fine in 3.9.0
> >
> >
> > RP/0/0/CPU0:melker#show bgp regexp ^32
> > Network Next Hop Metric LocPrf Weight Path
> > *> 10.100.0.0/16 10.100.10.133 0 0 32 i
> > *> 10.100.10.4/30 10.100.10.133 0 32 ?
> > *> 10.100.10.128/30 10.100.10.133 0 32 ?
> > *> 172.16.3.15/32 10.100.10.133 0 32 15 i
> > * 172.16.3.30/32 10.100.10.133 0 32 15 30
> i
> > *> 172.16.3.32/32 10.100.10.133 0 0 32 i
> > *> 192.168.15.0/24 10.100.10.133 0 32 15 i
> > * 192.168.30.0/24 10.100.10.133 0 32 15 30
> i
> > RP/0/0/CPU0:melker#
> >
> >
> > RP/0/0/CPU0:melker#show bgp regexp "^32"
> > Network Next Hop Metric LocPrf Weight Path
> > *> 10.100.0.0/16 10.100.10.133 0 0 32 i
> > *> 10.100.10.4/30 10.100.10.133 0 32 ?
> > *> 10.100.10.128/30 10.100.10.133 0 32 ?
> > *> 172.16.3.15/32 10.100.10.133 0 32 15 i
> > * 172.16.3.30/32 10.100.10.133 0 32 15 30
> i
> > *> 172.16.3.32/32 10.100.10.133 0 0 32 i
> > *> 192.168.15.0/24 10.100.10.133 0 32 15 i
> > * 192.168.30.0/24 10.100.10.133 0 32 15 30
> i
> > RP/0/0/CPU0:melker#
> >
> > RP/0/0/CPU0:melker#show bgp regexp "^32 "
> > Network Next Hop Metric LocPrf Weight Path
> > *> 172.16.3.15/32 10.100.10.133 0 32 15 i
> > * 172.16.3.30/32 10.100.10.133 0 32 15 30
> i
> > *> 192.168.15.0/24 10.100.10.133 0 32 15 i
> > * 192.168.30.0/24 10.100.10.133 0 32 15 30
> i
> > RP/0/0/CPU0:melker#
> >
> >
> > --
> > Pelle
> >
> > RFC1925, truth 11:
> > Every old idea will be proposed again with a different name and
> > a different presentation, regardless of whether it works.
> >
> > _______________________________________________
> > cisco-nsp mailing list cisco-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/cisco-nsp
> > archive at http://puck.nether.net/pipermail/cisco-nsp/
> >
> _______________________________________________
> cisco-nsp mailing list cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
More information about the cisco-nsp
mailing list