On Mon, 30 Aug 2004 10:33:42 +0530 Virender wrote: VSC> The proxy support configurable through snmpd.conf works for snmp VSC> forwarding(correct me if I am wrong). VSC> But in my case I need to make some proprietary library call to remote NE VSC> to obtain value for the object instances.
Ok, just checking. On Sat, 28 Aug 2004 14:04:55 +0530 Virender wrote: VSC> I am implementing a sub-agent for which the requirement is somewhat VSC> unusual. It isn't actually all that unusual. It isn't all that common for the standard net-snmp agent running on a unix box, but it's quite common in the embedded world. VSC> Essentially my requirement is that whenever a get, get-next or get-bulk VSC> request is received at my sub-agent, I want to make a propietary call to VSC> my NE to obtain the value for the oid(s). VSC> How can I use any skeleton code (with help from any .conf file) for this VSC> purpose? I explored using mib2c.iterate-access.conf and VSC> mib2c.array-user.conf but did not get convincing results. Normally this type of thing is done with custom, hand-crafted agents. The problem is that the helper handlers above the generated code are not designed to pass requests for unknown OIDs down to the lower handlers. If you know all your indexes in advance, I think array-user would be the way to go. If your indexes change dynamically, then you will have to register a basic handler, and duplicate some of the work the other helpers were doing for you. Unfortunately, there aren't any examples that I can think of off the top of my head. The closest would be agent/mibgroup/examples/delayed_instance.c, which doesn't user any helpers, but is just for a single instance. But it should give you the basic idea: register for your top level oid, and then delegate the request while you query your NE. You'll have to deal with GEXTNEXT processing yourself, by examining the OIDs in the incoming requests. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ 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