Ethereal-users: Re: [Ethereal-users] Ethereal + UCD-SNMP + MIB

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Fri, 3 Nov 2000 23:33:04 -0800
On Fri, Nov 03, 2000 at 04:38:46PM -0800, Surendar Thaneer wrote:
>     What should be done in the Ethereal code to make it translate the 
> numeric OID of private MIB to named OID?

Absolutely nothing whatsoever.  The Ethereal code doesn't do the
translation itself - it calls the UCD SNMP libraries to do that.

>    I am using UCD-SNMP libraries for SNMP decode.

When you asked the question:

	http://www.ethereal.com/lists/ethereal-users/200010/msg00412.html

"Wondering, if it is possible to translate object IDs of private MIB
into names using UCD-SNMP libraries and if so, then what should be
done.", the answer:

	http://www.ethereal.com/lists/ethereal-users/200010/msg00414.html

was that you have to tell the UCD SNMP libraries about the private MIB;
from that reply:

	To quote the "variables(5)" man page for the UCD SNMP package on
	UNIX:

		The  description  of  the variables in the MIB is given in
		the set of mib files defined by the MIBS environment vari-
		able (or the default list defined at compilation time) and
		the mib files in the DATADIR/snmp/mibs directory  (or  the
                MIBDIRS environment variable).

	I.e., the MIBs the UCD SNMP libraries know about are the ones in
	that directory and any additional ones specified by the MIBS
	environment variable (you'd have to look through the UCD SNMP
	documentation to see what format that environment variable has).

	"DATADIR" is the top-level directory in which data files for the
	library were installed; as I'm not logged into your system, I
	don't know what it is on your system.

So you should find out what directory has the UCD SNMP MIB files on your
system (I don't know what directory it is, nor do I know how to find
that out), and add a MIB file for your private MIB (the UCD SNMP
documentation may give the syntax for MIB files).