Debian Codegraph @

mibs/SNMPv2-SMI

raw
1 -- extracted from rfc2578.txt
2
3 SNMPv2-SMI DEFINITIONS ::= BEGIN
4
5
6 -- the path to the root
7
8 org OBJECT IDENTIFIER ::= { iso 3 } -- "iso" = 1
9 dod OBJECT IDENTIFIER ::= { org 6 }
10 internet OBJECT IDENTIFIER ::= { dod 1 }
11
12 directory OBJECT IDENTIFIER ::= { internet 1 }
13
14 mgmt OBJECT IDENTIFIER ::= { internet 2 }
15 mib-2 OBJECT IDENTIFIER ::= { mgmt 1 }
16 transmission OBJECT IDENTIFIER ::= { mib-2 10 }
17
18 experimental OBJECT IDENTIFIER ::= { internet 3 }
19
20 private OBJECT IDENTIFIER ::= { internet 4 }
21 enterprises OBJECT IDENTIFIER ::= { private 1 }
22
23 security OBJECT IDENTIFIER ::= { internet 5 }
24
25 snmpV2 OBJECT IDENTIFIER ::= { internet 6 }
26
27 -- transport domains
28 snmpDomains OBJECT IDENTIFIER ::= { snmpV2 1 }
29
30 -- transport proxies
31 snmpProxys OBJECT IDENTIFIER ::= { snmpV2 2 }
32
33 -- module identities
34 snmpModules OBJECT IDENTIFIER ::= { snmpV2 3 }
35
36 -- Extended UTCTime, to allow dates with four-digit years
37 -- (Note that this definition of ExtUTCTime is not to be IMPORTed
38 -- by MIB modules.)
39 ExtUTCTime ::= OCTET STRING(SIZE(11 | 13))
40 -- format is YYMMDDHHMMZ or YYYYMMDDHHMMZ
41 -- where: YY - last two digits of year (only years
42 -- between 1900-1999)
43 -- YYYY - last four digits of the year (any year)
44 -- MM - month (01 through 12)
45 -- DD - day of month (01 through 31)
46 -- HH - hours (00 through 23)
47 -- MM - minutes (00 through 59)
48 -- Z - denotes GMT (the ASCII character Z)
49 --
50 -- For example, "9502192015Z" and "199502192015Z" represent
51 -- 8:15pm GMT on 19 February 1995. Years after 1999 must use
52 -- the four digit year format. Years 1900-1999 may use the
53 -- two or four digit format.
54
55 -- definitions for information modules
56
57 MODULE-IDENTITY MACRO ::=
58 BEGIN
59 TYPE NOTATION ::=
60 "LAST-UPDATED" value(Update ExtUTCTime)
61 "ORGANIZATION" Text
62 "CONTACT-INFO" Text
63 "DESCRIPTION" Text
64 RevisionPart
65
66 VALUE NOTATION ::=
67 value(VALUE OBJECT IDENTIFIER)
68
69 RevisionPart ::=
70 Revisions
71 | empty
72 Revisions ::=
73 Revision
74 | Revisions Revision
75 Revision ::=
76 "REVISION" value(Update ExtUTCTime)
77 "DESCRIPTION" Text
78
79 -- a character string as defined in section 3.1.1
80 Text ::= value(IA5String)
81 END
82
83
84 OBJECT-IDENTITY MACRO ::=
85 BEGIN
86 TYPE NOTATION ::=
87 "STATUS" Status
88 "DESCRIPTION" Text
89 ReferPart
90
91 VALUE NOTATION ::=
92 value(VALUE OBJECT IDENTIFIER)
93
94 Status ::=
95 "current"
96 | "deprecated"
97 | "obsolete"
98
99 ReferPart ::=
100 "REFERENCE" Text
101 | empty
102
103 -- a character string as defined in section 3.1.1
104 Text ::= value(IA5String)
105 END
106
107
108 -- names of objects
109 -- (Note that these definitions of ObjectName and NotificationName
110 -- are not to be IMPORTed by MIB modules.)
111
112 ObjectName ::=
113 OBJECT IDENTIFIER
114
115 NotificationName ::=
116 OBJECT IDENTIFIER
117
118 -- syntax of objects
119
120 -- the "base types" defined here are:
121 -- 3 built-in ASN.1 types: INTEGER, OCTET STRING, OBJECT IDENTIFIER
122 -- 8 application-defined types: Integer32, IpAddress, Counter32,
123 -- Gauge32, Unsigned32, TimeTicks, Opaque, and Counter64
124
125 ObjectSyntax ::=
126 CHOICE {
127 simple
128 SimpleSyntax,
129
130 -- note that SEQUENCEs for conceptual tables and
131 -- rows are not mentioned here...
132
133 application-wide
134 ApplicationSyntax
135 }
136
137 -- built-in ASN.1 types
138
139 SimpleSyntax ::=
140 CHOICE {
141 -- INTEGERs with a more restrictive range
142 -- may also be used
143 integer-value -- includes Integer32
144 INTEGER (-2147483648..2147483647),
145
146 -- OCTET STRINGs with a more restrictive size
147 -- may also be used
148 string-value
149 OCTET STRING (SIZE (0..65535)),
150
151 objectID-value
152 OBJECT IDENTIFIER
153 }
154
155 -- indistinguishable from INTEGER, but never needs more than
156 -- 32-bits for a two's complement representation
157 Integer32 ::=
158 INTEGER (-2147483648..2147483647)
159
160
161 -- application-wide types
162
163 ApplicationSyntax ::=
164 CHOICE {
165 ipAddress-value
166 IpAddress,
167
168 counter-value
169 Counter32,
170
171 timeticks-value
172 TimeTicks,
173
174 arbitrary-value
175 Opaque,
176
177 big-counter-value
178 Counter64,
179
180 unsigned-integer-value -- includes Gauge32
181 Unsigned32
182 }
183
184 -- in network-byte order
185 -- (this is a tagged type for historical reasons)
186 IpAddress ::=
187 [APPLICATION 0]
188 IMPLICIT OCTET STRING (SIZE (4))
189
190 -- this wraps
191 Counter32 ::=
192 [APPLICATION 1]
193 IMPLICIT INTEGER (0..4294967295)
194
195 -- this doesn't wrap
196 Gauge32 ::=
197 [APPLICATION 2]
198 IMPLICIT INTEGER (0..4294967295)
199
200 -- an unsigned 32-bit quantity
201 -- indistinguishable from Gauge32
202 Unsigned32 ::=
203 [APPLICATION 2]
204 IMPLICIT INTEGER (0..4294967295)
205
206 -- hundredths of seconds since an epoch
207 TimeTicks ::=
208 [APPLICATION 3]
209 IMPLICIT INTEGER (0..4294967295)
210
211 -- for backward-compatibility only
212 Opaque ::=
213 [APPLICATION 4]
214 IMPLICIT OCTET STRING
215
216 -- for counters that wrap in less than one hour with only 32 bits
217 Counter64 ::=
218 [APPLICATION 6]
219 IMPLICIT INTEGER (0..18446744073709551615)
220
221
222 -- definition for objects
223
224 OBJECT-TYPE MACRO ::=
225 BEGIN
226 TYPE NOTATION ::=
227 "SYNTAX" Syntax
228 UnitsPart
229 "MAX-ACCESS" Access
230 "STATUS" Status
231 "DESCRIPTION" Text
232 ReferPart
233 IndexPart
234 DefValPart
235
236 VALUE NOTATION ::=
237 value(VALUE ObjectName)
238
239 Syntax ::= -- Must be one of the following:
240 -- a base type (or its refinement),
241 -- a textual convention (or its refinement), or
242 -- a BITS pseudo-type
243 type
244 | "BITS" "{" NamedBits "}"
245
246 NamedBits ::= NamedBit
247 | NamedBits "," NamedBit
248
249 NamedBit ::= identifier "(" number ")" -- number is nonnegative
250
251 UnitsPart ::=
252 "UNITS" Text
253 | empty
254
255 Access ::=
256 "not-accessible"
257 | "accessible-for-notify"
258 | "read-only"
259 | "read-write"
260 | "read-create"
261
262 Status ::=
263 "current"
264 | "deprecated"
265 | "obsolete"
266
267 ReferPart ::=
268 "REFERENCE" Text
269 | empty
270
271 IndexPart ::=
272 "INDEX" "{" IndexTypes "}"
273 | "AUGMENTS" "{" Entry "}"
274 | empty
275 IndexTypes ::=
276 IndexType
277 | IndexTypes "," IndexType
278 IndexType ::=
279 "IMPLIED" Index
280 | Index
281
282 Index ::=
283 -- use the SYNTAX value of the
284 -- correspondent OBJECT-TYPE invocation
285 value(ObjectName)
286 Entry ::=
287 -- use the INDEX value of the
288 -- correspondent OBJECT-TYPE invocation
289 value(ObjectName)
290
291 DefValPart ::= "DEFVAL" "{" Defvalue "}"
292 | empty
293
294 Defvalue ::= -- must be valid for the type specified in
295 -- SYNTAX clause of same OBJECT-TYPE macro
296 value(ObjectSyntax)
297 | "{" BitsValue "}"
298
299 BitsValue ::= BitNames
300 | empty
301
302 BitNames ::= BitName
303 | BitNames "," BitName
304
305 BitName ::= identifier
306
307 -- a character string as defined in section 3.1.1
308 Text ::= value(IA5String)
309 END
310
311
312 -- definitions for notifications
313
314 NOTIFICATION-TYPE MACRO ::=
315 BEGIN
316 TYPE NOTATION ::=
317 ObjectsPart
318 "STATUS" Status
319 "DESCRIPTION" Text
320 ReferPart
321
322 VALUE NOTATION ::=
323 value(VALUE NotificationName)
324
325 ObjectsPart ::=
326 "OBJECTS" "{" Objects "}"
327 | empty
328 Objects ::=
329 Object
330 | Objects "," Object
331 Object ::=
332 value(ObjectName)
333
334 Status ::=
335 "current"
336 | "deprecated"
337 | "obsolete"
338
339 ReferPart ::=
340 "REFERENCE" Text
341 | empty
342
343 -- a character string as defined in section 3.1.1
344 Text ::= value(IA5String)
345 END
346
347 -- definitions of administrative identifiers
348
349 zeroDotZero OBJECT-IDENTITY
350 STATUS current
351 DESCRIPTION
352 "A value used for null identifiers."
353 ::= { 0 0 }
354
355 END