bsnmpd and arbitrary OIDs

Victor Sudakov vas at mpeks.tomsk.su
Thu Feb 22 01:29:02 UTC 2018


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


More information about the freebsd-net mailing list