Date: Thu, 22 Feb 2018 08:28:51 +0700 From: Victor Sudakov <vas@mpeks.tomsk.su> To: Eugene Grosbein <eugen@grosbein.net> Cc: freebsd-net@freebsd.org Subject: Re: bsnmpd and arbitrary OIDs Message-ID: <20180222012851.GA11433@admin.sibptus.transneft.ru> In-Reply-To: <5A8C5FD6.3070201@grosbein.net> References: <20180220160044.GA79151@admin.sibptus.transneft.ru> <5A8C5FD6.3070201@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180222012851.GA11433>