Re: Can someone tell me the function for getting MIB-2 object values from Debian Linux Kernel ?
> 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.
Good luck !!
--
Daniel Toffetti --- 'There is no spoon...' - The Matrix
Running Debian Sid version testing/unstable with Linux 2.4.13 i686
Reply to: