On 23.01.2011 00:24, Eugene Grosbein wrote: > Hi! > > I run 8.2-PRERELEASE with bsnmpd and mpd55 serving PPPoE users. > I've noticed that sometimes snmpwalk shows interface indexes > that partially differ from what if_nametoindex(3) returns > with off-by-one or off-by-two. For example, just now this server has > 813 connected PPPoE sessions (interfaces named ngXXXX) > and SNMP returns wrong indexes for 567 out of them, starting from ng334. > > I've restarted bsnmpd but this made it worse: now all dynamic ngXXXX > interfaces have obtained new indexes in SNMP ifTable and no one > equals to if_nametoindex(name). > > Aren't these indexes supposed to be equal?
Now I see from snmp_mibII.3 they are not :-( > I really need quick method to obtain SNMP index within mpd55 code > (for my local mpd hacks) and if_nametoindex() used to seem nice way... > I need to export indexes via mpd's web interface so that they may be > checked remotely using SNMP. Still wondering how to get SNMP index without way too slow walking ifTable over... Eugene Grosbein _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[email protected]"
