cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
854
Views
0
Helpful
1
Replies

RME Baseline Templates compliance and deploy regular expression

mikik
Level 1
Level 1

Hi:

I have a large number of 3750 stacks consisting of a variable amount  , from 1 to 6, switches. I need to add to all

FastEthernet interfaces from 2/0/1 to n/0/24 a command , under the interface. That is on the 1st and if only one switch do nothing, and for all other switches, be it 2 or 3 etc switches under each interface add a one line command.

I  have not found the correct syntax to have only the interfaces I need to be effected. For example:

interface [#FastEthernet.*#]   picks all interfaces including the ones on the 1st switch which I don't want to change.

Interface [#fastEthernet[2-9].*#]  ignores all interfaces.

I have tried various forms of syntax for the regular expression   but either hit all interface or none.

Does anyone know how to format the request properly.

Thanks in advance

Mickey

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

This regexp should work:

interface [#FastEthernet(1[0-9]+|[2-9][0-9]*)/.*#]