RME Baseline template specific interface range

Unanswered Question
May 15th, 2008
User Badges:

Does someone know how to specify a specific interface range in the "Submode" entry, for eg. interface range FastEthernet 0/1 - 20.


When interface [#Fast.*#] is specified all fa interfaces are selected, and this is not what I want.


Can anyone please help; :-)

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Joe Clarke Thu, 05/15/2008 - 05:03
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Use a stricter regular expression. For example:


int [#FastEthernet0/[1-9]|11|12|13|14|15|16|17|18|19|20$#]

orsonjoon Thu, 05/15/2008 - 06:27
User Badges:

This:


interface [#FastEthernet0/[1-9]|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|26|27|28|29|30|40$#]


Works perfectly, however how can I specify the rest of the ports, this:


interface [#FastEthernet0/41|42|43|44|45|46|47|48$#]


Does not work, could you please help me again....thanks again, and again ... and again...:-))

Joe Clarke Thu, 05/15/2008 - 10:38
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Try:


int [#FastEthernet0/4[1-8]#]

Joe Clarke Thu, 05/15/2008 - 10:38
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Try:


int [#FastEthernet0/4[1-8]$#]

Joe Clarke Thu, 05/15/2008 - 10:37
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This could be simplified to:


int [#FastEthernet0/[1-9]|1[0-9]|20$#]

orsonjoon Fri, 05/16/2008 - 05:02
User Badges:

This thing is a real headache generator, unfortunately does this: "interface [#FastEthernet0/[1-9]|1[0-9]|20$#]" statement only produces the first 9 interfaces to be checked, so fa01 - fa0/9 ,and leaves the rest unbothered.


It seems that the | sign doesn't do the trick.

Any suggestions?


Joe Clarke Fri, 05/16/2008 - 09:06
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Try parentheses:


interface [#FastEthernet0/([1-9]|1[0-9]|20)$#]

orsonjoon Tue, 05/20/2008 - 03:53
User Badges:

Finally!!! It works.. youre THE absolute best!

Thanks again.

Actions

This Discussion