| 1 |
LIBSMI-TEST-011-MIB DEFINITIONS ::= BEGIN |
| 2 |
|
| 3 |
IMPORTS |
| 4 |
MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, |
| 5 |
OBJECT-IDENTITY, Integer32 |
| 6 |
FROM SNMPv2-SMI |
| 7 |
TEXTUAL-CONVENTION |
| 8 |
FROM SNMPv2-TC |
| 9 |
OBJECT-GROUP, NOTIFICATION-GROUP |
| 10 |
FROM SNMPv2-CONF |
| 11 |
testMib |
| 12 |
FROM LIBSMI-TEST-MIB; |
| 13 |
|
| 14 |
libsmiTest011Mib MODULE-IDENTITY |
| 15 |
LAST-UPDATED "200007051000Z" |
| 16 |
ORGANIZATION |
| 17 |
"TU Braunschweig" |
| 18 |
CONTACT-INFO |
| 19 |
" Frank Strauss |
| 20 |
|
| 21 |
Postal: TU Braunschweig |
| 22 |
Bueltenweg 74/75 |
| 23 |
38106 Braunschweig |
| 24 |
Germany |
| 25 |
|
| 26 |
Phone: +49 531 391-3283 |
| 27 |
EMail: [email protected] |
| 28 |
http://www.ibr.cs.tu-bs.de/~strauss/" |
| 29 |
DESCRIPTION |
| 30 |
"This MIB module contains one or more intentional errors, |
| 31 |
and/or unusual contents. Its only purpose is to check |
| 32 |
the abilities of MIB parsers to detect these circumstances. |
| 33 |
|
| 34 |
This MIB module is orginally written in SMIv2 format. |
| 35 |
|
| 36 |
This module checks the proper handling of forward references. |
| 37 |
|
| 38 |
The libsmi parser is expected to report: |
| 39 |
LIBSMI-TEST-011-MIB:91: warning: exactly one index element of row `testEntry' must be accessible |
| 40 |
LIBSMI-TEST-011-MIB:54: warning: current group `group1' is not referenced in this module |
| 41 |
LIBSMI-TEST-011-MIB:61: warning: current group `group2' is not referenced in this module |
| 42 |
" |
| 43 |
REVISION "200007051000Z" |
| 44 |
DESCRIPTION |
| 45 |
"Initial Revision." |
| 46 |
::= { testMib 11 } |
| 47 |
|
| 48 |
-- |
| 49 |
-- The following definitions are just written down in reverse order |
| 50 |
-- than usual. The parser should not have any problems to deal with |
| 51 |
-- them. |
| 52 |
-- |
| 53 |
|
| 54 |
group1 OBJECT-GROUP |
| 55 |
OBJECTS { testScalar1 } |
| 56 |
STATUS current |
| 57 |
DESCRIPTION |
| 58 |
"junk" |
| 59 |
::= { testGroups 1 } |
| 60 |
|
| 61 |
group2 NOTIFICATION-GROUP |
| 62 |
NOTIFICATIONS { testNotification1 } |
| 63 |
STATUS current |
| 64 |
DESCRIPTION |
| 65 |
"junk" |
| 66 |
::= { testGroups 2 } |
| 67 |
|
| 68 |
testNotification1 NOTIFICATION-TYPE |
| 69 |
OBJECTS { testScalar1 } |
| 70 |
STATUS current |
| 71 |
DESCRIPTION |
| 72 |
"junk" |
| 73 |
::= { testNotifications 1 } |
| 74 |
|
| 75 |
testScalar1 OBJECT-TYPE |
| 76 |
SYNTAX TestTc1 |
| 77 |
MAX-ACCESS read-only |
| 78 |
STATUS current |
| 79 |
DESCRIPTION |
| 80 |
"Invalid size restriction on an enumeration." |
| 81 |
::= { testObjects 1 } |
| 82 |
|
| 83 |
testColumn1 OBJECT-TYPE |
| 84 |
SYNTAX Integer32 (0..32) |
| 85 |
MAX-ACCESS not-accessible |
| 86 |
STATUS current |
| 87 |
DESCRIPTION |
| 88 |
"junk" |
| 89 |
::= { testEntry 1 } |
| 90 |
|
| 91 |
testEntry OBJECT-TYPE |
| 92 |
SYNTAX TestEntry |
| 93 |
MAX-ACCESS not-accessible |
| 94 |
STATUS current |
| 95 |
DESCRIPTION |
| 96 |
"junk" |
| 97 |
INDEX { testColumn1 } |
| 98 |
::= { testTable 1 } |
| 99 |
|
| 100 |
testTable OBJECT-TYPE |
| 101 |
SYNTAX SEQUENCE OF TestEntry |
| 102 |
MAX-ACCESS not-accessible |
| 103 |
STATUS current |
| 104 |
DESCRIPTION |
| 105 |
"junk" |
| 106 |
::= { testObjects 2 } |
| 107 |
|
| 108 |
TestEntry ::= SEQUENCE { |
| 109 |
testColumn1 Integer32 |
| 110 |
} |
| 111 |
|
| 112 |
TestTc1 ::= TEXTUAL-CONVENTION |
| 113 |
STATUS current |
| 114 |
DESCRIPTION |
| 115 |
"Valid enumeration." |
| 116 |
SYNTAX INTEGER { red(1), green(2), blue(3) } |
| 117 |
|
| 118 |
textConst1 OBJECT-IDENTITY |
| 119 |
STATUS current |
| 120 |
DESCRIPTION |
| 121 |
"junk" |
| 122 |
::= { testConstants 1 } |
| 123 |
|
| 124 |
testConstants OBJECT IDENTIFIER ::= { testDefinitions 3 } |
| 125 |
testGroups OBJECT IDENTIFIER ::= { testDefinitions 2 } |
| 126 |
testObjects OBJECT IDENTIFIER ::= { testDefinitions 1 } |
| 127 |
testNotifications OBJECT IDENTIFIER ::= { testDefinitions 0 } |
| 128 |
|
| 129 |
testDefinitions OBJECT IDENTIFIER ::= { libsmiTest011Mib 1 } |
| 130 |
|
| 131 |
END |