RE: BGP regexp - how to find x number or more occurrences of an

From: Scott Morris (smorris@internetworkexpert.com)
Date: Wed Oct 22 2008 - 22:27:14 ARST


You'd have to spell them out. (the long and ugly method!)

GREP/Unix actually gives you the ability to specify number of occurrances
like (65000){1,7} which would look for "65000" occuring between 1 and 7
times.

IOS doesn't allow that at this point in time.

In case you're bored, JUNOS does. :)

HTH,

Scott Morris, CCIE4 #4713, JNCIE-M #153, JNCIS-ER, CISSP, et al.
CCSI/JNCI-M/JNCI-ER
Senior CCIE Instructor

smorris@internetworkexpert.com

 

Knowledge is power.
Power corrupts.
Study hard and be Eeeeviiiil......

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Hobbs
Sent: Wednesday, October 22, 2008 1:12 PM
To: Cisco certification
Subject: BGP regexp - how to find x number or more occurrences of an AS in
the AS path

Suppose I wanted to find all routes that have the same AS number in a row 8
or more times...is this possible using regexp?

The 8 could be any number (just not 0 or 1 which can use + or ?), I just
can't think of way to do 5 or more, 6 or more, etc...

thanks,

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sat Nov 01 2008 - 15:35:22 ARST