Re: Looking for the patch for fetch_var_val()

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; Hi Dave, Thank you for your prompt response. These netsnmp_query_xxx are really nice API supported in 5.3. Unfortunately, we ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-11-2006
Emi.Yanagi@radisys.com
 
Posts: n/a
Default Re: Looking for the patch for fetch_var_val()

Hi Dave,

Thank you for your prompt response. These netsnmp_query_xxx are really nice
API supported in 5.3. Unfortunately, we are using 5.2.1 and have no plan to
upgrade to 5.3.

Therefore, any suggestions on doing the equivalent to get variable and its
value in 5.2.1 would be greatly appreciated.

Thanks again.
Emi




"Dave Shield"
<D.T.Shield@csc.l
iv.ac.uk> To
Sent by: "Emi.Yanagi@radisys.com"
dave.shield@googl <Emi.Yanagi@radisys.com>
email.com cc
net-snmp-coders@lists.sourceforge.n
et
10/09/2006 09:15 Subject
AM Re: Looking for the patch for
fetch_var_val()










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



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
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 10:12 AM.


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