summaryrefslogtreecommitdiff
path: root/MIBS/huawei/HUAWEI-APS-MIB
blob: b028ac28c456f028cd0c2c0f607506501baa17ec (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
-- =================================================================
-- Copyright (C) 2007 by  HUAWEI TECHNOLOGIES. All rights reserved
-- 
-- Description: This mib file is used for APS protection
--               
-- Reference:
-- Version:       V1.0
-- History:
--                V1.0 2007.12.05 create
--             
--                  
--                 
--                 
--                  

-- =================================================================
HUAWEI-APS-MIB DEFINITIONS ::= BEGIN

    IMPORTS
        hwDatacomm
            FROM HUAWEI-MIB 
        InterfaceIndex            
        FROM IF-MIB                
        OBJECT-GROUP, MODULE-COMPLIANCE, NOTIFICATION-GROUP            
            FROM SNMPv2-CONF            
        IpAddress, Integer32, Unsigned32, Counter64, OBJECT-TYPE, 
        MODULE-IDENTITY, NOTIFICATION-TYPE            
            FROM SNMPv2-SMI           
        sysUpTime
            FROM SNMPv2-MIB                 
        RowStatus, TruthValue, TEXTUAL-CONVENTION            
            FROM SNMPv2-TC;

     hwApsMIB MODULE-IDENTITY 
            LAST-UPDATED "200712071432Z"        
            ORGANIZATION 
                "Huawei Technologies co.,Ltd."
            CONTACT-INFO 
                "VRP Team Huawei Technologies co.,Ltd.
                Huawei Bld.,NO.3 Xinxi Rd., 
                Shang-Di Information Industry Base,
                Hai-Dian District Beijing P.R. China
                http://www.huawei.com
                Zip:100085
                "
            DESCRIPTION 
                "The HUAWEI-APS-MIB contains objects to 
        Manage configuration and Monitor running state 
        for Class Based APS feature."
            ::= { hwDatacomm 161 }
            
-- Textual conventions            

-- Textual conventions   



        hwApsObjects OBJECT IDENTIFIER ::= { hwApsMIB 1 }    
        
        
-- ==============================================================================
        hwApsProtectionTable OBJECT-TYPE
            SYNTAX SEQUENCE OF HwApsProtectionEntry
            MAX-ACCESS not-accessible
            STATUS current
            DESCRIPTION
                "APS protection configuration."
            ::= { hwApsObjects 1 }    

        hwApsProtectionEntry OBJECT-TYPE
            SYNTAX HwApsProtectionEntry
            MAX-ACCESS not-accessible
            STATUS current
            DESCRIPTION
                "APS protection configuration entry."
            INDEX { hwApsIfIndex }
            ::= { hwApsProtectionTable 1 }
        
        HwApsProtectionEntry ::=
            SEQUENCE { 
                hwApsIfIndex 
                    InterfaceIndex,
                hwApsProtectionGroupNum 
                    Unsigned32,
                hwApsIfType
                    INTEGER,
                hwApsRestoreWaitTime  
                    Integer32,
                hwApsProtectSwitch 
                    INTEGER,
                hwApsWorkingIfType 
                    INTEGER,
                hwApsRowStatus
                    RowStatus  
             }
-- ==============================================================================             
        hwApsIfIndex OBJECT-TYPE
            SYNTAX InterfaceIndex
            MAX-ACCESS not-accessible
            STATUS current
            DESCRIPTION
                "The table's index that is a STM-1 or CSTM-1 interface."
            ::= { hwApsProtectionEntry 1 }
        
        hwApsProtectionGroupNum OBJECT-TYPE
            SYNTAX Unsigned32  (1..8)
            MAX-ACCESS read-create
            STATUS current
            DESCRIPTION
                "The table's index that is APS protection group number from 1 to 8."
            ::= { hwApsProtectionEntry 2 }
        hwApsIfType OBJECT-TYPE
            SYNTAX INTEGER  
            {
            work(1),
            protection(2)
            }
            MAX-ACCESS read-create
            STATUS current
            DESCRIPTION
                "The interface type ."
            ::= { hwApsProtectionEntry 3 }
         
        hwApsRestoreWaitTime  OBJECT-TYPE
            SYNTAX Integer32 (5..12)
            MAX-ACCESS read-create
            STATUS current
            DESCRIPTION
                "The latency time of restoration."
            ::= { hwApsProtectionEntry 4 }       
        hwApsProtectSwitch  OBJECT-TYPE
            SYNTAX INTEGER 
            {
            lock(1),
            force(2),
            manual(3),
            auto(4)
            }
            MAX-ACCESS read-create
            STATUS current
            DESCRIPTION
                "The switch of APS protection."
            ::= { hwApsProtectionEntry 5 }
        hwApsWorkingIfType  OBJECT-TYPE
            SYNTAX INTEGER
            {
            active(1),
            inactive(2)
            }
            MAX-ACCESS read-only
            STATUS current
            DESCRIPTION
                "State of the interface."
            ::= { hwApsProtectionEntry 6 }
        hwApsRowStatus  OBJECT-TYPE
            SYNTAX RowStatus
            MAX-ACCESS read-create
            STATUS current
            DESCRIPTION
                "Current operation status of the row."
            ::= { hwApsProtectionEntry 7 }
            
            
-- ==================================================================================
                                    
-- ==================================================================================
-- alarm
        hwApsNotifications OBJECT IDENTIFIER ::= { hwApsMIB 2 }
        
        hwApsProtectSwitchOver NOTIFICATION-TYPE
            OBJECTS { hwApsProtectionGroupNum,hwApsIfType,hwApsWorkingIfType  }
            STATUS current
            DESCRIPTION 
                "APS protection switch successful."
            ::= { hwApsNotifications 1 }
        hwApsProtectSwitchBackOver NOTIFICATION-TYPE
            OBJECTS { hwApsProtectionGroupNum,hwApsIfType,hwApsWorkingIfType }
            STATUS current
            DESCRIPTION 
                "APS protection restore successful."
            ::= { hwApsNotifications 2 }
        hwApsProtectModeFail NOTIFICATION-TYPE
            OBJECTS { hwApsProtectionGroupNum,hwApsIfType,hwApsWorkingIfType }
            STATUS current
            DESCRIPTION 
                "The type of APS proctection doesn't match."
            ::= { hwApsNotifications 3 }
        hwApsProtectChnlFail NOTIFICATION-TYPE
            OBJECTS { hwApsProtectionGroupNum,hwApsIfType,hwApsWorkingIfType }
            STATUS current
            DESCRIPTION 
                "The tunnle of APS proctection doesn't match."
            ::= { hwApsNotifications 4 }
        hwApsProtectInvldK1K2Fail NOTIFICATION-TYPE
            OBJECTS { hwApsProtectionGroupNum,hwApsIfType,hwApsWorkingIfType }
            STATUS current
            DESCRIPTION 
                "The number K byte is unusable. "
            ::= { hwApsNotifications 5 }
        hwApsProtectRemoteFail NOTIFICATION-TYPE
            OBJECTS { hwApsProtectionGroupNum,hwApsIfType,hwApsWorkingIfType }
            STATUS current
            DESCRIPTION 
                "The remote is inspected  failure."
            ::= { hwApsNotifications 6 }

-- ===========================================================================================
        hwApsConformance OBJECT IDENTIFIER ::= { hwApsMIB 3 }
        
        hwApsCompliances OBJECT IDENTIFIER ::= { hwApsConformance 1 }
        
--  compliance statements
-- this module
-- this module
        hwApsCompliance MODULE-COMPLIANCE
            STATUS current
            DESCRIPTION 
                "The compliance statement for entities that implement 
                extend APS on a router."
            MODULE -- this module
                MANDATORY-GROUPS { hwApsProtectionGroup,hwApsNotificationsGroup }
            ::= { hwApsCompliances 1 }


        hwApsGroups OBJECT IDENTIFIER ::= { hwApsConformance 2 }
        
--   units of conformance
        hwApsProtectionGroup OBJECT-GROUP
            OBJECTS { hwApsProtectionGroupNum,hwApsIfType,hwApsRestoreWaitTime,hwApsProtectSwitch, 
                    hwApsWorkingIfType,hwApsRowStatus }
            STATUS current
            DESCRIPTION 
                "This is a optional group of information."
            ::= { hwApsGroups 1 }
        hwApsNotificationsGroup NOTIFICATION-GROUP
            NOTIFICATIONS { hwApsProtectSwitchOver,hwApsProtectSwitchBackOver,hwApsProtectModeFail,
                    hwApsProtectChnlFail,hwApsProtectInvldK1K2Fail,hwApsProtectRemoteFail }
            STATUS current
            DESCRIPTION 
                "This is a optional group of information."
            ::= { hwApsGroups 2 }

    END