Re: Get type of an OID from MIB

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/6/30 Florian Wagner <[email protected]>:
> I've managed to get MIB parsing and simple SNMP get requests working
> with the net-snmp C API. What I'd like to do is to get the type of an
> OID from my MIB tree (not by doing a request). How would I do that?

Try
     get_tree( oid, oidlen, get_tree_head());

This will return the "struct tree" entry for the OID specified.
See <net-snmp/library/parse.h> for details of this structure.

Dave

------------------------------------------------------------------------------
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.