Regular Expression for physical interfaces only

Unanswered Question
Dec 15th, 2009
User Badges:

Working on creating a compliance template to make sure NetFlow is enabled on physical router interfaces.


My initial expression is  -- interface [#Serial.*|.*Ethernet.*|ATM.*#]

This expression works in that it checks all Serial, FastEthernet, GigabitEthernet, and all ATM interfaces.  It also checks sub-interfaces.


I would like to alter my template to ignore sub-interfaces like:

Serial 0/0.100

FastEthernet 0/0.500


I'm not sure how to setup expression to ignore interfaces that has a "." (dot) in the interface name. Maybe there's another solution that doesn't need regexp?


Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Tue, 12/15/2009 - 10:36
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

What about:


[#(Serial|.*Ethernet|ATM)[0-9/]+#]

Actions

This Discussion