From owner-freebsd-net@freebsd.org Thu Feb 22 01:29:02 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C228F15A48 for ; Thu, 22 Feb 2018 01:29:02 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id C65FE7F0BE for ; Thu, 22 Feb 2018 01:29:00 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from [212.73.125.240] (HELO admin.sibptus.transneft.ru) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 39940909; Thu, 22 Feb 2018 07:24:07 +0600 Received: from admin.sibptus.transneft.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.transneft.ru (8.15.2/8.15.2) with ESMTP id w1M1StUw011560; Thu, 22 Feb 2018 08:28:57 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.transneft.ru (8.15.2/8.15.2/Submit) id w1M1Sp6f011558; Thu, 22 Feb 2018 08:28:52 +0700 (+07) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.transneft.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Thu, 22 Feb 2018 08:28:51 +0700 From: Victor Sudakov To: Eugene Grosbein Cc: freebsd-net@freebsd.org Subject: Re: bsnmpd and arbitrary OIDs Message-ID: <20180222012851.GA11433@admin.sibptus.transneft.ru> References: <20180220160044.GA79151@admin.sibptus.transneft.ru> <5A8C5FD6.3070201@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A8C5FD6.3070201@grosbein.net> Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.9.3 (2018-01-21) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2018 01:29:02 -0000 Eugene Grosbein wrote: > > > Is it possible to configure bsnmpd to return an arbitrary value for an OID, e.g. > > > > snmpget -On -v1 -c public localhost .1.3.6.1.4.1.34498.2.1.1.1.2.0 > > > > should always return > > > > .1.3.6.1.4.1.34498.2.1.1.1.2.0 = STRING: "54.6 V" > > > > I need this for debugging a network monitoring system. > > > > Thank you very much in advance. > > You can do that with net-mgmt/bsnmp-ucd addon and little addition to /etc/snmpd.config: > > begemotSnmpdModulePath."ucd" = "/usr/local/lib/snmp_ucd.so" Eugene, thanks for the info. I hoped to do with the base system only. For the present I have used the "pass" facility from net-mgmt/net-snmp snmpd. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN AS43859