-
Notifications
You must be signed in to change notification settings - Fork 1
/
SNMP-NOTIFICATION-MIB.yang
453 lines (382 loc) · 15.2 KB
/
SNMP-NOTIFICATION-MIB.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
/*
* This YANG module has been generated by smidump 0.5.0:
*
* smidump -f yang SNMP-NOTIFICATION-MIB
*
* Do not edit. Edit the source file instead!
*/
module SNMP-NOTIFICATION-MIB {
namespace "urn:ietf:params:xml:ns:yang:smiv2:SNMP-NOTIFICATION-MIB";
prefix "snmp-notification";
import SNMP-FRAMEWORK-MIB {
prefix "snmp-framework";
}
import SNMP-TARGET-MIB {
prefix "snmp-target";
}
import SNMPv2-TC {
prefix "snmpv2-tc";
}
import ietf-yang-smiv2 {
prefix "smiv2";
}
import ietf-yang-types {
prefix "yang";
}
organization
"IETF SNMPv3 Working Group";
contact
"WG-email: [email protected]
Subscribe: [email protected]
In message body: subscribe snmpv3
Co-Chair: Russ Mundy
Network Associates Laboratories
Postal: 15204 Omega Drive, Suite 300
Rockville, MD 20850-4601
USA
EMail: [email protected]
Phone: +1 301-947-7107
Co-Chair: David Harrington
Enterasys Networks
Postal: 35 Industrial Way
P. O. Box 5004
Rochester, New Hampshire 03866-5005
USA
EMail: [email protected]
Phone: +1 603-337-2614
Co-editor: David B. Levi
Nortel Networks
Postal: 3505 Kesterwood Drive
Knoxville, Tennessee 37918
EMail: [email protected]
Phone: +1 865 686 0432
Co-editor: Paul Meyer
Secure Computing Corporation
Postal: 2675 Long Lake Road
Roseville, Minnesota 55113
EMail: [email protected]
Phone: +1 651 628 1592
Co-editor: Bob Stewart
Retired";
description
"This MIB module defines MIB objects which provide
mechanisms to remotely configure the parameters
used by an SNMP entity for the generation of
notifications.
Copyright (C) The Internet Society (2002). This
version of this MIB module is part of RFC 3413;
see the RFC itself for full legal notices.";
revision 2002-10-14 {
description
"Clarifications, published as
RFC 3413.";
}
revision 1998-08-04 {
description
"Clarifications, published as
RFC 2573.";
}
revision 1997-07-14 {
description
"The initial revision, published as RFC2273.";
}
container SNMP-NOTIFICATION-MIB {
config false;
container snmpNotifyTable {
description
"This table is used to select management targets which should
receive notifications, as well as the type of notification
which should be sent to each selected management target.";
smiv2:oid "1.3.6.1.6.3.13.1.1";
list snmpNotifyEntry {
key "snmpNotifyName";
smiv2:implied "snmpNotifyName";
description
"An entry in this table selects a set of management targets
which should receive notifications, as well as the type of
notification which should be sent to each selected
management target.
Entries in the snmpNotifyTable are created and
deleted using the snmpNotifyRowStatus object.";
smiv2:oid "1.3.6.1.6.3.13.1.1.1";
leaf snmpNotifyName {
type snmp-framework:SnmpAdminString {
length "1..32";
}
description
"The locally arbitrary, but unique identifier associated
with this snmpNotifyEntry.";
smiv2:max-access "not-accessible";
smiv2:oid "1.3.6.1.6.3.13.1.1.1.1";
}
leaf snmpNotifyTag {
type snmp-target:SnmpTagValue;
description
"This object contains a single tag value which is used
to select entries in the snmpTargetAddrTable. Any entry
in the snmpTargetAddrTable which contains a tag value
which is equal to the value of an instance of this
object is selected. If this object contains a value
of zero length, no entries are selected.";
smiv2:defval "";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.1.1.2";
}
leaf snmpNotifyType {
type enumeration {
enum "trap" {
value "1";
}
enum "inform" {
value "2";
}
}
description
"This object determines the type of notification to
be generated for entries in the snmpTargetAddrTable
selected by the corresponding instance of
snmpNotifyTag. This value is only used when
generating notifications, and is ignored when
using the snmpTargetAddrTable for other purposes.
If the value of this object is trap(1), then any
messages generated for selected rows will contain
Unconfirmed-Class PDUs.
If the value of this object is inform(2), then any
messages generated for selected rows will contain
Confirmed-Class PDUs.
Note that if an SNMP entity only supports
generation of Unconfirmed-Class PDUs (and not
Confirmed-Class PDUs), then this object may be
read-only.";
smiv2:defval "trap";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.1.1.3";
}
leaf snmpNotifyStorageType {
type snmpv2-tc:StorageType;
description
"The storage type for this conceptual row.
Conceptual rows having the value 'permanent' need not
allow write-access to any columnar objects in the row.";
smiv2:defval "nonVolatile";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.1.1.4";
}
leaf snmpNotifyRowStatus {
type snmpv2-tc:RowStatus;
description
"The status of this conceptual row.
To create a row in this table, a manager must
set this object to either createAndGo(4) or
createAndWait(5).";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.1.1.5";
}
}
}
container snmpNotifyFilterProfileTable {
description
"This table is used to associate a notification filter
profile with a particular set of target parameters.";
smiv2:oid "1.3.6.1.6.3.13.1.2";
list snmpNotifyFilterProfileEntry {
key "snmpTargetParamsName";
smiv2:implied "snmpTargetParamsName";
description
"An entry in this table indicates the name of the filter
profile to be used when generating notifications using
the corresponding entry in the snmpTargetParamsTable.
Entries in the snmpNotifyFilterProfileTable are created
and deleted using the snmpNotifyFilterProfileRowStatus
object.";
smiv2:oid "1.3.6.1.6.3.13.1.2.1";
leaf snmpTargetParamsName {
type leafref {
path "/snmp-target:SNMP-TARGET-MIB/snmp-target:snmpTargetParamsTable/snmp-target:snmpTargetParamsEntry/snmp-target:snmpTargetParamsName";
}
description
"See the definition of the leaf the leafref path points to.
[This leaf has been added by the SMIv2 to YANG conversion.]";
}
leaf snmpNotifyFilterProfileName {
type snmp-framework:SnmpAdminString {
length "1..32";
}
description
"The name of the filter profile to be used when generating
notifications using the corresponding entry in the
snmpTargetAddrTable.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.2.1.1";
}
leaf snmpNotifyFilterProfileStorType {
type snmpv2-tc:StorageType;
description
"The storage type for this conceptual row.
Conceptual rows having the value 'permanent' need not
allow write-access to any columnar objects in the row.";
smiv2:defval "nonVolatile";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.2.1.2";
}
leaf snmpNotifyFilterProfileRowStatus {
type snmpv2-tc:RowStatus;
description
"The status of this conceptual row.
To create a row in this table, a manager must
set this object to either createAndGo(4) or
createAndWait(5).
Until instances of all corresponding columns are
appropriately configured, the value of the
corresponding instance of the
snmpNotifyFilterProfileRowStatus column is 'notReady'.
In particular, a newly created row cannot be made
active until the corresponding instance of
snmpNotifyFilterProfileName has been set.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.2.1.3";
}
}
}
container snmpNotifyFilterTable {
description
"The table of filter profiles. Filter profiles are used
to determine whether particular management targets should
receive particular notifications.
When a notification is generated, it must be compared
with the filters associated with each management target
which is configured to receive notifications, in order to
determine whether it may be sent to each such management
target.
A more complete discussion of notification filtering
can be found in section 6. of [SNMP-APPL].";
smiv2:oid "1.3.6.1.6.3.13.1.3";
list snmpNotifyFilterEntry {
key "snmpNotifyFilterProfileName snmpNotifyFilterSubtree";
smiv2:implied "snmpNotifyFilterSubtree";
description
"An element of a filter profile.
Entries in the snmpNotifyFilterTable are created and
deleted using the snmpNotifyFilterRowStatus object.";
smiv2:oid "1.3.6.1.6.3.13.1.3.1";
leaf snmpNotifyFilterProfileName {
type leafref {
path "/snmp-notification:SNMP-NOTIFICATION-MIB/snmp-notification:snmpNotifyFilterProfileTable/snmp-notification:snmpNotifyFilterProfileEntry/snmp-notification:snmpNotifyFilterProfileName";
}
description
"See the definition of the leaf the leafref path points to.
[This leaf has been added by the SMIv2 to YANG conversion.]";
}
leaf snmpNotifyFilterSubtree {
type yang:object-identifier-128;
description
"The MIB subtree which, when combined with the corresponding
instance of snmpNotifyFilterMask, defines a family of
subtrees which are included in or excluded from the
filter profile.";
smiv2:max-access "not-accessible";
smiv2:oid "1.3.6.1.6.3.13.1.3.1.1";
}
leaf snmpNotifyFilterMask {
type binary {
length "0..16";
}
description
"The bit mask which, in combination with the corresponding
instance of snmpNotifyFilterSubtree, defines a family of
subtrees which are included in or excluded from the
filter profile.
Each bit of this bit mask corresponds to a
sub-identifier of snmpNotifyFilterSubtree, with the
most significant bit of the i-th octet of this octet
string value (extended if necessary, see below)
corresponding to the (8*i - 7)-th sub-identifier, and
the least significant bit of the i-th octet of this
octet string corresponding to the (8*i)-th
sub-identifier, where i is in the range 1 through 16.
Each bit of this bit mask specifies whether or not
the corresponding sub-identifiers must match when
determining if an OBJECT IDENTIFIER matches this
family of filter subtrees; a '1' indicates that an
exact match must occur; a '0' indicates 'wild card',
i.e., any sub-identifier value matches.
Thus, the OBJECT IDENTIFIER X of an object instance
is contained in a family of filter subtrees if, for
each sub-identifier of the value of
snmpNotifyFilterSubtree, either:
the i-th bit of snmpNotifyFilterMask is 0, or
the i-th sub-identifier of X is equal to the i-th
sub-identifier of the value of
snmpNotifyFilterSubtree.
If the value of this bit mask is M bits long and
there are more than M sub-identifiers in the
corresponding instance of snmpNotifyFilterSubtree,
then the bit mask is extended with 1's to be the
required length.
Note that when the value of this object is the
zero-length string, this extension rule results in
a mask of all-1's being used (i.e., no 'wild card'),
and the family of filter subtrees is the one
subtree uniquely identified by the corresponding
instance of snmpNotifyFilterSubtree.";
smiv2:defval "";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.3.1.2";
}
leaf snmpNotifyFilterType {
type enumeration {
enum "included" {
value "1";
}
enum "excluded" {
value "2";
}
}
description
"This object indicates whether the family of filter subtrees
defined by this entry are included in or excluded from a
filter. A more detailed discussion of the use of this
object can be found in section 6. of [SNMP-APPL].";
smiv2:defval "included";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.3.1.3";
}
leaf snmpNotifyFilterStorageType {
type snmpv2-tc:StorageType;
description
"The storage type for this conceptual row.
Conceptual rows having the value 'permanent' need not
allow write-access to any columnar objects in the row.";
smiv2:defval "nonVolatile";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.3.1.4";
}
leaf snmpNotifyFilterRowStatus {
type snmpv2-tc:RowStatus;
description
"The status of this conceptual row.
To create a row in this table, a manager must
set this object to either createAndGo(4) or
createAndWait(5).";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.6.3.13.1.3.1.5";
}
}
}
}
smiv2:alias "snmpNotificationMIB" {
smiv2:oid "1.3.6.1.6.3.13";
}
smiv2:alias "snmpNotifyObjects" {
smiv2:oid "1.3.6.1.6.3.13.1";
}
smiv2:alias "snmpNotifyConformance" {
smiv2:oid "1.3.6.1.6.3.13.3";
}
smiv2:alias "snmpNotifyCompliances" {
smiv2:oid "1.3.6.1.6.3.13.3.1";
}
smiv2:alias "snmpNotifyGroups" {
smiv2:oid "1.3.6.1.6.3.13.3.2";
}
}