-
Notifications
You must be signed in to change notification settings - Fork 3
/
A3COM-HUAWEI-DLDP-MIB
executable file
·422 lines (382 loc) · 13.2 KB
/
A3COM-HUAWEI-DLDP-MIB
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
-- =====================================================================
-- Copyright (c) 2004-2011 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
--
-- Description: HUAWEI 3COM device link detection protocol (DLDP) MIB.
-- Device Link Detection Protocol is Huawei 3Com private Layer2 protocol,
-- which is used for automatically detecting unidirectional link to
-- prevent a loop communication.
-- Reference:
-- Version: V1.2
-- History:
-- V1.0 2004-12-13 created by tangshun
-- V1.1 2006-11-24 modify SYNTAX and DEFVAL of h3cDLDPInterval by yubo
-- V1.2 2011-11-23 modify SYNTAX and DESCRIPTION of
h3cDLDPAuthenticationPassword by zhangwei
-- =====================================================================
A3COM-HUAWEI-DLDP-MIB DEFINITIONS ::= BEGIN
IMPORTS
TruthValue, MacAddress, TEXTUAL-CONVENTION
FROM SNMPv2-TC
MODULE-IDENTITY, OBJECT-TYPE, Counter32, Integer32, NOTIFICATION-TYPE
FROM SNMPv2-SMI
ifIndex
FROM RFC1213-MIB
h3cCommon
FROM A3COM-HUAWEI-OID-MIB;
-- ==================================================================
--
-- module identity part
--
-- ==================================================================
h3cDldp MODULE-IDENTITY
LAST-UPDATED
"200412130000Z"
ORGANIZATION
"Huawei 3Com Technologies Co., Ltd."
CONTACT-INFO
"Platform Team Huawei 3Com Technologies Co., Ltd.
Hai-Dian District Beijing P.R. China
Http://www.huawei-3com.com
Zip:100085"
DESCRIPTION "HUAWEI-3COM DLDP (Device Link Detection Protocol) MIB"
REVISION
"200412130000Z"
DESCRIPTION
"The initial version of this MIB module."
::= { h3cCommon 43 }
-- ==================================================================
-- Textual Conventions
-- ==================================================================
EnabledStatus ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"The current state of the Ethernet port.
This object has two defined values:
- 'enabled', which indicates that the Ethernet port enables DLDP.
- 'disabled', which indicates that the Ethernet port does not enable DLDP.
"
SYNTAX INTEGER
{
enabled(1),
disabled(2)
}
DLDPStatus ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"Operating state of DLDP on the port.
This object has six defined values:
- 'initial', which indicates that the Ethernet port does not enable DLDP.
This status does not appear in the 'h3cDLDPPortDLDPState' object (below)
because the port which is not enabled DLDP does not appear in
'h3cDLDPPortDLDPTable', it appears in 'h3cDLDPPortStateTable'.
- 'inactive', which indicates that the Ethernet port enables DLDP and
the link status of the port is down.
- 'active', which indicates that the Ethernet port enables DLDP and
the link status of the port is up.
- 'advertisement', which indicates that all neighbors of the port are
bidirectional communication.
- 'probe', which indicates that the port sends PDU to detect
the communication mode between it and it's neighbors.
- 'disable', which indicates that an unidirectional communication
between the port and it's neighbor.
When the user get or walk the 'h3cDLDPPortDLDPState' objects (below)
these status will output."
SYNTAX INTEGER
{
initial(1),
inactive(2),
active(3),
advertisement(4),
probe(5),
disable(6)
}
DLDPNeighborStatus ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"The current state of the neighbor of a port.
This object has three defined values:
- 'unidirection', which indicates an unidirectional communication
between the port and it's neighbor.
- 'bidirection', which indicates a bidirectional communication
between the port and it's neighbor.
- 'unknown', which indicates that the port does not know
the communication mode between it and it's neighbor.
When the user get or walk the 'h3cDLDPNeighborState' objects (below)
these status will output. "
SYNTAX INTEGER
{
unidirection(1),
bidirection(2),
unknown(3)
}
-- ==================================================================
--
-- =====================object definition begin======================
--
-- ==================================================================
h3cDLDPMibObject OBJECT IDENTIFIER ::= { h3cDldp 1 }
h3cDLDPConfigGroup OBJECT IDENTIFIER ::= { h3cDLDPMibObject 1 }
h3cDLDPWorkMode OBJECT-TYPE
SYNTAX INTEGER
{
normal(1),
enhance(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The work mode of DLDP.
Normal mode means DLDP does not detect neighbor on its own initiative
when all neighbors aged.
Enhance mode means DLDP detects neighbor on its own initiative
when all neighbors aged.
"
DEFVAL { normal }
::= { h3cDLDPConfigGroup 1 }
h3cDLDPSystemEnable OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"DLDP enable or disable systematically.
This node only supports set operation.
If setting it to true, all the fiber ports will enable DLDP and
the agent automatically creates new rows for each port in
h3cDLDPPortDLDPTable.
If setting it to false, all the fiber ports will disable DLDP
and the agent automatically destroy the corresponding rows in
h3cDLDPPortDLDPTable."
::= { h3cDLDPConfigGroup 2 }
h3cDLDPSystemReset OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"DLDP reset systematically.
This node only supports set operation.
If the value of h3cDLDPSystemReset is true,
and the current state is disable,
it will change to inactive while the port is down
or active while the port is up.
If h3cDLDPPortDLDPState is not disable, it does not change.
"
::= { h3cDLDPConfigGroup 3 }
h3cDLDPInterval OBJECT-TYPE
SYNTAX INTEGER(1..100)
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The interval of sending an advertisement PDU.
unit : second
"
DEFVAL { 5 }
::= { h3cDLDPConfigGroup 4 }
h3cDLDPAuthenticationMode OBJECT-TYPE
SYNTAX INTEGER
{
none(1), --DLDP exchanges are not authenticated.
simple(2), --DLDP exchanges are authenticated by a clear text password.
md5(3) --DLDP exchanges are authenticated by a MD5 digest.
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Type of authentication mode."
DEFVAL { none }
::= { h3cDLDPConfigGroup 5 }
h3cDLDPAuthenticationPassword OBJECT-TYPE
SYNTAX OCTET STRING(SIZE(1..53))
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"This is the password for authentication.
If the value of h3cDLDPAuthenticationMode is null,
the user cannot set this node.
If the value of h3cDLDPAuthenticationMode is simple or MD5,
the user must set this node with a string.
When the user gets or walks this node,
it displays a cipher password if h3cDLDPAuthenticationMode is MD5 or
simple or a zero-length string if h3cDLDPAuthenticationMode is null.
"
::= { h3cDLDPConfigGroup 6 }
h3cDLDPUnidirectionalShutdown OBJECT-TYPE
SYNTAX INTEGER
{
auto(1),
manual(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The mode of unidirectional shutdown.
It indicates the shutdown mode when a unidirectional link happened.
Auto mode means the port will be shut down automatically
when DLDP detects unidirectional link.
Manual mode means the port needs to be shut down by
the administrator manually when DLDP detects unidirectional link.
"
DEFVAL { auto }
::= { h3cDLDPConfigGroup 7 }
--h3cDLDPPortStateTable--
h3cDLDPPortStateTable OBJECT-TYPE
SYNTAX SEQUENCE OF H3cDLDPPortStateEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The table of the Ethernet ports of a LAN switch."
::= { h3cDLDPMibObject 2 }
h3cDLDPPortStateEntry OBJECT-TYPE
SYNTAX H3cDLDPPortStateEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Information about a h3cDLDPPortDLDPTable entity."
INDEX
{
ifIndex
}
::= { h3cDLDPPortStateTable 1 }
H3cDLDPPortStateEntry ::= SEQUENCE
{
h3cDLDPPortState EnabledStatus
}
h3cDLDPPortState OBJECT-TYPE
SYNTAX EnabledStatus
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"State of a port.
If setting it to enabled, the port will enable DLDP and a new row
will be added in h3cDLDPPortDLDPTable for this port.
If setting it to disabled, the port will disable DLDP and the
corresponding row will be destroyed in h3cDLDPPortDLDPTable."
DEFVAL { disabled }
::= { h3cDLDPPortStateEntry 1 }
--h3cDLDPPortDLDPTable--
h3cDLDPPortDLDPTable OBJECT-TYPE
SYNTAX SEQUENCE OF H3cDLDPPortDLDPEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Table of a LAN switch's ports, which enable DLDP."
::= { h3cDLDPMibObject 3 }
h3cDLDPPortDLDPEntry OBJECT-TYPE
SYNTAX H3cDLDPPortDLDPEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The information of a port, which enable DLDP."
INDEX
{
ifIndex
}
::= { h3cDLDPPortDLDPTable 1 }
H3cDLDPPortDLDPEntry ::= SEQUENCE
{
h3cDLDPPortDLDPState DLDPStatus,
h3cDLDPLinkState INTEGER,
h3cDLDPPortDLDPReset TruthValue
}
h3cDLDPPortDLDPState OBJECT-TYPE
SYNTAX DLDPStatus
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Operating state of DLDP on the port.
It is relational with h3cDLDPPortState and h3cDLDPLinkState."
::= { h3cDLDPPortDLDPEntry 1 }
h3cDLDPLinkState OBJECT-TYPE
SYNTAX INTEGER
{
down(1),
up(2),
unknown(3)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The link state of the port."
::= { h3cDLDPPortDLDPEntry 2 }
h3cDLDPPortDLDPReset OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"DLDP reset systematically.
This node only supports set operation.
If the value of h3cDLDPPortDLDPReset is true,
and the current state is disable,
it will change to inactive while the port is down
or active while the port is up.
"
::= { h3cDLDPPortDLDPEntry 3 }
--h3cDLDPNeighborTable--
h3cDLDPNeighborTable OBJECT-TYPE
SYNTAX SEQUENCE OF H3cDLDPNeighborEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Table of a port's neighbors."
::= { h3cDLDPMibObject 4 }
h3cDLDPNeighborEntry OBJECT-TYPE
SYNTAX H3cDLDPNeighborEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The information of a neighbor."
INDEX
{
ifIndex,
h3cDLDPNeighborBridgeMac,
h3cDLDPNeighborPortIndex
}
::= { h3cDLDPNeighborTable 1 }
H3cDLDPNeighborEntry ::= SEQUENCE
{
h3cDLDPNeighborBridgeMac MacAddress,
h3cDLDPNeighborPortIndex Integer32,
h3cDLDPNeighborState DLDPNeighborStatus,
h3cDLDPNeighborAgingTime Integer32
}
h3cDLDPNeighborBridgeMac OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The bridge MAC address of a neighbor."
::= { h3cDLDPNeighborEntry 1 }
h3cDLDPNeighborPortIndex OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The port index of a neighbor."
::= { h3cDLDPNeighborEntry 2 }
h3cDLDPNeighborState OBJECT-TYPE
SYNTAX DLDPNeighborStatus
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The state of a neighbor."
::= { h3cDLDPNeighborEntry 3 }
h3cDLDPNeighborAgingTime OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The aging time of a neighbor. unit: second."
::= { h3cDLDPNeighborEntry 4 }
--trap--
h3cDLDPTrapObject OBJECT IDENTIFIER ::= { h3cDldp 2 }
h3cDLDPNotification OBJECT IDENTIFIER ::= { h3cDLDPTrapObject 1 }
h3cDLDPUnidirectionalPort NOTIFICATION-TYPE
OBJECTS
{
ifIndex
}
STATUS current
DESCRIPTION
"It will send a SNMP trap when the state of a port
has changed to unidirectional-link."
::= { h3cDLDPNotification 1 }
END