[SNMP4J] MIBDesigner reports syntax...
Frank Fock
fock at agentpp.com
Mon Oct 28 16:48:19 CET 2013
Hi Josef,
To fix the first error, you need to use a enumeration label that starts with
a lowercase letter (as far as I know <LOWERCASENAME> is also printed
out in the error message by MIB Designer).
The second might look like a bug but is most likely caused by a previous
error in the MIB which did not allow to parse the OBJECT-TYPE definition
as such.
Hope this helps.
Best regards,
Frank
Am 28.10.2013 09:20, schrieb Jozsef Lazar:
> Hi,
>
> I'm running MIBDesigner v3.2 which sends the following syntax errors:
>
> 1. construct in my MIB:
>
> o2StorageStatus OBJECT-TYPE
> SYNTAX INTEGER {
> OK(1),
> Error(2) }
> MAX-ACCESS read-only
> STATUS current
> DESCRIPTION
> "Accessibility information."
> -- 1.3.6.1.4.1.33687.1.1.1.2.1.8 -- ::= { o2StorageTableEntry 8 }
>
> for which the designer sends the following syntax error.
>
> #1: [1000] Syntax error: Encountered "OK" at line 284, column 25:
> Was expecting one of:
> "obsolete" ...
> "optional" ...
> "deprecated" ...
> "mandatory" ...
> "current" ...
> ...
>
> 2. construct in the MIB:
>
> o2VPUptime OBJECT-TYPE
> SYNTAX Unsigned32
> MAX-ACCESS read-only
> STATUS current
> DESCRIPTION
> "The time (in UNIX seconds) since the NETAVIS
> video platform has been started."
> -- 1.3.6.1.4.1.33687.1.1.2.8 -- ::= { o2VideoPlatform 8 }
>
> then a reference to it in the group:
>
> o2BasicGroup OBJECT-GROUP
> OBJECTS {
> ...
> o2VPUptime,
> ... }
> STATUS current
> DESCRIPTION
> "Basic objects."
> -- 1.3.6.1.4.1.33687.1.3.1.1 -- ::= { o2Groups 1 }
>
> message from designer:
>
> #8: [1700] Object reference with wrong type: o2VPUptime at line 949,
> column 17,
> expected type was OBJECT-TYPE, but found OBJECT IDENTIFIER instead
>
> Please help me, what am I doing (understanding) wrong?
>
>
> Josef
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax: +49 7024 8688231
More information about the SNMP4J
mailing list