NetXMS Support Forum

English Support => General Support => Topic started by: testos on March 11, 2011, 11:37:01 AM

Title: nxmibc error compilation
Post by: testos on March 11, 2011, 11:37:01 AM
Hi,

nxmibc tool can not resolve import symbols:

QuoteResolving imports:
   ACCOUNTING-CONTROL-MIB
ACCOUNTING-CONTROL-MIB: ERROR 001: Import symbol "MODULE-IDENTITY" unresolved

QuoteResolving imports:
   IANA-ADDRESS-FAMILY-NUMBERS-MIB
IANA-ADDRESS-FAMILY-NUMBERS-MIB: ERROR 001: Import symbol "MODULE-IDENTITY" unresolved

QuoteResolving imports:
   FORTINET-CORE-MIB
FORTINET-CORE-MIB: ERROR 001: Import symbol "Integer32" unresolved

...etc.


This was right compiled in previous NetXMS version.

Best regards.
Title: Re: nxmibc error compilation
Post by: Victor Kirhenshtein on March 12, 2011, 05:50:06 PM
Hi!

Just check it on my machine, attached MIB compiles without problem together with all MIBs included in NetXMS distribution. May be you have broken or missing file SNMPv2-SMI.txt?

Best regards,
Victor
Title: Re: nxmibc error compilation
Post by: testos on March 14, 2011, 12:42:52 PM
Hi Victor.

You were right again. I had broken "SNMPv2-SMI.txt" file.
nxmibc tool work fine again.

thx
Title: Re: nxmibc error compilation
Post by: aggie0642 on April 14, 2011, 04:56:39 AM
I think I might have the same issue.

Here is what I get :

C:\NetXMS\bin>nxmibc SNMPv2-SMI.txt
NetXMS MIB Compiler  Version 1.1.0
Copyright (c) 2005-2010 Victor Kirhenshtein

Parsing source files:
   SNMPv2-SMI.txt
Resolving imports:
   SNMPv2-SMI
Resolving object identifiers:
   SNMPv2-SMI
Creating MIB tree:
   SNMPv2-SMI

C:\NetXMS\bin>nxmibc SNMPv2-TC.my
NetXMS MIB Compiler  Version 1.1.0
Copyright (c) 2005-2010 Victor Kirhenshtein

Parsing source files:
   SNMPv2-TC.my
Resolving imports:
   SNMPv2-TC
SNMPv2-TC: ERROR 002: Import module "SNMPv2-SMI" unresolved

C:\NetXMS\bin>nxmibc SNMPv2-TC.my







How do I know if my SNMPv2-SMI is broken? It seems to import correctly and I downloaded them directly from cisco.

Thanks
Title: Re: nxmibc error compilation
Post by: Victor Kirhenshtein on April 14, 2011, 11:18:23 AM
Hi!

nxmibc reads only mib files passed to him at command line. So, if you wish to compile two mibs together, you should use command


nxmibc SNMPv2-TC.my SNMPv2-SMI.txt


Because usually there are lot of MIB files, most often used form is

nxmibc -d mibdir

Option -d instructs nxmibc to read all files with extension .txt from given directory.

Best regards,
Victor
Title: Re: nxmibc error compilation
Post by: aggie0642 on April 14, 2011, 07:26:48 PM
Ok I got it. Thanks.