Re: Is it possible to retrieve oid from mib node name
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 30/10/2007, <[email protected]> wrote: > Suppose mib node names in a subtree are all unique, The node names within a single MIB module must be unique. As must all node names within "official" IETF MIBs. It's not strictly necessary for node names in private MIBs to be globally unique, but it's relatively uncommon for the same name to appear in two different MIBs. > is it possible to retrieve an oid using a node name? It is definitely possible to retrieve an OID using the syntax MIB-NAME::mibNode It is *usually* possible to retrieve an OID using the bare node name (with a small risk of getting the wrong node, if there happen to be two different versions in the list of loaded MIBs). > Is there a way to do that in net-snmp? Yes - the standard lookup routines will handle this quite happily. The MIB::node syntax is handled automatically, the bare node name might work straight off, or you may need to explicitly enable it using the '-IR' command-line option (or equivalent) Suck it and see. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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