Page MenuHomePhabricator

SNMP: filter out default sub interfaces
Closed, ResolvedPublic




[edit snmp]
+   filter-interfaces {
+       interfaces {
+           "^.*\.0$";
+       }
+   }

To all the switch stacks should speed up LibreNMS quite a bit by not exposing a type of interfaces we're not interested in.

On Juniper, all regular access ports, for example
Have a matching logical interface, for example

That logical interface doesn't expose useful information to us (everything is in the physical port stats), so filtering it out should be fine. As it's only about SNMP/monitoring, testing it out is harmless as well.

We can check the improvements using

Or globally with

Event Timeline

Mentioned in SAL (#wikimedia-operations) [2021-05-18T09:27:11Z] <XioNoX> push test SNMP filter config on asw-a-codfw - T283060

Change 692576 had a related patch set uploaded (by Ayounsi; author: Ayounsi):

[operations/homer/public@master] SNMP: filter out default logical interfaces (.0)

Change 692576 merged by Ayounsi:

[operations/homer/public@master] SNMP: filter out default logical interfaces (.0)

Mentioned in SAL (#wikimedia-operations) [2021-05-19T07:42:24Z] <XioNoX> roll SNMP: filter out default logical interfaces (.0) to all network devices - T283060

ayounsi claimed this task.

Pushed everywhere successfully. ~2400 LibreNMS ports removed. Speed up LibreNMS pooling by ~25%.