On 10 November 2011 16:23, francisco moreno <[email protected]> wrote:
> I have made a similar application as "subagent" example of net-snmp.
> I trying register and unregister seven oids several times. The problem is
> when I unregister the oids.
> I think that my method is wrong:
>
> REGISTER OID
> --------------------------
> netsnmp_handler_registration *myreg;
:
> netsnmp_register_watched_instance(myreg, watchInfo);
If you are using the handler-based registration APIs,
then you probably need to use the handler-based
unregistration call as well.
> UNREGISTER OID
> --------------------------------
> unregister_mib(oid_name, TAM_OID);
Try using
netsnmp_unregister_handler( myreg );
Dave
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders