Re: [Mikrotik] Show all routes with cetain ASN

2011-02-10 Thread Sam Tetherow
Wow, you just made my week! On 2/9/11 7:19 PM, Blake Covarrubias wrote: A tilde allows you to use POSIX extended regular expressions in your search parameters. So, you could do things like this: # Originating from AS123 /ip route print where bgp-as-path~",\?123\$" # Originating from AS123 (ig

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Josh Luthman
That will do! Thanks! Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373 On Wed, Feb 9, 2011 at 8:34 PM, Blake Covarrubias wrote: > I only found it mentioned here. > > http://wiki.mikrotik.com/wiki/Manual:Scripting#Other_Operators > > -- > Blake Cova

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Blake Covarrubias
I only found it mentioned here. http://wiki.mikrotik.com/wiki/Manual:Scripting#Other_Operators -- Blake Covarrubias On Feb 9, 2011, at 6:33 PM, Josh Luthman wrote: > Wow that's useful. Is this documented somewhere? > > Josh Luthman > Office: 937-552-2340 > Direct: 937-552-2343 > 1100 Wayne St

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Tristram Cheer
It's Mikrotik, Of course not :P On 10 February 2011 14:33, Josh Luthman wrote: > Wow that's useful. Is this documented somewhere? > > Josh Luthman > Office: 937-552-2340 > Direct: 937-552-2343 > 1100 Wayne St > Suite 1337 > Troy, OH 45373 > > > On Wed, Feb 9, 2011 at 8:19 PM, Blake Covarrubias

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Josh Luthman
Wow that's useful. Is this documented somewhere? Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373 On Wed, Feb 9, 2011 at 8:19 PM, Blake Covarrubias wrote: > A tilde allows you to use POSIX extended regular expressions in your search > parameters. S

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Blake Covarrubias
A tilde allows you to use POSIX extended regular expressions in your search parameters. So, you could do things like this: # Originating from AS123 /ip route print where bgp-as-path~",\?123\$" # Originating from AS123 (ignore prepending) /ip route print where bgp-as-path~",(123,\?)+\$" # Transi

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Josh Luthman
Wait you're actually supposed to use tilde? Does that mean something like *1234* with asterisks as wildcards? Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373 On Wed, Feb 9, 2011 at 7:13 PM, Blake Covarrubias wrote: > Are you sure you're using the

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Blake Covarrubias
Are you sure you're using the tilde character and not the equal sign? What ROS version? I don't have any MirkoTik routers with full views, but this works internally on my iBGP routes. -- Blake Covarrubias On Feb 9, 2011, at 4:57 PM, Tristram Cheer wrote: > Yeah I've tried that, it's not worki

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Tristram Cheer
Yeah I've tried that, it's not working :( If I do the full AS path it prints but it's not searching for a partial match On 10 February 2011 12:41, Blake Covarrubias wrote: > /ip route print where bgp-as-path~"1234" > > This is slow on routers with full tables due to the way RouterOS scans and >

Re: [Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Blake Covarrubias
/ip route print where bgp-as-path~"1234" This is slow on routers with full tables due to the way RouterOS scans and prints routes. http://forum.mikrotik.com/viewtopic.php?p=244322#p244322 -- Blake Covarrubias On Feb 9, 2011, at 4:18 PM, Tristram Cheer wrote: > Hey Guys, > > Just a quick ques

[Mikrotik] Show all routes with cetain ASN

2011-02-09 Thread Tristram Cheer
Hey Guys, Just a quick question, Does anyone know the ROS CLI command to print all routes where a certain ASN is in the BGP-AS-PATH? Cheers -- next part -- An HTML attachment was scrubbed... URL: