Implementing MIB2 Interfaces and IP groups
Frank Fock
Frank.Fock____t-online.de
Tue Jan 29 09:09:25 CET 2002
Hi Alex,
The subagent example of AgentX++ implements the ifTable for Linux.
Other examples for instrumenting MIB2 MIBs can be found in the
NET-SNMP sources.
Best regards,
Frank
Alex Finogenov wrote:
> Hi,
>
> Does anybody know an interface to Linux that will allow me to retrieve values related to the Interfaces and IP groups in the MIB2? I need to know, for example, indexes of all network interfaces, etc.
>
> The related structures are listed in /usr/include/net/if.h, but I cannot find a system or library call that will give me the values. ioctl() should be a way to do this, but the structures from if.h are not referenced there, so I don't know what are the options.
>
> It seems like I can get some of the values from /dev/kmem, but I am not sure what are the structures.
>
> Thanks in advance,
> Alex
More information about the AGENTPP
mailing list