From owner-freebsd-current@FreeBSD.ORG Tue Sep 13 09:42:21 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5522016A41F for ; Tue, 13 Sep 2005 09:42:21 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 453B643D53 for ; Tue, 13 Sep 2005 09:42:17 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so2392383wra for ; Tue, 13 Sep 2005 02:42:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=huggXZ0FDTDpyhYO4lXd5mGy04D9Z2TB86nuTQbMBKW8AfTN5heCOfwC+rP1uR5qH9jXUShqvTcXHE5fMQ9lNExarBS+oKfI1S/Qsk9F17FOj7DgrfWwp9IdWhMqINqRsaxKRbBh9qrst38OEZ22i3mhau+nL3MJNTPY8pg+dZY= Received: by 10.54.29.77 with SMTP id c77mr341128wrc; Tue, 13 Sep 2005 02:42:14 -0700 (PDT) Received: by 10.54.103.20 with HTTP; Tue, 13 Sep 2005 02:42:14 -0700 (PDT) Message-ID: <4940255050913024249d60449@mail.gmail.com> Date: Tue, 13 Sep 2005 12:42:14 +0300 From: victor cruceru To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [PATCH]: new MIBs for BSNMP X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: soc-victor@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 09:42:21 -0000 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=20 ( 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 tre= e: 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.