I have run into an issue using 5.4.1.2 doing a Get Next on an exact OID
using the new SNMP API
and I want to know if anyone has a solution.
I have created a subagent very similar to like the one in the tutorial. The
int instance
is registered using the line
netsnmp_register_int_instance("nstAgentSubagentObject",
nstAgentSubagentObject_oid,
OID_LENGTH(nstAgentSubagentObject_oid),
&nstAgentSubagentObject,
cbHandler);
I decided to add the valid handler function. The subagent comes up and
connects
to the Master Agent just fine. I can do a walk and recieve everything, but I
did notice
one thing. When I do a Get Next on an exact OID, the callback function is
called twice
with 2 Gets.
In the 4.X api, we could check the header for exactness, but I don't see a
way of doing
this in the 5.X api. Does anyone know away around this?
Thanks,
David
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users