question on net-snmp

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-17-2007
Ashwin Gokhale
 
Posts: n/a
Default question on net-snmp

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0