-
Notifications
You must be signed in to change notification settings - Fork 1
/
CLIXON-TYPES-MIB.yang
608 lines (545 loc) · 18 KB
/
CLIXON-TYPES-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
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
/*
* This YANG module has been generated by smidump 0.5.0:
*
* smidump -f yang CLIXON-TYPES-MIB
*
* Do not edit. Edit the source file instead!
*/
module CLIXON-TYPES-MIB {
namespace "urn:ietf:params:xml:ns:yang:smiv2:CLIXON-TYPES-MIB";
prefix "clixon-types";
import IANAifType-MIB {
prefix "ianaiftype-mib";
}
import INET-ADDRESS-MIB {
prefix "inet-address";
}
import NET-SNMP-MIB {
prefix "net-snmp";
}
import SNMP-FRAMEWORK-MIB {
prefix "snmp-framework";
}
import SNMPv2-TC {
prefix "snmpv2-tc";
}
import ietf-inet-types {
prefix "inet";
}
import ietf-yang-smiv2 {
prefix "smiv2";
}
import ietf-yang-types {
prefix "yang";
}
organization
"www.net-snmp.org";
contact
"postal: Wes Hardaker
P.O. Box 382
Davis CA 95617
email: [email protected]";
description
"Example MIB objects for agent module example implementations";
revision 2004-06-15 {
description
"Corrected notification example definitions";
}
revision 2002-02-06 {
description
"First draft";
}
container CLIXON-TYPES-MIB {
config false;
container netSnmp {
smiv2:oid "1.3.6.1.4.1.8072";
}
container clixonExampleScalars {
smiv2:oid "1.3.6.1.4.1.8072.200.1";
leaf clixonExampleInteger {
type int32;
description
"This is a simple object which merely houses a writable
integer. It's only purposes is to hold the value of a single
integer. Writing to it will simply change the value for
subsequent GET/GETNEXT/GETBULK retrievals.
This example object is implemented in the
agent/mibgroup/examples/scalar_int.c file.";
smiv2:defval "42";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.1.1";
}
leaf clixonExampleSleeper {
type int32;
description
"This is a simple object which is a basic integer. It's value
indicates the number of seconds that the agent will take in
responding to requests of this object. This is implemented
in a way which will allow the agent to keep responding to
other requests while access to this object is blocked. It is
writable, and changing it's value will change the amount of
time the agent will effectively wait for before returning a
response when this object is manipulated. Note that SET
requests through this object will take longer, since the
delay is applied to each internal transaction phase, which
could result in delays of up to 4 times the value of this
object.
This example object is implemented in the
agent/mibgroup/examples/delayed_instance.c file.";
smiv2:defval "1";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.1.2";
}
leaf clixonExampleString {
type snmp-framework:SnmpAdminString;
description
"This is a simple object which merely houses a writable
string. It's only purposes is to hold the value of a single
string. Writing to it will simply change the value for
subsequent GET/GETNEXT/GETBULK retrievals.
This example object is implemented in the
agent/mibgroup/examples/watched.c file.";
smiv2:defval "So long, and thanks for all the fish!";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.1.3";
}
leaf ifTableLastChange {
type yang:timeticks;
description
"The value of sysUpTime at the time of the last creation or
deletion of an entry in the ifTable. If the number of
entries has been unchanged since the last re-initialization
of the local network management subsystem, then this object
contains a zero value.";
smiv2:max-access "read-only";
smiv2:oid "1.3.6.1.4.1.8072.200.1.4";
}
leaf ifType {
type ianaiftype-mib:IANAifType;
description
"The type of interface. Additional values for ifType are
assigned by the Internet Assigned Numbers Authority (IANA),
through updating the syntax of the IANAifType textual
convention.";
smiv2:max-access "read-only";
smiv2:oid "1.3.6.1.4.1.8072.200.1.5";
}
leaf ifSpeed {
type yang:gauge32;
description
"An estimate of the interface's current bandwidth in bits
per second. For interfaces which do not vary in bandwidth
or for those where no accurate estimation can be made, this
object should contain the nominal bandwidth. If the
bandwidth of the interface is greater than the maximum value
reportable by this object then this object should report its
maximum value (4,294,967,295) and ifHighSpeed must be used
to report the interace's speed. For a sub-layer which has
no concept of bandwidth, this object should be zero.";
smiv2:max-access "read-only";
smiv2:oid "1.3.6.1.4.1.8072.200.1.6";
}
leaf ifAdminStatus {
type enumeration {
enum "up" {
value "1";
}
enum "down" {
value "2";
}
enum "testing" {
value "3";
}
}
description
"The desired state of the interface. The testing(3) state
indicates that no operational packets can be passed. When a
managed system initializes, all interfaces start with
ifAdminStatus in the down(2) state. As a result of either
explicit management action or per configuration information
retained by the managed system, ifAdminStatus is then
changed to either the up(1) or testing(3) states (or remains
in the down(2) state).";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.1.7";
}
leaf ifInOctets {
type yang:counter32;
description
"The total number of octets received on the interface,
including framing characters.
Discontinuities in the value of this counter can occur at
re-initialization of the management system, and at other
times as indicated by the value of
ifCounterDiscontinuityTime.";
smiv2:max-access "read-only";
smiv2:oid "1.3.6.1.4.1.8072.200.1.8";
}
leaf ifHCInOctets {
type yang:counter64;
description
"The total number of octets received on the interface,
including framing characters. This object is a 64-bit
version of ifInOctets.
Discontinuities in the value of this counter can occur at
re-initialization of the management system, and at other
times as indicated by the value of
ifCounterDiscontinuityTime.";
smiv2:max-access "read-only";
smiv2:oid "1.3.6.1.4.1.8072.200.1.9";
}
leaf ifPromiscuousMode {
type boolean;
description
"This object has a value of false(2) if this interface only
accepts packets/frames that are addressed to this station.
This object has a value of true(1) when the station accepts
all packets/frames transmitted on the media. The value
true(1) is only legal on certain types of media. If legal,
setting this object to a value of true(1) may require the
interface to be reset before becoming effective.
The value of ifPromiscuousMode does not affect the reception
of broadcast and multicast packets/frames by the interface.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.1.10";
}
leaf ifCounterDiscontinuityTime {
type yang:timestamp;
description
"The value of sysUpTime on the most recent occasion at which
any one or more of this interface's counters suffered a
discontinuity. The relevant counters are the specific
instances associated with this interface of any Counter32 or
Counter64 object contained in the ifTable or ifXTable. If
no such discontinuities have occurred since the last re-
initialization of the local management subsystem, then this
object contains a zero value.";
smiv2:max-access "read-only";
smiv2:oid "1.3.6.1.4.1.8072.200.1.11";
}
leaf ifStackStatus {
type snmpv2-tc:RowStatus;
description
"The status of the relationship between two sub-layers.
Changing the value of this object from 'active' to
'notInService' or 'destroy' will likely have consequences up
and down the interface stack. Thus, write access to this
object is likely to be inappropriate for some types of
interfaces, and many implementations will choose not to
support write-access for any type of interface.";
smiv2:max-access "read-only";
smiv2:oid "1.3.6.1.4.1.8072.200.1.12";
}
leaf ifIpAddr {
type inet:ipv4-address;
description
"IP address example.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.1.13";
}
leaf bitTest {
type bits {
bit bit00 {
position "0";
}
bit bit01 {
position "1";
}
bit bit02 {
position "2";
}
bit bit03 {
position "3";
}
bit bit04 {
position "4";
}
bit bit05 {
position "5";
}
bit bit06 {
position "6";
}
bit bit07 {
position "7";
}
bit bit08 {
position "8";
}
bit bit09 {
position "9";
}
bit bit10 {
position "10";
}
bit bit11 {
position "11";
}
bit bit12 {
position "12";
}
bit bit13 {
position "13";
}
bit bit14 {
position "14";
}
bit bit15 {
position "15";
}
bit bit16 {
position "16";
}
bit bit17 {
position "17";
}
bit bit18 {
position "18";
}
bit bit19 {
position "19";
}
bit bit20 {
position "20";
}
bit bit21 {
position "21";
}
bit bit22 {
position "22";
}
bit bit23 {
position "23";
}
bit bit24 {
position "24";
}
bit bit25 {
position "25";
}
bit bit26 {
position "26";
}
bit bit27 {
position "27";
}
bit bit28 {
position "28";
}
bit bit29 {
position "29";
}
bit bit30 {
position "30";
}
bit bit31 {
position "31";
}
bit bit32 {
position "32";
}
bit bit33 {
position "33";
}
bit bit34 {
position "34";
}
bit bit35 {
position "35";
}
bit bit36 {
position "36";
}
}
description
"Simple bits value used for testing.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.1.14";
}
}
container clixonIETFWGTable {
description
"This table merely contains a set of data which is otherwise
useless for true network management. It is a table which
describes properies about a IETF Working Group, such as the
names of the two working group chairs.
This example table is implemented in the
agent/mibgroup/examples/data_set.c file.";
smiv2:oid "1.3.6.1.4.1.8072.200.2.1";
list clixonIETFWGEntry {
key "nsIETFWGName";
description
"A row describing a given working group";
smiv2:oid "1.3.6.1.4.1.8072.200.2.1.1";
leaf nsIETFWGName {
type int32 {
range "1..2147483647";
}
description
"The name of the IETF Working Group this table describes.";
smiv2:max-access "not-accessible";
smiv2:oid "1.3.6.1.4.1.8072.200.2.1.1.1";
}
leaf nsIETFWGChair1 {
type binary;
description
"One of the names of the chairs for the IETF working group.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.2.1.1.2";
}
leaf nsIETFWGChair2 {
type binary;
description
"The other name, if one exists, of the chairs for the IETF
working group.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.2.1.1.3";
}
}
}
container clixonHostsTable {
description
"An example table that implements a wrapper around the
/etc/hosts file on a machine using the iterator helper API.";
smiv2:oid "1.3.6.1.4.1.8072.200.2.2";
list clixonHostsEntry {
key "clixonHostName";
description
"A host name mapped to an ip address";
smiv2:oid "1.3.6.1.4.1.8072.200.2.2.1";
leaf clixonHostName {
type binary {
length "0..64";
}
description
"A host name that exists in the /etc/hosts (unix) file.";
smiv2:max-access "not-accessible";
smiv2:oid "1.3.6.1.4.1.8072.200.2.2.1.1";
}
leaf clixonHostAddressType {
type inet-address:InetAddressType;
description
"The address type of then given host.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.2.2.1.2";
}
leaf clixonHostAddress {
type inet-address:InetAddress;
description
"The address of then given host.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.2.2.1.3";
}
leaf clixonHostStorage {
type snmpv2-tc:StorageType;
description
"The storage type for this conceptual row.";
smiv2:defval "nonVolatile";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.2.2.1.4";
}
leaf clixonHostRowStatus {
type snmpv2-tc:RowStatus;
description
"The status of this conceptual row.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.2.2.1.5";
}
}
}
container clixonInetTable {
description
"This table merely contains a set of data which is otherwise
useless for true network management. It is a table which
describes properies about a IETF Working Group, such as the
names of the two working group chairs.
This example table is implemented in the
agent/mibgroup/examples/data_set.c file.";
smiv2:oid "1.3.6.1.4.1.8072.200.2.3";
list clixonInetEntry {
key "clixonAddress";
description
"A row describing a given working group";
smiv2:oid "1.3.6.1.4.1.8072.200.2.3.1";
leaf clixonAddress {
type inet-address:InetAddress;
description
"The name of the IETF Working Group this table describes.";
smiv2:max-access "not-accessible";
smiv2:oid "1.3.6.1.4.1.8072.200.2.3.1.2";
}
leaf clixonString {
type binary;
description
"One of the names of the chairs for the IETF working group.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.2.3.1.3";
}
}
}
container clixonTable {
description
"This table merely contains a set of data which is otherwise
useless for true network management. It is a table which
describes properies about a IETF Working Group, such as the
names of the two working group chairs.
This example table is implemented in the
agent/mibgroup/examples/data_set.c file.";
smiv2:oid "1.3.6.1.4.1.8072.200.4.1";
list clixonEntry {
key "nsName";
description
"A row describing a given working group";
smiv2:oid "1.3.6.1.4.1.8072.200.4.1.1";
leaf nsName {
type int32 {
range "1..2147483647";
}
description
"The name of the IETF Working Group this table describes.";
smiv2:max-access "not-accessible";
smiv2:oid "1.3.6.1.4.1.8072.200.4.1.1.1";
}
leaf nsChair1 {
type binary;
description
"One of the names of the chairs for the IETF working group.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.4.1.1.2";
}
leaf nsChair2 {
type binary;
description
"The other name, if one exists, of the chairs for the IETF
working group.";
smiv2:max-access "read-write";
smiv2:oid "1.3.6.1.4.1.8072.200.4.1.1.3";
}
}
}
}
smiv2:alias "clixonExamples" {
smiv2:oid "1.3.6.1.4.1.8072.200";
}
smiv2:alias "clixonExampleScalars" {
smiv2:oid "1.3.6.1.4.1.8072.200.1";
}
smiv2:alias "clixonExampleTables" {
smiv2:oid "1.3.6.1.4.1.8072.200.2";
}
smiv2:alias "clixonExampleNotifications" {
smiv2:oid "1.3.6.1.4.1.8072.200.3";
}
smiv2:alias "clixonExampleNotificationPrefix" {
smiv2:oid "1.3.6.1.4.1.8072.200.3.0";
}
smiv2:alias "clixonExampleNotificationObjects" {
smiv2:oid "1.3.6.1.4.1.8072.200.3.2";
}
smiv2:alias "clixonTables" {
smiv2:oid "1.3.6.1.4.1.8072.200.4";
}
smiv2:alias "clixonInetTables" {
smiv2:oid "1.3.6.1.4.1.8072.200.5";
}
}