summaryrefslogtreecommitdiff
path: root/MIBS/dlink/DLINKSW-ERROR-DISABLE-MIB
blob: 1aad405f5446a85f76c4757862dc0cd671755801 (plain)
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
--  *****************************************************************
--  DLINKSW-ERROR-DISABLE-MIB.mib : Error Disable MIB
-- 
--  Copyright (c) 2013 D-Link Corporation, all rights reserved.
--   
--  *****************************************************************

DLINKSW-ERROR-DISABLE-MIB DEFINITIONS ::= BEGIN


    IMPORTS
        MODULE-IDENTITY,
        OBJECT-TYPE,
        NOTIFICATION-TYPE,
        Integer32,
        Unsigned32
                FROM SNMPv2-SMI     
        TEXTUAL-CONVENTION,
        TruthValue
                FROM SNMPv2-TC  
        MODULE-COMPLIANCE, OBJECT-GROUP, NOTIFICATION-GROUP
		        FROM SNMPv2-CONF       
        InterfaceIndex
                FROM IF-MIB
        VlanId,
        VlanIdOrNone
                FROM Q-BRIDGE-MIB                 
        dlinkIndustrialCommon			
				FROM DLINK-ID-REC-MIB;


    dlinkSwErrDisableMIB MODULE-IDENTITY
        LAST-UPDATED "201307080000Z"
        ORGANIZATION "D-Link Corp."
        CONTACT-INFO
            "         D-Link Corporation
             Postal: No. 289, Sinhu 3rd Rd., Neihu District,
                     Taipei City 114, Taiwan, R.O.C
             Tel:    +886-2-66000123
             E-mail: tsd@dlink.com.tw
            "
        DESCRIPTION
            "This MIB module defines objects for error disabled."
        REVISION "201305020000Z"
        DESCRIPTION
            "This is the first version of the MIB file."           

        REVISION "201307080000Z" 
        DESCRIPTION
            "Modified the object dErrDisIfStatusDisReason to
            dErrDisIfStatusDisReasonIndex, make this object to be the third
            index of dErrDisIfStatusEntry, to display more than one reason on
            a port or vlan interface if more than one reason is recocovering
            on the port or vlan interface."

        REVISION "201404110000Z" 
        DESCRIPTION
            "Add scheduledShutdown and scheduledHibernation into DErrDisReasonID.
	    Modify description of dErrDisIfStatusTimeLeft, using 0xFFFFFFFF to
	    indicates no automatic recovery."
    ::= { dlinkIndustrialCommon 45 }
    
--
-- Textual conventions
--    

    DErrDisReasonID ::= TEXTUAL-CONVENTION
        STATUS          current
        DESCRIPTION
            "An integer-value assigned to various conditions
            that can error disable a system entity.
            loopbackDetect:  Loopback Detection
            l2ptGuard: L2 Protocol Tunneling. 
            psecureViolation: Port Security violation.
            stormControl: (broadcast/multicast/unicast)storm control. 
            bpduProtect: BPDU protected. 
            arpRateLimit: ARP rate limit.
            dhcpRateLimit: DHCP rate limit.
            ddm: Digital Diagnostics Monitoring
            scheduledShutdown: Scheduled Port-shutdown by Power Saving
            scheduledHibernation:Scheduled Hibernation by Power Saving
            "
        SYNTAX  INTEGER  
            {   loopbackDetect(1), 
                l2ptGuard(2), 
                psecureViolation(3), 
                stormControl(4), 
                bpduProtect(5), 
                arpRateLimit(6),
                dhcpRateLimit(7),
                ddm(8),
                scheduledShutdown(9),
                scheduledHibernation(10)
            }
-- -----------------------------------------------------------------------------
    dErrDisableMIBNotifications     OBJECT IDENTIFIER ::= { dlinkSwErrDisableMIB 0 }
    dErrDisableMIBObjects           OBJECT IDENTIFIER ::= { dlinkSwErrDisableMIB 1 }
    dErrDisableMIBConformance       OBJECT IDENTIFIER ::= { dlinkSwErrDisableMIB 2 }

-- -----------------------------------------------------------------------------
    dErrDisRecoveryTable OBJECT-TYPE
        SYNTAX          SEQUENCE OF DErrDisRecoveryEntry
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION            
            "This table contains the recovery mechanism for the features with 
            error-disable functionality.
            Transceiver monitoring module (the DErrDisReasonID is 'ddm') can also
            put a SFP port which is in abnormal status in error disabled state. 
            This error disable cannot be auto recovered but can only be manually
            recovered. As a result, there is no entry for error cause is 'ddm'
            in this table. 
            "
        ::= { dErrDisableMIBObjects 1 }

    dErrDisRecoveryEntry OBJECT-TYPE
        SYNTAX          DErrDisRecoveryEntry
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION            
            "An entry is created for each feature which has error-disable 
             functionality."
        INDEX    { dErrDisRecoveryIndex }
        ::= { dErrDisRecoveryTable 1 }

    DErrDisRecoveryEntry ::= SEQUENCE {
        dErrDisRecoveryIndex        DErrDisReasonID,
        dErrDisRecoveryEnable       TruthValue,
        dErrDisRecoveryInterval     Integer32
    }

    dErrDisRecoveryIndex OBJECT-TYPE
        SYNTAX          DErrDisReasonID
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION
            "This object indicates the cause of error-disable."
        ::= { dErrDisRecoveryEntry 1 }

    dErrDisRecoveryEnable OBJECT-TYPE
        SYNTAX          TruthValue
        MAX-ACCESS      read-write
        STATUS          current
        DESCRIPTION           
            "This object specifies whether the system can
            automatically recover a system entity that has been
            disabled by the cause."
        DEFVAL      { false }
        ::= { dErrDisRecoveryEntry 2 }

    dErrDisRecoveryInterval OBJECT-TYPE
        SYNTAX          Integer32 (5..86400)
        UNITS           "seconds"
        MAX-ACCESS      read-write
        STATUS          current
        DESCRIPTION
            "Specifies the error-recovery time interval on specific cause 
            to recover the port/interface from the error disabled situation."
        DEFVAL      { 300 }
        ::= { dErrDisRecoveryEntry 3 }

-- -----------------------------------------------------------------------------
    dErrDisIfStatusTableNum  OBJECT-TYPE
        SYNTAX          Unsigned32
        MAX-ACCESS      read-only
        STATUS          current
        DESCRIPTION
            "Indicates the number of entries present in the dErrDisIfStatusTable."
        ::= { dErrDisableMIBObjects 2 }

    dErrDisIfStatusTable OBJECT-TYPE
        SYNTAX          SEQUENCE OF DErrDisIfStatusEntry
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION
             "This table provides next recovery timeout information about an interface 
             disabled by a feature."           
        ::= { dErrDisableMIBObjects 3 }

    dErrDisIfStatusEntry OBJECT-TYPE
        SYNTAX          DErrDisIfStatusEntry
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION
            "An entry indicates next recovery timeout information about an interface 
            or (interface, vlan) disabled by a feature."    
        INDEX    
            {   dErrDisIfStatusIfIndex,
                dErrDisIfStatusVlanIndex,
                dErrDisIfStatusDisReasonIndex }
        ::= { dErrDisIfStatusTable 1 }

    DErrDisIfStatusEntry ::= SEQUENCE {
        dErrDisIfStatusIfIndex      InterfaceIndex,
        dErrDisIfStatusVlanIndex    VlanIdOrNone,
        dErrDisIfStatusDisReasonIndex   DErrDisReasonID,
        dErrDisIfStatusTimeLeft     Unsigned32
    }

    dErrDisIfStatusIfIndex OBJECT-TYPE
        SYNTAX          InterfaceIndex
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION           
            "This object is the interface index of the interface disabled by a feature."
        ::= { dErrDisIfStatusEntry 1 }

    dErrDisIfStatusVlanIndex OBJECT-TYPE
        SYNTAX          VlanIdOrNone
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION                      
            "This object indicates the VLAN in the given interface
            that has been error-disabled. If the physical interface is
            error-disabled then the value of this object is 0." 
        ::= { dErrDisIfStatusEntry 2 }
        
    dErrDisIfStatusDisReasonIndex OBJECT-TYPE
        SYNTAX          DErrDisReasonID
        MAX-ACCESS      not-accessible
        STATUS          current
        DESCRIPTION
           "This object indicates the reason which cause the interface disabled."
        ::= { dErrDisIfStatusEntry 3 }

    dErrDisIfStatusTimeLeft OBJECT-TYPE
        SYNTAX          Unsigned32
        UNITS           "seconds"
        MAX-ACCESS      read-only
        STATUS          current
        DESCRIPTION
            "This object indicates the time left that the interface will be 
            automatically recovered. Value 0xFFFFFFFF indicates the interface
	    won't be automatically recovered."
        ::= { dErrDisIfStatusEntry 4 }

-- -----------------------------------------------------------------------------             
     dErrDisNotificationEnable OBJECT-TYPE
        SYNTAX          BITS {
            errDisableAsserted(0),
            errDisableCleared(1)            
        }
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION
         "This object indicates whether a specified notification is enabled or not.
         If a bit corresponding to a notification is set to 1, then 
         the specified notification can be generated.

         errDisableAsserted(0) - Controls the notifications for a port/vlan
                            entering into error disabled state.

         errDisableCleared(1) - Controls the notifications for a port/vlan 
                            exiting from error disabled state. 
            
         "
    ::= { dErrDisableMIBObjects 4 }   
    
    dErrDisNotifRate OBJECT-TYPE
        SYNTAX        Unsigned32 (0..1000)
        UNITS         "notifications per minute"
        MAX-ACCESS    read-write
        STATUS        current
        DESCRIPTION   
            "Expressed in the number of notifications can be generated 
            per minute. 
            This object configures the rate-limit of  SNMP Notification for
            errDisable feature. 
            A value of 0 indicates that an SNMP Notification is generated
            for every error disabled event."        
        DEFVAL      { 0 }              
        ::= { dErrDisableMIBObjects 5 }
        
-- -----------------------------------------------------------------------------         
    dErrDisNotifyInfo        OBJECT IDENTIFIER ::= { dErrDisableMIBObjects 6 }
   
    dErrDisNotifyInfoPortIfIndex OBJECT-TYPE
        SYNTAX          InterfaceIndex 
        MAX-ACCESS      accessible-for-notify
        STATUS          current
        DESCRIPTION
            "This object indicates the port number of error disabled port."
        ::= { dErrDisNotifyInfo 1 }    
        
    dErrDisNotifyInfoLoopDetectedVID OBJECT-TYPE
        SYNTAX          VlanId 
        MAX-ACCESS      accessible-for-notify
        STATUS          current
        DESCRIPTION
            "This object indicates the VLAN ID that has detected a loopback."
        ::= { dErrDisNotifyInfo 2 }

    dErrDisNotifyInfoReasonID OBJECT-TYPE
        SYNTAX          DErrDisReasonID
        MAX-ACCESS      accessible-for-notify
        STATUS          current
        DESCRIPTION
            "This object indicates the condition which cause a port/vlan enter
            into error disabled state."
        ::= { dErrDisNotifyInfo 3 }               
        
--  ***************************************************************************	
--  Notifications
--  ***************************************************************************                                
    dErrDisNotifyPortDisabledAssert  NOTIFICATION-TYPE
        OBJECTS   {
            dErrDisNotifyInfoPortIfIndex,
            dErrDisNotifyInfoReasonID
        }
        STATUS  current
        DESCRIPTION
               "The trap is sent when a port enters into error disabled state."
        ::= { dErrDisableMIBNotifications 1 }

    dErrDisNotifyPortDisabledClear  NOTIFICATION-TYPE
        OBJECTS {
            dErrDisNotifyInfoPortIfIndex,
            dErrDisNotifyInfoReasonID
        }
        STATUS  current
        DESCRIPTION
              "The trap is sent when a port loop restarts after the interval time."
        ::= { dErrDisableMIBNotifications 2 }

    dErrDisNotifyVlanDisabledAssert  NOTIFICATION-TYPE
        OBJECTS   {
            dErrDisNotifyInfoPortIfIndex,
            dErrDisNotifyInfoReasonID,
            dErrDisNotifyInfoLoopDetectedVID
        }
        STATUS  current
        DESCRIPTION
               "The trap is sent when a Port with a VID loop occurs."
        ::= { dErrDisableMIBNotifications 3 }

    dErrDisNotifyVlanDisabledClear NOTIFICATION-TYPE
        OBJECTS  {
            dErrDisNotifyInfoPortIfIndex,
            dErrDisNotifyInfoReasonID,
            dErrDisNotifyInfoLoopDetectedVID
        }
        STATUS  current
        DESCRIPTION
               "The trap is sent when a Port with a VID restarts after the interval time."
        ::= { dErrDisableMIBNotifications 4 }
                
--  ***************************************************************************	
--  Conformance
--  ***************************************************************************
    dErrDisMIBCompliances  OBJECT IDENTIFIER
        ::= { dErrDisableMIBConformance 1 }

    dErrDisMIBGroups  OBJECT IDENTIFIER
        ::= { dErrDisableMIBConformance 2 } 
    
    dErrDisMIBCompliance MODULE-COMPLIANCE
        STATUS          current
        DESCRIPTION
            "The compliance statement for entities which implement the 
			DLINKSW-ERROR-DISABLE-MIB."
        MODULE          -- this module
        MANDATORY-GROUPS 
            {   dErrDisRecoveryCfgGroup,
                dErrDisIfStatusGroup,
                dErrDisNotifyCfgGroup,
                dErrDisNotificationGroup
            }
        ::= { dErrDisMIBCompliances 1 }

    dErrDisRecoveryCfgGroup OBJECT-GROUP
		OBJECTS 
		    {   dErrDisRecoveryEnable, 
		        dErrDisRecoveryInterval 
		    }
		STATUS current
		DESCRIPTION 
			"A collection of objects to configure the error recovery of the 
			error-disable feature."
		::= { dErrDisMIBGroups 1 }
		
    dErrDisIfStatusGroup OBJECT-GROUP
		OBJECTS 
		    {   dErrDisIfStatusTableNum, 
		        dErrDisIfStatusTimeLeft 
		    }
		STATUS current
		DESCRIPTION 
			"A collection of objects which indicate error-disable interface 
			status."
		::= { dErrDisMIBGroups 2 }
    
    dErrDisNotifyCfgGroup OBJECT-GROUP
		OBJECTS 
		    {   dErrDisNotificationEnable, 
		        dErrDisNotifRate,
		        dErrDisNotifyInfoPortIfIndex, 
		        dErrDisNotifyInfoReasonID,
		        dErrDisNotifyInfoLoopDetectedVID
		    }
		STATUS current
		DESCRIPTION 
			"A collection of objects to configure the error recovery of the 
			error-disable feature."
		::= { dErrDisMIBGroups 3 }
		
    dErrDisNotificationGroup NOTIFICATION-GROUP
        NOTIFICATIONS { 
            dErrDisNotifyPortDisabledAssert,
            dErrDisNotifyPortDisabledClear,
            dErrDisNotifyVlanDisabledAssert,
            dErrDisNotifyVlanDisabledClear
        }
        STATUS current
        DESCRIPTION
            "The collection of notifications used for monitoring ErrDisable status"
        ::= { dErrDisMIBGroups 4 }   

END