Thanks, for this anwser.

It's my case, if I want to redirect "logmatch" OID on my mib ... I must found the name of the logmatch handler, right? ;)

        bye bye.

Dave Shield wrote:
On Sat, 2005-06-11 at 16:12, Emmanuel Doguet wrote:

Robert Story wrote:

You can try using the snmpd.conf proxy token to do this. Otherwise, try
registering the existing handler with your custom OID.


How it's possible to register existing handler?

In the 'netsnmp_create_handler_registration' function, I can only put my OID... not another? :/


You can only have one OID in a 'netsnmp_create_handler_registration'
call, yes.  But it's perfectly possible to have two or more such
registrations, that all reference the same handler routine:

    reginfo = netsnmp_create_handler_registration("originalVersion",
            some_handler, oid1, OID_LENGTH(oid1),
            HANDLER_CAN_RONLY),
    netsnmp_register_handler( reginfo );

    reginfo = netsnmp_create_handler_registration("customVersion",
            some_handler, oid2, OID_LENGTH(oid2),
            HANDLER_CAN_RONLY),
    netsnmp_register_handler( reginfo );


The same handler routine ("some_handler") will then process requests
for oid1 (the original version) and oid2 (the custom version).

Dave


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to