cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cisco SNMP extension filters not working for me

bryan_araya
Frequent Guest

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.

https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/networks/f5-extension

 

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

bryan_araya_0-1703001278469.png

bryan_araya_1-1703001278471.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

bryan_araya_3-1703001278472.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

8 REPLIES 8

Mike_L
Dynatrace Guru
Dynatrace Guru

Try something like this:

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

Mike

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  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?

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

Mike

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

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. 

Mike

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

 

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. 

Mike

Thanks for the help

Featured Posts