This is a discussion on Re: Looking for the patch for fetch_var_val() within the SNMP Coders forums, part of the Networking and Network Related category; On 09/10/06, Emi.Yanagi@radisys.com <Emi.Yanagi@radisys.com> wrote: > Is there a Net-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 09/10/06, Emi.Yanagi@radisys.com <Emi.Yanagi@radisys.com> wrote:
> Is there a Net-SNMP function to get netsnmp_subtree variable and its > value? Yes: $ grep netsnmp_query snmplib/client.c netsnmp_query_set_default_session( netsnmp_session *sess) netsnmp_query_get_default_session( void ) int netsnmp_query_get(netsnmp_variable_list *list, netsnmp_session *session) int netsnmp_query_getnext(netsnmp_variable_list *list, netsnmp_session *session) int netsnmp_query_set(netsnmp_variable_list *list, netsnmp_session *session) int netsnmp_query_walk(netsnmp_variable_list *list, netsnmp_session *session) If you're doing this from within the agent, then the snmpd.conf directive "iquerySecName" can be used to set up the internal session for such queries. The second parameter can then be left as NULL when calling the main query routines. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |