Re: Can someone tell me the function for getting MIB-2 object values from Debian Linux Kernel ?
Daniel Toffetti, 2002-Aug-16 11:26 -0300:
> > I need the IP, UDP and TCP statistics. Which function should I call ?
>
> Perhaps you'll find useful to take a look at http://www.net-snmp.org.
> The whole SNMP suite is packaged for Debian, check snmp, snmpd, libsnmp
> and libsnmp-dev, and maybe other packages I don't remember now.
> IIRC, they have an SNMP based implementation of netstat. Check also
> tkmib, which allows to browse the mibs and query the values from a nice
> GUI.
>
> > Also, which header file has these structures for IP, UDP and TCP
> > data? I am aware that Solaris has it in /usr/include/inet/mib2.h .
> > Which is the corresponding Linux file ?
>
> For better results, you can try asking this in the net-snmp project
> mailing lists.
>
libsnmp-base includes the linux mibs, which are installed into
/usr/share/snmp/mibs/.
jc
--
Jeff Coppock Systems Engineer
Diggin' Debian Admin and User
Reply to: