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 <bl...@beamspeed.com>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 (ignore prepending)
> /ip route print where bgp-as-path~",(123,\?)+\$"
>
> # Transiting AS123
> /ip route print where bgp-as-path~",\?123,"
>
> # Routes with single AS in path
> /ip route print where bgp-as-path~"^[0-9]+\$"
>
> # Originating from Confederation peers
> /ip route print where bgp-as-path~"^\\([0-9]+\\)\$"
>
> --
> Blake Covarrubias
>
> On Feb 9, 2011, at 5:22 PM, Josh Luthman wrote:
>
> > 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 <bl...@beamspeed.com
> >wrote:
> >
> >> 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 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 <bl...@beamspeed.com>
> >> wrote:
> >>>
> >>>> /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 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: <
> >>>>
> >>
> http://www.butchevans.com/pipermail/mikrotik/attachments/20110210/9016b7aa/attachment.html
> >>>>>
> >>>>> _______________________________________________
> >>>>> Mikrotik mailing list
> >>>>> Mikrotik@mail.butchevans.com
> >>>>> http://www.butchevans.com/mailman/listinfo/mikrotik
> >>>>>
> >>>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> >>>> RouterOS
> >>>>
> >>>> _______________________________________________
> >>>> Mikrotik mailing list
> >>>> Mikrotik@mail.butchevans.com
> >>>> http://www.butchevans.com/mailman/listinfo/mikrotik
> >>>>
> >>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> >>>> RouterOS
> >>>>
> >>> -------------- next part --------------
> >>> An HTML attachment was scrubbed...
> >>> URL: <
> >>
> http://www.butchevans.com/pipermail/mikrotik/attachments/20110210/123317f6/attachment.html
> >>>
> >>> _______________________________________________
> >>> Mikrotik mailing list
> >>> Mikrotik@mail.butchevans.com
> >>> http://www.butchevans.com/mailman/listinfo/mikrotik
> >>>
> >>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> >> RouterOS
> >>
> >> _______________________________________________
> >> Mikrotik mailing list
> >> Mikrotik@mail.butchevans.com
> >> http://www.butchevans.com/mailman/listinfo/mikrotik
> >>
> >> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> >> RouterOS
> >>
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> http://www.butchevans.com/pipermail/mikrotik/attachments/20110209/95fb1e19/attachment.html
> >
> > _______________________________________________
> > Mikrotik mailing list
> > Mikrotik@mail.butchevans.com
> > http://www.butchevans.com/mailman/listinfo/mikrotik
> >
> > Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> RouterOS
>
> _______________________________________________
> Mikrotik mailing list
> Mikrotik@mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> RouterOS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.butchevans.com/pipermail/mikrotik/attachments/20110209/7f92e5de/attachment.html>
_______________________________________________
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS

Reply via email to