RE: MIB Wizardry to Workaround for a trap problem
"Mike Ayers" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <83E753BE7B6A324ABB336245BAF1DAAC09EAE70D@mailserver.metatv-ds.metatv.com> |
Please always reply to the list, thanks. > From: Ragnar Moller [mailto:[email protected]] > Sent: Tuesday, December 02, 2008 9:46 AM > Thanks for your response to my, perhaps vague response. > > I have yet to understand much about SNMP and MIB's it seems. > > You are saying "One of the tools may be using the "-Ou" flag." > > Are you saying I have to search for a startup script where > something snmp related is called with the flag -Ou ? > In /etc/ or elsewhere. > Would you have an idea of the how such a command would look ? > > That's what I understood from your comment. What I am saying is that there are many different ways to print out OIDs. Here are a few samples: i. (numeric absolute) .1.3.6.1.2.1.1.1 ii. (numeric absolute implied) 1.3.6.1.2.1.1.1 iii. (symbolic absolute) .iso.org.dod.internet.mgmt.mib-2.system.sysDescr iv. (symbolic absolute implied) iso.org.dod.internet.mgmt.mib-2.system.sysDescr v. (simple symbolic) sysDescr vi. (MIB::symbol) SNMPv2-MIB::sysDescr vii. (symbolic relative) system.sysDescr There are other ways as well. The net-snmp command line tools which print output can be forced to use some of these modes: "-On" for (i), "-Of" for (iii), "-Os" for (v), "-OS" for (vi), and "-Ou" for (vii). See the "OUTPUT OPTIONS" section of the snmpcmd man page for details. Of note is (vii), which can vary greatly, as the choice of where to specify relative to is highly subjective and varies (not for the "-Ou" flag, which should be consistent for given OIDs, while not necessarily across OIDs) from tool to tool. So if one of your tools prints out sysDescr as "system.sysDescr" and another expects to read it as "internet.mgmt.mib-2.system.sysDescr", nothing has disappeared - the tools just aren't using the same notation. The easy way to avoid this problem is to force all your tools (except probably the final display tools) to use absolute numeric mode for OIDs. One way to force this is to not tell them where the MIBs are. Specific corrective strategies are left as an exercise for the student. HTH, Mike ------------------------------------------------------------------------- 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-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