> I'm running into the same problem with 5.3.0.1.  I dug into it
 > a little bit bit and it appears that net-snmp iterates through
 > /proc/net/dev to find interfaces, and that only contains information
 > on physical interfaces.
 >
 > In my case, I'm just looking for basic IP information to do
 > configuration verification, so I'm less concerned about the
 > per-interface statistics.
 >
 > net-snmp has a configure option to use mibII/interfaces instead,
 > which apparently uses an ioctl interface to find interface
 > information which may show physical interfaces, but there are
 > issues with compilation that appear to be related to recent
 > rewrites (same function implemented in two places with different
 > parameters (Interface_Scan_Next, at least), and incomplete structure
 > definitions).  I haven't dug into this too deeply yet, so I'm not
 > sure what should win, or if mibII/interfaces is still expected
 > to build under linux, or really even if it will list the aliased
 > interfaces.

It looks like mibII/interfaces still uses /proc/net/dev so it will
require more significant code hacking to get it to also include
subinterfaces, presumably some mixture of iterating through whatever
ifconfig looks through and merging that with what's in /proc/net/dev.

If this is something that is a desired change to net-snmp, we'd probably
be willing to fund that, if the end result is it finding its way into
the next appropriate release.  Please contact me off-list if someone is
interested who can make this happen.

It's definately desired for us since it makes the linux boxes act like
everything else as far as what gets returned.

-Todd


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to