Hello list,
I just wanted to report a problem in snmpd.
On a OpenBSD router with full tables I wanted to *not* have routes in
the MIB.
This is so that snmpwalks do not take ages and consume all the router's
CPU.
So I used "filter-routes yes" in snmpd.conf which says "Routing table
information will not be available, but CPU use will be reduced during
bulk updates".
This is exactly what I though I needed.
But it looks like when the snmp daemon is started the routing table is
loaded regardless and only updates are ignored.
Have I misunderstood this setting or is this a bug ?
Because if the BGP daemon starts earlier than SNMPD you can end up with
a few hundred thousand routes in the MIB.
Or if you restart the snmp daemon sometime later you have the same
situation.
I found no other solution than to comment out the line 3966 of mib.c "
smi_mibtree(ipf_mib); "
Is there another solution to this problem that I overlooked ?
Thanks for your help, kudos for the great work and good night !
Arnaud