SNMP net-snmp getting different than expected OID translation -


i have rfc1628_ups_mib (ups-mib) , snmpv2-smi (snmpv2-smi) installed on system.

i using net-snmp tool snmptrapd receive traps.

traps liebert npower ups being translated through snmpv2-smi rather ups-mib expect.

i snmpv2-smi::mib-2.33.1.6.3.16 when expecting ups-mib::upsalarmfanfailure

some troubleshooting information:

    # snmptranslate -on ups-mib::upsalarmfanfailure     .1.3.6.1.2.1.33.1.6.3.16     # snmptranslate .1.3.6.1.2.1.33.1.6.3.16     snmpv2-smi::mib-2.33.1.6.3.16 

it seems both mibs define same oid , lost coin toss. new snmp don't expect have discovered flaw in implementation. can explain happening here or point me resource might?

i answering own question.

net-snmp use default set of mibs default. adding new mibs mibs directory not enough snmptrapd use new mib.

the simplest way of net-snmp tools see new mibs added mib directory add line mibs all snmp.conf.

my system did not have default snmp.conf created file /etc/snmp/snmp.conf single line mibs all

my net-snmp tools including snmptrapd able report proper oid translations.

thanks @lexli prompting me answer own question.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -