Re: net-snmp perl module
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/8/31 Deepali Singalkar <[email protected]>: > Can I get some pointers to make the basic net-snmp (C module) support > dynamic context names? There are two areas you need to be concerned with - registration of MIB information, and access control. For the first, your subagent or MIB module would probably need to register the relevant table(s) and scalar object(s) multiple times - once for each context that you are interested in. As for access control, if you use the fulller "group/view/access" approach, then you should be able to specify a context of "" and a prefix value of "prefix" (rather than "exact"). This would match all possible context strings, and hence allow any valid context to be passed to your handler routine. > Like I found the places in master agent where it checks if context specified > with snmp request is already present > if (access_ret == VACM_NOSUCHCONTEXT) { > netsnmp_remove_and_free_agent_snmp_session(asp); > } You shouldn't need to touch this, as long as you've registered your MIB objects in all of the appropriate contexts. Dave ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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