Hi!
I'm trying to implement a mib handler to handle all snmp requests.
The thing is, registering the handler at .1 results in the handler never
being called but it works when registering it at, for example. .1.3. With
debug token "handler" I am noticing a "null handler" is called and looking
at the code this handler seems to be registered at .1 (along with .0 and
.2) when setting up the mib tree.
I'm registering my handler like this:
static oid root_oid[] = { 1 }; // doesn't work, = { 1 , 3 }
works
netsnmp_register_handler(netsnmp_handler_registration_create
("my_handler",
netsnmp_create_handler("my_handler",
my_handler),
root_oid,
OID_LENGTH(root_oid),
HANDLER_CAN_RWRITE));
and running the agent like this (I know some other modules are needed but
this seems to work with snmpv1 at least):
./snmpd -I my_handler ...
Of course I can be completely wrong about this, but as far as i can tell,
just registering the handler at .1 should work to get all requests, but
right now I'm thinking there might be some clash with the null handler.
Any help would be much appreciated :)
--
Regards
Max
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders