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
|
-- =====================================================================
-- Copyright (c) 2004-2021 New H3C Tech. Co., Ltd. All rights reserved.
--
-- Description: Device link detection protocol (DLDP) MIB.
-- Device Link Detection Protocol is private Layer2 protocol,
-- which is used for automatically detecting unidirectional link to
-- prevent a loop communication.
-- Reference:
-- Version: V1.3
-- History:
-- V1.0 2004-12-13 created by tangshun
-- V1.1 2006-11-24 modify SYNTAX and DEFVAL of hh3cDLDPInterval by yubo
-- V1.2 2011-11-23 modify SYNTAX and DESCRIPTION of
-- hh3cDLDPAuthenticationPassword by zhangwei
-- V1.3 2021-01-06 modify SYNTAX and DESCRIPTION of
-- hh3cDLDPUnidirectionalShutdown by wangmeng
-- =====================================================================
HH3C-DLDP-MIB DEFINITIONS ::= BEGIN
IMPORTS
TruthValue, MacAddress, TEXTUAL-CONVENTION
FROM SNMPv2-TC
MODULE-IDENTITY, OBJECT-TYPE, Integer32, NOTIFICATION-TYPE
FROM SNMPv2-SMI
ifIndex
FROM IF-MIB
hh3cCommon
FROM HH3C-OID-MIB;
-- ==================================================================
--
-- module identity part
--
-- ==================================================================
hh3cDldp MODULE-IDENTITY
LAST-UPDATED
"202101060000Z"
ORGANIZATION
"New H3C Tech. Co., Ltd."
CONTACT-INFO
"Platform Team New H3C Tech. Co., Ltd.
Hai-Dian District Beijing P.R. China
http://www.h3c.com
Zip:100085
"
DESCRIPTION "DLDP (Device Link Detection Protocol) MIB"
REVISION
"202101060000Z"
DESCRIPTION
"Modify hh3cDLDPUnidirectionalShutdown."
REVISION
"200412130000Z"
DESCRIPTION
"The initial version of this MIB module."
::= { hh3cCommon 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 'hh3cDLDPPortDLDPState' object (below)
because the port which is not enabled DLDP does not appear in
'hh3cDLDPPortDLDPTable', it appears in 'hh3cDLDPPortStateTable'.
- '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 'hh3cDLDPPortDLDPState' 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 'hh3cDLDPNeighborState' objects (below)
these status will output. "
SYNTAX INTEGER
{
unidirection(1),
bidirection(2),
unknown(3)
}
-- ==================================================================
--
-- =====================object definition begin======================
--
-- ==================================================================
hh3cDLDPMibObject OBJECT IDENTIFIER ::= { hh3cDldp 1 }
hh3cDLDPConfigGroup OBJECT IDENTIFIER ::= { hh3cDLDPMibObject 1 }
hh3cDLDPWorkMode 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 }
::= { hh3cDLDPConfigGroup 1 }
hh3cDLDPSystemEnable 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
hh3cDLDPPortDLDPTable.
If setting it to false, all the fiber ports will disable DLDP
and the agent automatically destroy the corresponding rows in
hh3cDLDPPortDLDPTable."
::= { hh3cDLDPConfigGroup 2 }
hh3cDLDPSystemReset OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"DLDP reset systematically.
This node only supports set operation.
If the value of hh3cDLDPSystemReset 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 hh3cDLDPPortDLDPState is not disable, it does not change.
"
::= { hh3cDLDPConfigGroup 3 }
hh3cDLDPInterval OBJECT-TYPE
SYNTAX Integer32(1..100)
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The interval of sending an advertisement PDU.
unit : second
"
DEFVAL { 5 }
::= { hh3cDLDPConfigGroup 4 }
hh3cDLDPAuthenticationMode 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 }
::= { hh3cDLDPConfigGroup 5 }
hh3cDLDPAuthenticationPassword 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 hh3cDLDPAuthenticationMode is null,
the user cannot set this node.
If the value of hh3cDLDPAuthenticationMode 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 hh3cDLDPAuthenticationMode is MD5 or
simple or a zero-length string if hh3cDLDPAuthenticationMode is null.
"
::= { hh3cDLDPConfigGroup 6 }
hh3cDLDPUnidirectionalShutdown OBJECT-TYPE
SYNTAX INTEGER
{
auto(1),
manual(2),
hybird(3)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The mode of unidirectional shutdown and bidirectional startup.
It indicates the port shutdown mode when a link becomes unidirectional
and port startup mode when the link becomes bidirectional.
In auto mode, DLDP shuts down a port when detecting a unidirectional
link and brings up the port when the link becomes bidirectional.
In manual mode, a port requires manual shutdown when DLDP detects a
unidirectional link and the port requires manual startup when the
link becomes bidirectional.In hybrid mode, DLDP shuts down a port when
detecting a unidirectional link and the port requires manual startup
when the link becomes bidirectional.
"
DEFVAL { auto }
::= { hh3cDLDPConfigGroup 7 }
--hh3cDLDPPortStateTable--
hh3cDLDPPortStateTable OBJECT-TYPE
SYNTAX SEQUENCE OF Hh3cDLDPPortStateEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The table of the Ethernet ports of a LAN switch."
::= { hh3cDLDPMibObject 2 }
hh3cDLDPPortStateEntry OBJECT-TYPE
SYNTAX Hh3cDLDPPortStateEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Information about a hh3cDLDPPortDLDPTable entity."
INDEX
{
ifIndex
}
::= { hh3cDLDPPortStateTable 1 }
Hh3cDLDPPortStateEntry ::= SEQUENCE
{
hh3cDLDPPortState EnabledStatus
}
hh3cDLDPPortState 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 hh3cDLDPPortDLDPTable for this port.
If setting it to disabled, the port will disable DLDP and the
corresponding row will be destroyed in hh3cDLDPPortDLDPTable."
DEFVAL { disabled }
::= { hh3cDLDPPortStateEntry 1 }
--hh3cDLDPPortDLDPTable--
hh3cDLDPPortDLDPTable OBJECT-TYPE
SYNTAX SEQUENCE OF Hh3cDLDPPortDLDPEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Table of a LAN switch's ports, which enable DLDP."
::= { hh3cDLDPMibObject 3 }
hh3cDLDPPortDLDPEntry OBJECT-TYPE
SYNTAX Hh3cDLDPPortDLDPEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The information of a port, which enable DLDP."
INDEX
{
ifIndex
}
::= { hh3cDLDPPortDLDPTable 1 }
Hh3cDLDPPortDLDPEntry ::= SEQUENCE
{
hh3cDLDPPortDLDPState DLDPStatus,
hh3cDLDPLinkState INTEGER,
hh3cDLDPPortDLDPReset TruthValue
}
hh3cDLDPPortDLDPState OBJECT-TYPE
SYNTAX DLDPStatus
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"Operating state of DLDP on the port.
It is relational with hh3cDLDPPortState and hh3cDLDPLinkState."
::= { hh3cDLDPPortDLDPEntry 1 }
hh3cDLDPLinkState OBJECT-TYPE
SYNTAX INTEGER
{
down(1),
up(2),
unknown(3)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The link state of the port."
::= { hh3cDLDPPortDLDPEntry 2 }
hh3cDLDPPortDLDPReset OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"DLDP reset systematically.
This node only supports set operation.
If the value of hh3cDLDPPortDLDPReset 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.
"
::= { hh3cDLDPPortDLDPEntry 3 }
--hh3cDLDPNeighborTable--
hh3cDLDPNeighborTable OBJECT-TYPE
SYNTAX SEQUENCE OF Hh3cDLDPNeighborEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Table of a port's neighbors."
::= { hh3cDLDPMibObject 4 }
hh3cDLDPNeighborEntry OBJECT-TYPE
SYNTAX Hh3cDLDPNeighborEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The information of a neighbor."
INDEX
{
ifIndex,
hh3cDLDPNeighborBridgeMac,
hh3cDLDPNeighborPortIndex
}
::= { hh3cDLDPNeighborTable 1 }
Hh3cDLDPNeighborEntry ::= SEQUENCE
{
hh3cDLDPNeighborBridgeMac MacAddress,
hh3cDLDPNeighborPortIndex Integer32,
hh3cDLDPNeighborState DLDPNeighborStatus,
hh3cDLDPNeighborAgingTime Integer32
}
hh3cDLDPNeighborBridgeMac OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The bridge MAC address of a neighbor."
::= { hh3cDLDPNeighborEntry 1 }
hh3cDLDPNeighborPortIndex OBJECT-TYPE
SYNTAX Integer32(0..2147483647)
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"The port index of a neighbor."
::= { hh3cDLDPNeighborEntry 2 }
hh3cDLDPNeighborState OBJECT-TYPE
SYNTAX DLDPNeighborStatus
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The state of a neighbor."
::= { hh3cDLDPNeighborEntry 3 }
hh3cDLDPNeighborAgingTime OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The aging time of a neighbor. unit: second."
::= { hh3cDLDPNeighborEntry 4 }
--trap--
hh3cDLDPTrapObject OBJECT IDENTIFIER ::= { hh3cDldp 2 }
hh3cDLDPNotification OBJECT IDENTIFIER ::= { hh3cDLDPTrapObject 1 }
hh3cDLDPUnidirectionalPort NOTIFICATION-TYPE
OBJECTS
{
ifIndex
}
STATUS current
DESCRIPTION
"It will send a SNMP trap when the state of a port
has changed to unidirectional-link."
::= { hh3cDLDPNotification 1 }
END
|