Re: how to register only one handler that handles all requests
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
[Sorry for the delay in responding] On 26/03/07, David Wu <[email protected]> wrote: > We have a MIB daemon that can handle all MIB OIDs but no > authentication/encription or any SNMP request parsing. I'd like snmpd to > handle snmpget/snmpset request and MIB daemon to handle the actual GET/SET > work. > In my case I think I need to install only one handler and snmpd should > call my handler which then call MIB daemon. Can you kindly tell me how to > register this handler Just call netsnmp_register_handler() specifying the handler routine that should pass the requests off to your MIB daemon, and the root OID of the tree that it'll be responsible for. This can be ".1" to handle the whole of the tree (apart from any subtrees explicitly handled by the Net-SNMP agent). > (for all OIDs, to make snmpd smaller I don't want > snmpd to know any MIB tree) You'll probably need to retain the VACM and similar MIB modules, in order for the Net-SNMP agent to work correctly. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users