News:

We really need your input in this questionnaire

Main Menu

nxmibc error compilation

Started by testos, March 11, 2011, 11:37:01 AM

Previous topic - Next topic

testos

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.

Victor Kirhenshtein

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

testos

Hi Victor.

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

thx

aggie0642

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

Victor Kirhenshtein

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

aggie0642