|
Packit |
022b05 |
LIBSMI-TEST-009-MIB DEFINITIONS ::= BEGIN
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
IMPORTS
|
|
Packit |
022b05 |
MODULE-IDENTITY
|
|
Packit |
022b05 |
FROM SNMPv2-SMI
|
|
Packit |
022b05 |
TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
FROM SNMPv2-TC
|
|
Packit |
022b05 |
testMib
|
|
Packit |
022b05 |
FROM LIBSMI-TEST-MIB;
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
libsmiTest009Mib MODULE-IDENTITY
|
|
Packit |
022b05 |
LAST-UPDATED "200005300900Z"
|
|
Packit |
022b05 |
ORGANIZATION
|
|
Packit |
022b05 |
"TU Braunschweig"
|
|
Packit |
022b05 |
CONTACT-INFO
|
|
Packit |
022b05 |
" Frank Strauss
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Postal: TU Braunschweig
|
|
Packit |
022b05 |
Bueltenweg 74/75
|
|
Packit |
022b05 |
38106 Braunschweig
|
|
Packit |
022b05 |
Germany
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
Phone: +49 531 391-3283
|
|
Packit |
022b05 |
EMail: strauss@ibr.cs.tu-bs.de
|
|
Packit |
022b05 |
http://www.ibr.cs.tu-bs.de/~strauss/"
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"This MIB module contains one or more intentional errors,
|
|
Packit |
022b05 |
and/or unusual contents. Its only purpose is to check
|
|
Packit |
022b05 |
the abilities of MIB parsers to detect these circumstances.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
This MIB module is orginally written in SMIv2 format.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
The MIB parser should complain about improper number and
|
|
Packit |
022b05 |
bits enumerations.
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
The libsmi parser is expected to report:
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:92: warning: named numbers not in ascending order
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:102: warning: first bit (bit zero) has no name assigned
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:114: warning: first bit (bit zero) has no name assigned
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:120: warning: first bit (bit zero) has no name assigned
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:120: warning: named numbers not in ascending order
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:126: warning: named bit `yellow(128)' may cause interoperability or implementation problems
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:126: warning: first bit (bit zero) has no name assigned
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:132: named bit `yellow(524280)' exceeds maximum bit position
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:132: warning: first bit (bit zero) has no name assigned
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:70: warning: current type `EnumTcTest1' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:76: warning: current type `EnumTcTest2' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:82: warning: current type `EnumTcTest3' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:82: redefinition of name `red' in number enumeration
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:88: warning: current type `EnumTcTest4' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:88: redefinition of number `3' in number enumeration
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:98: warning: current type `BitsTcTest1' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:104: warning: current type `BitsTcTest2' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:110: warning: current type `BitsTcTest3' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:110: redefinition of name `red' in named bits list
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:116: warning: current type `BitsTcTest4' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:116: redefinition of number `3' in named bits list
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:122: warning: current type `BitsTcTest5' is not referenced in this module
|
|
Packit |
022b05 |
LIBSMI-TEST-009-MIB:128: warning: current type `BitsTcTest6' is not referenced in this module
|
|
Packit |
022b05 |
"
|
|
Packit |
022b05 |
REVISION "200005300900Z"
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Initial Revision."
|
|
Packit |
022b05 |
::= { testMib 9 }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
--
|
|
Packit |
022b05 |
-- Test cases for number enumerations:
|
|
Packit |
022b05 |
--
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
EnumTcTest1 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Valid enumeration."
|
|
Packit |
022b05 |
SYNTAX INTEGER { red(1), green(2), blue(3) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
EnumTcTest2 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Valid enumeration."
|
|
Packit |
022b05 |
SYNTAX INTEGER { none(-1), red(1), green(2), blue(3) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
EnumTcTest3 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Invalid enumeration: redefinition of a name."
|
|
Packit |
022b05 |
SYNTAX INTEGER { none(-1), red(1), green(2), blue(3), red(4) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
EnumTcTest4 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Invalid enumeration: redefinition of a number."
|
|
Packit |
022b05 |
SYNTAX INTEGER { none(-1), red(1), green(2), blue(3), yellow(3) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
--
|
|
Packit |
022b05 |
-- Test cases for named bits lists:
|
|
Packit |
022b05 |
--
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
BitsTcTest1 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Valid bits enumeration."
|
|
Packit |
022b05 |
SYNTAX BITS { red(1), green(2), blue(3) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
BitsTcTest2 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Valid bits enumeration."
|
|
Packit |
022b05 |
SYNTAX BITS { none(0), red(1), green(2), blue(3) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
BitsTcTest3 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Invalid bits enumeration: redefinition of a name."
|
|
Packit |
022b05 |
SYNTAX BITS { red(1), green(2), blue(3), red(4) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
BitsTcTest4 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Invalid bits enumeration: redefinition of a number."
|
|
Packit |
022b05 |
SYNTAX BITS { red(1), green(2), blue(3), yellow(3) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
BitsTcTest5 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Invalid bits enumeration: number may cause interoperability problems."
|
|
Packit |
022b05 |
SYNTAX BITS { red(1), green(2), blue(3), yellow(128) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
BitsTcTest6 ::= TEXTUAL-CONVENTION
|
|
Packit |
022b05 |
STATUS current
|
|
Packit |
022b05 |
DESCRIPTION
|
|
Packit |
022b05 |
"Invalid bits enumeration: number too large to represent."
|
|
Packit |
022b05 |
SYNTAX BITS { red(1), green(2), blue(3), yellow(524280) }
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
END
|