Discussion:
Not matching on OIDs properly
Christopher Fredriksson
2017-03-06 18:47:48 UTC
Permalink
Hey all,

Having trouble matching OIDs in Linux with snmptrapd.

traphandle .1.3.6.1 <http://1.3.6.1/>.4.1.3000.1.1.1
<http://0.1.1.1/> /tmp/go

does not trigger.. however the following does;

traphandle .1.3.6.1 <http://1.3.6.1/>.4.1.3000* /tmp/go

Of course, I'm sending the full OID, but it doesn't trigger on the full,
but only up to 3000..

Using SNMP v1 as that is the only version I have available on my device
sending traps..

Any idea on why the deamon isn't triggering on the full OID?

// Chris
Christopher Fredriksson
2017-03-07 05:18:16 UTC
Permalink
Strange with html links! Hope this new message works! :)



traphandle .1.3.6.1.4.1.3000.1.1.1 /tmp/go

respectively

traphandle .1.3.6.1.4.1.3000* /tmp/go
Post by Christopher Fredriksson
Hey all,
Having trouble matching OIDs in Linux with snmptrapd.
traphandle .1.3.6.1 <http://1.3.6.1/>.4.1.3000.1.1.1
<http://0.1.1.1/> /tmp/go
does not trigger.. however the following does;
traphandle .1.3.6.1 <http://1.3.6.1/>.4.1.3000* /tmp/go
Of course, I'm sending the full OID, but it doesn't trigger on the
full, but only up to 3000..
Using SNMP v1 as that is the only version I have available on my
device sending traps..
Any idea on why the deamon isn't triggering on the full OID?
// Chris
Loading...