Dave,

I call the mib2c with this format "mib2c -c mib2c.test.conf myTestMib".
In myTestMib module we define a duplicate object with another module.
All the MIB files is placed in the same dir and the MIBDIRS is exported
to refer that dir. Furthermore I exported the MIBS as ALL.

The issue looks the generated column ID isn't correct. Here is an
example,
------------------------------------------------------------------------
----------------------------------
#define COLUMN_TEST1 1
#define COLUMN_DUPLICATE 8
#define COLUMN_TEST2 3
------------------------------------------------------------------------
----------------------------------

As you can see the second column ID should be 2 instead of 8. 8 is the
column ID for the duplicate object from another MIB module.

Could you be more specific about the 'MIB:bject syntax"?

Thank you for you quick response!

Yun.

-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Thursday, January 24, 2008 5:08 PM
To: Li Yun-w22793
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Help for duplicate object name

On 24/01/2008, Li Yun-w22793 wrote:
> From RFC I can see that duplicate object name can be occurred in
> different information module but can not be occurred in the same
> information module. I was trying to define a duplicate object name in
> my MIB files to make it work with net-snmp,


That should work OK in general.

> but, it seems the mib2c doesn't support duplicate object name.


So it's the use of mib2c in particular that is causing problems?
How exactly are you invoking the command?

What happens if you use the MIB:bject syntax?
What is the exact problem that you are seeing?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users