You meant to get the data from a table?Why not use the application snmptable or 
snmpwalk,and get the data via pipe?

if using the api,try the apis with snmp_table as prefix

2008-12-04 



sunle



发件人: Daniel Quintero 
发送时间: 2008-12-03  19:04:18 
收件人: [email protected] 
抄送: 
主题: Searching the MIB tree 
 
Hi,
 
Using the mib api, given a string containing the numerical form of an OID, I 
need to get a list of it’s varbinds in text form.
 
I can see in the man pages for mib_api that there is a get_module_node that 
will search for the given OID string, but in return it will give me just the 
OID list, so I don’t really see any difference with read_objid or indeed how 
this can help me, unless there is a function that taking the OID list will give 
me the node…
I need something that will give me a pointer to the node of the tree that 
contains that object, so I can then look at the varbind_list field.
 
Before I start coding a tedious routine to search the whole tree, is there 
anything that would already do this?
 
Thanks in advance.
 
Daniel.



---------
www.qianguize.org
 
 
  
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to