lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

MIB Compiler Illegal Syntax TEXTUAL-CONVENTION #227

Closed lextudio-support closed 3 hours ago

lextudio-support commented 4 hours ago

I am trying to use the MIB compiler to compile publicly available APPC-MIB module, and the following definition seems to be raising the exception "illegal syntax for textual convention. Wrong entity, DisplayString in file ...".

  SnaSenseData ::= TEXTUAL-CONVENTION
  STATUS current
  DESCRIPTION
      "To facilitate their display by a Management Station, sense
      data objects in the MIB are represented as DisplayStrings of
      size 8.  Eight '0' characters indicates that no sense data
      identifying an SNA error condition is available."

  SYNTAX DisplayString (SIZE (8))

I have been able to open this MIB file with ManageEngine's MIB Browser tool, so I'm thinking that lexer hasn't properly dealt with valid syntax.

Original Reported Date: 2015-09-13T04:16:32.107-07:00 Planned For Release: Original CodePlex ID: 7280

lextudio-support commented 3 hours ago

Copied from CodePlex without authors:

You need to grad basic documents following this guide,

https://sharpsnmplib.codeplex.com/wikipage?title=CompilerProReview

and use the attached two documents for testing.

Original Posted Date: 2015-09-16T05:57:57.58-07:00

lextudio-support commented 3 hours ago

Copied from CodePlex without authors:

Sincere apologies for my ignorance, I am new to this. This RFC (2051) was referenced in another MIB I have been interested in loading, but as far as I can tell, this is unaltered from the original RFC which is loaded up on IETF.org.

Are you saying that there could be some extraneous characters somewhere that could be causing the issue.

I have tried looking for an authoritative source of MIB files on the ietf.org (or tools.ietf.org) and they all seem to be embedded in the text of the document.

Have you got some advise as to where the proper files should be downloaded to ensure that I have the correct ones?

Thanks in advance. Craig

Original Posted Date: 2015-10-15T04:07:21.127-07:00

lextudio-support commented 3 hours ago

The user must use proper MIB documents instead of anything downloaded from the Internet.

Original Closed Date: 2015-09-16T05:58:34.157-07:00