Ethereal-dev: Re: [Ethereal-dev] Added the capability to decode SNMP OID from private MIB.

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Martin Regner" <martin.regner@xxxxxxxxx>
Date: Mon, 6 Jan 2003 18:31:23 +0100
Alex wrote:
>decoding of the OID happens only for standard MIBS and not for private MIB.

Hi,

I think you can make ucd-snmp/net-snmp read any MIBs (at least more or less) by putting them in the right directory
and maybe also doing some other configuration changes to ucd-snmp/net-snmp.

I have included some details below how I have configured this on Windows.

With Ethereal 0.9.8 on Windows (net-snmp) you put the MIB-files in the  ...Ethereal/snmp/mibs/  directory
(or if the MIB_DIRS environment variable is defined it will be used instead to point out the directory/directories).
You also have to set the MIBS environment variable to indicate what mibs should be loaded. The easiest
is to set the value to ALL.
You can set environment variables from Start/Settings/Control Panel/System/Advanced/Environment variables/
(at least on certain versions of Windows).

I have noticed that NET-SNMP may have some problems with certain MIBS. Ethereal may hang/crash at startup
if there are certain faults in one of the MIBs. Just so that you are aware of this if you get problems after adding
certain MIBs. It seems that this fault has already been reported on the net-snmp mailing list. I got around the
crash problem by adding some IMPORTS ... FROM ... in the MIB I had problem with.

With Ethereal 0.9.1 on Windows (ucd-snmp) I put my MIB-files in the /usr/mibs directory and defined the MIBS 
environment variable to value ALL.

I'm not sure what you have to do on Linux, but you can find the necessary information in the ucd-snmp/net-snmp
documentation.