1--MibName=SWITCH-CPUPRO-MIB
2-- *****************************************************************
3-- RAISECOM-CPUPRO-MIB.mib:  Raisecom CPUPro MIB file
4--
5-- Apr 2010, wangzhongfei huochao
6--
7-- Copyright (c) 1994-2006 by Raisecom Technology Co., Ltd.
8-- All rights reserved.
9--
10-- *****************************************************************
11
12-- *****************************************************************
13-- Modi Report��Format: <number>, <time>, <author>, <desc>
14-- 01,20110815,huochao,���ڵ�rcCpuProPacketIndex��ȡֵ"all"ȥ����������Ʋ�����
15--                     "all"�����úͻ�ȡ����ͨ�������ķ�ʽ����
16-- *****************************************************************
17
18
19SWITCH-CPUPRO-MIB  DEFINITIONS ::= BEGIN
20
21IMPORTS
22    MODULE-IDENTITY, NOTIFICATION-TYPE,
23    OBJECT-TYPE                         FROM SNMPv2-SMI
24
25    MODULE-COMPLIANCE,
26    NOTIFICATION-GROUP,
27    OBJECT-GROUP                        FROM SNMPv2-CONF
28
29    EnableVar                           FROM SWITCH-TC
30    iscomSwitch	                        FROM RAISECOM-BASE-MIB;
31
32
33rcCpuPro MODULE-IDENTITY
34        LAST-UPDATED    "201004010000Z"
35        ORGANIZATION    "Raisecom Technology Co., Ltd."
36        CONTACT-INFO
37                "Raisecom Systems
38
39                Postal: No.617/619 Haitai Tower,
40                229 Fourth North Loop Middle Road,
41                Haidian District, Beijing, PRC
42
43                Tel: +86-10-82884499
44
45                E-mail: wangzhongfei@raisecom.com"
46        DESCRIPTION
47         "The MIB module is for configuration of Cpu Protection
48         feature."
49        REVISION   "201004010000Z"
50        DESCRIPTION
51            "The initial revision of this MIB module."
52        ::= { iscomSwitch 60 }
53
54------------------------------------------------------------------------------
55-- define groups in rcCpuPro
56------------------------------------------------------------------------------
57    rcCpuProGroup   OBJECT IDENTIFIER ::= { rcCpuPro 1 }
58
59------------------------------------------------------------------------------
60-- begin rcCpuProGroup  rcCpuProPortTable--
61------------------------------------------------------------------------
62rcCpuProPortTable OBJECT-TYPE
63        SYNTAX SEQUENCE OF RcCpuProPortEntry
64        MAX-ACCESS not-accessible
65        STATUS current
66        DESCRIPTION
67            "A table provides the status of the cpu protection in per port."
68        ::= { rcCpuProGroup 1 }
69
70rcCpuProPacketTable OBJECT-TYPE
71        SYNTAX SEQUENCE OF RcCpuProPacketEntry
72        MAX-ACCESS not-accessible
73        STATUS current
74        DESCRIPTION
75            "A table provides the mechanism to control cpu protection with per packet type."
76        ::= { rcCpuProGroup 2 }
77
78
79rcCpuProPortEntry OBJECT-TYPE
80        SYNTAX RcCpuProPortEntry
81        MAX-ACCESS not-accessible
82        STATUS current
83        DESCRIPTION
84            "Table entry for cpu protection status in per port."
85        INDEX { rcCpuProPortIndex, rcCpuProPacketIndex}
86        ::= { rcCpuProPortTable 1 }
87
88RcCpuProPortEntry ::= SEQUENCE
89    {
90        rcCpuProPortIndex          INTEGER,
91        rcCpuProPortPacketEnable   EnableVar,
92        rcCpuProPortPacketAttackStatus  INTEGER,
93        rcCpuProPortPacketAttackedCount Counter
94    }
95
96rcCpuProPortIndex OBJECT-TYPE
97        SYNTAX INTEGER
98        MAX-ACCESS not-accessible
99        STATUS current
100        DESCRIPTION
101            "An index that uniquely identifies a configuration about cpu pro.
102            Eg:for iscom2826/2826e,the value range is from 1 to 26, for iscom2812gf,
103            from 1 to 12, for iscom2828f,from 1 to 28, for iscom2852,from 1 to 52,and so on."
104        ::= { rcCpuProPortEntry 1}
105
106
107rcCpuProPortPacketEnable OBJECT-TYPE
108        SYNTAX EnableVar
109        MAX-ACCESS read-write
110        STATUS current
111        DESCRIPTION
112            "Enable or disable cpu pro for arp, bpdu or icmp flood for the port"
113        DEFVAL {disable}
114        ::= { rcCpuProPortEntry 2 }
115
116rcCpuProPortPacketAttackStatus OBJECT-TYPE
117        SYNTAX INTEGER{
118                      attacking(1),
119                      not-attacking(2)
120                      }
121        MAX-ACCESS read-only
122        STATUS current
123        DESCRIPTION
124            "This object specifies if the packet is attacking the cpu."
125        ::= { rcCpuProPortEntry 3 }
126
127rcCpuProPortPacketAttackedCount OBJECT-TYPE
128        SYNTAX Counter
129        MAX-ACCESS read-only
130        STATUS current
131        DESCRIPTION
132            "This object specifies the totle number of special packet attacked the cpu."
133        ::= { rcCpuProPortEntry 4 }
134
135rcCpuProPacketEntry OBJECT-TYPE
136        SYNTAX RcCpuProPacketEntry
137        MAX-ACCESS not-accessible
138        STATUS current
139        DESCRIPTION
140            "Table entry for cpu protection config based on port."
141        INDEX {rcCpuProPacketIndex}
142        ::= { rcCpuProPacketTable 1 }
143
144RcCpuProPacketEntry ::= SEQUENCE
145    {
146        rcCpuProPacketIndex        INTEGER,
147        rcCpuProPacketInterval     INTEGER,
148        rcCpuProPacketHigh         INTEGER,
149        rcCpuProPacketLow          INTEGER,
150        rcCpuProPacketAction       INTEGER
151    }
152
153
154rcCpuProPacketIndex OBJECT-TYPE
155        SYNTAX  INTEGER{
156                        bpdu(1),
157                        arp(2),
158                        icmp(3)
159                        }
160        MAX-ACCESS read-only
161        STATUS current
162        DESCRIPTION
163            "This object specifies which packet type the entry information belongs to, under the port."
164        ::= { rcCpuProPacketEntry 1 }
165
166rcCpuProPacketInterval OBJECT-TYPE
167        SYNTAX  INTEGER(0..65535)
168        MAX-ACCESS read-write
169        STATUS current
170        DESCRIPTION
171            "This object specifies the sample interval for special packet."
172        ::= { rcCpuProPacketEntry 2 }
173
174rcCpuProPacketHigh OBJECT-TYPE
175        SYNTAX  INTEGER(2..65535)
176        MAX-ACCESS read-write
177        STATUS current
178        DESCRIPTION
179            "If the number of packets received exceeds the high threshold value, the relative packet will be denied."
180        ::= { rcCpuProPacketEntry 3 }
181
182rcCpuProPacketLow OBJECT-TYPE
183        SYNTAX  INTEGER(1..65535)
184        MAX-ACCESS read-write
185        STATUS current
186        DESCRIPTION
187            "After the cpu was attacked, If the number of packets received is under the low threshold value,
188             the relative packet will be received not denied."
189        ::= { rcCpuProPacketEntry 4 }
190
191rcCpuProPacketAction OBJECT-TYPE
192        SYNTAX  INTEGER{
193                        shutdown(1),
194                        filter(2),
195                        deny(3)
196                        }
197        MAX-ACCESS read-only
198        STATUS current
199        DESCRIPTION
200            "This object specifies which atction the CPUpro will take after be attacked."
201        ::= { rcCpuProPacketEntry 5 }
202
203END