This is a discussion on question on net-snmp within the SNMP Coders forums, part of the Networking and Network Related category; Hi, I'm using net-snmp5.4.1 (with AgentX/SubAgent feature turned on) and mib2c for implementing/supporting an ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'm using net-snmp5.4.1 (with AgentX/SubAgent feature turned on) and mib2c for implementing/supporting an Enterprise MIB. My MIB has both tables and scalars, and the managed data resides outside the agent's context. I was wondering if it is possible to use the same set of iterator (get/get-next) and handler functions for multiple OIDs. To explain further, whenever new elements are added to the MIB, mib2c generates different set of get, get-next, and handler routines. Instead, I was wondering if it is possible to use the same set of routines for more than one OID? Following is the direction I'm trying to think... I see that netsnmp_iterator_info *mydata is being passed to each get/get-next function genrated by mib2c.... is it possible to retrive the OID from mydata... if yes, I could perhaps switch on the OID... and use this approach to extend the same handler routine for more than one OID. Does any-one who is more familiar with AgentX side of code have any thoughts? Would appreciate any help... Thanks, Ashwin __________________________________________________ __________________________________ Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=on...on+gifts&cs=bz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |