Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Regular Expression for physical interfaces only

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 REPLY
Cisco Employee

Re: Regular Expression for physical interfaces only

What about:

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

236
Views
0
Helpful
1
Replies
CreatePlease login to create content