[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 14:18:57 EDT 2010
> 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.
More information about the cisco-nsp
mailing list