# Cisco SNMP extension filters not working for me

**URL:** <https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294>\
**Category:** Extensions\
**Tags:** snmp, extensions\
**Created:** [December 19, 2023, 3:58pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294 "2023-12-19T15:58:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan\_araya](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bryan\_araya](https://community.dynatrace.com/u/bryan_araya)\
**Post date:** [December 19, 2023, 3:58pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/1 "2023-12-19T15:58:01Z")

</div>

Hello Extension team,

I have a question about the , which was to be able to filter the network interfaces. I’m telling you this because this is not documented in the extension and there is no example of how it is filtered correctly, with the F5s documentation i was able to find which patterns can be used.

> **[F5 BIG-IP extension](https://docs.dynatrace.com/docs/observe/infrastructure-observability/extensions/f5-big-ip-ltm-1)**
>
> Gain insights into the performance of your F5 BIG-IP LTM and DNS solutions.

For example, I already managed to filter correctly using this pattern which shows me everything as it should be:

![bryan_araya_0-1703001278469.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/79008e6930ba7bcbeeb789a71fcde5aab3f091a7.png)

 ![bryan_araya_1-1703001278471.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/8/d8a1f7b6858f8c919f16db39b8f6e5a3f75943a5.png)

But when I try to place two interfaces it always fails and doesn’t show me any information:

**$eq(Ethernet1/1, Ethernet1/13 )**

**$and(Ethernet1/1, Ethernet1/13 )**

**$eq(Cisco network interface Ethernet1/1 @ 10.120.100.21, Cisco network interface Ethernet1/13 @ 10.120.100.21)**

**$and(Cisco network interface Ethernet1/1 @ 10.120.100.21, Cisco network interface Ethernet1/13 @ 10.120.100.21)**

![bryan_araya_2-1703001278471.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a9adfb0e3ed4064d7c5243a926fcc3ac033fae8a.png)

 ![bryan_araya_3-1703001278472.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/3/43b613f192e79a82bd457e9a0795c9e1f44a25e2.png)

I tried with all those patterns and none of them work for me, they all show me blank information because it doesn’t match.

**Can anyone tell me what the appropriate pattern is to add more than one interface?**

Regards Bryan

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [December 19, 2023, 4:01pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/2 "2023-12-19T16:01:07Z")

</div>

Try something like this:

$or($contains(Ethernet1/1), $contains(Ethernet1/13))

---

<div class="post-metadata">

**Author:** ![bryan\_araya](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bryan\_araya](https://community.dynatrace.com/u/bryan_araya)\
**Post date:** [December 19, 2023, 4:34pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/3 "2023-12-19T16:34:25Z")

</div>

The solution you gave works for two interfaces but for example I need to filter at least 10 interfaces. I tried it with that pattern you gave me&nbsp; but it doesn’t filter as it should.

$or($contains(Ethernet1/1), $contains(Ethernet1/2), $contains(Ethernet1/13), $contains(Ethernet1/19), $contains(Ethernet1/21), $contains(Ethernet1/25), $contains(Ethernet1/27), $contains(Ethernet1/29), $contains(Ethernet1/3), $contains(Ethernet1/4))

Do you have any idea what’s wrong or maybe it’s just that we need to use AND instead of contain?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [December 19, 2023, 4:42pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/4 "2023-12-19T16:42:41Z")

</div>

You need more or’s for that. $or($contains(Ethernet1/21), $or($contains(Ethernet1/15), $contains(Ethernet1/13))) for example for three interfaces.

---

<div class="post-metadata">

**Author:** ![bryan\_araya](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bryan\_araya](https://community.dynatrace.com/u/bryan_araya)\
**Post date:** [December 19, 2023, 5:28pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/5 "2023-12-19T17:28:04Z")

</div>

Sorry, but I still haven’t understood how these patterns work, since I’m using this pattern to place the 10 interfaces but I can’t get it to work.

$or($contains(Ethernet1/1), $or($contains(Ethernet1/2), $or($contains(Ethernet1/13), $or($contains(Ethernet1/19), $or($contains(Ethernet1/21), $or($contains(Ethernet1/25), $or($contains(Ethernet1/27), $or($contains(Ethernet1/29), $or($contains(Ethernet1/3), $contains(Ethernet1/4)))))))))

Please help me

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [December 19, 2023, 5:51pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/6 "2023-12-19T17:51:49Z")

</div>

There are some redundancies in there, for example, 21, 25, 27 and 29 will already be covered by 2 seeing as it’s using contains. If you have such numbers you are better off using eq.

---

<div class="post-metadata">

**Author:** ![bryan\_araya](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bryan\_araya](https://community.dynatrace.com/u/bryan_araya)\
**Post date:** [December 19, 2023, 6:48pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/7 "2023-12-19T18:48:32Z")

</div>

Thanks for the suggestion, the one that worked for me was this form of pattern

$or($eq(Ethernet1/1), $or($eq(Ethernet1/2), $or($eq(Ethernet1/13), $or($eq(Ethernet1/19), $or($eq(Ethernet1/21), $or($eq(Ethernet1/25), $or($eq(Ethernet1/27), $or($eq(Ethernet1/29), $or($eq(Ethernet1/3), $eq(Ethernet1/4))))))))))

One last question, the client has these network devices with more than 170 interfaces per device. Is there any text limit for the interface filter?

![bryan_araya_0-1703011680999.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bbb7ecfe595641c5d86976fa3ac6f2fd8c0740b7.png)

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [December 19, 2023, 6:57pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/8 "2023-12-19T18:57:53Z")

</div>

Yes, I think it is 1000 or 5000 or something. It can maybe be increased if required. Open a support ticket if you run into the limit.

---

<div class="post-metadata">

**Author:** ![bryan\_araya](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@bryan\_araya](https://community.dynatrace.com/u/bryan_araya)\
**Post date:** [December 19, 2023, 8:02pm UTC](https://community.dynatrace.com/t/cisco-snmp-extension-filters-not-working-for-me/43294/9 "2023-12-19T20:02:55Z")

</div>

Thanks for the help
