Hi, I'd like to expose here one patch for BSNMP containing some new MIBs implemented for the native FreeBSD SNMP agent. Many thanks to Harti and Philip for their support and guidance! The patch can be downloaded from : http://users.pcnet.ro/victor.cruceru/bsnmp.diff.tgz It is a unified diff against the "latest" CVS version of the BSNMP (as it is in the FreeBSD CVS for the time being); anyway it may be used on both 5.4 and 6.0. Please see below for some hints about how to give it a try. What's new: 1) An almost complete implementation for HOST-RESOURCES-MIB ( http://www.ietf.org/rfc/rfc2790.txt ) 2) A quite complete implementation for the new TCP-MIB with combined IPv4 & IPv6 support. ( http://www.ietf.org/rfc/rfc4022.txt ). This new TCP-MIB is 100% backward compatible with the old one (v4 only). It adds a clear distinction between active and passive tcp endpoints and for each endpoint info about the process it belongs to. 3) A quite complete implementation for the new UDP-MIB with combined IPv4 & IPv6 support. ( http://www.ietf.org/rfc/rfc4113.txt ). This new UDP-MIB is 100% backward compatible with the old one (v4 only) and it adds multiple instances support for the UDP endpoints and for each endpoint info about the processes that use it. How to use it: You must first do a checkout of the original sources from the CVS. Let's suppose you are going to do this in a directory named TESTING (in order to keep your systems clean against any possible mistakes): cd ~/TESTING cvs co src/contrib/bsnmp cvs co src/lib/libbegemot cvs co src/lib/libbsnmp cvs co src/usr.sbin/bsnmpd The patch can be applied this way: patch -u -p1 < ~/bsnmp.diff from the TESTING directory. In order to build it, you may need to copy a Makefile.inc under the new tree: cp /usr/src/usr.sbin/Makefile.inc ~/TESTING/src/usr.sbin/ Then build and install it: from ~/TESTING/src/lib/libbsnmp/ and ~/TESTING/src/usr.sbin/bsnmpd/ In the second directory above you may need to supply -DNO_ATM flag at make. For a configuration file see ~/TESTING/src/contrib/bsnmp/snmpd/snmpd.config after patching. For testing the new {TCP, UDP}-MIB you are going to need a SNMP client supporting the INET-ADDRESS-MIB TCs. Net-snmp-5.2.1 is just fine. Enjoy, victor cruceru.Received on Tue Sep 13 2005 - 07:42:21 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:43 UTC