summaryrefslogtreecommitdiff
path: root/MIBS/mrv/NBS-TRAPCONTROL-MIB
blob: 7dcdf643526889ab5e16e06cdb33e26e4ead47a7 (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
NBS-TRAPCONTROL-MIB DEFINITIONS ::= BEGIN

IMPORTS
    Unsigned32, OBJECT-TYPE,
    MODULE-IDENTITY, OBJECT-IDENTITY
        FROM SNMPv2-SMI

    DisplayString
        FROM SNMPv2-TC

    InterfaceIndex
        FROM IF-MIB

    nbs
        FROM NBS-MIB;

nbsTrapControlMib  MODULE-IDENTITY
    LAST-UPDATED "201209260000Z"  -- Sep 26, 2012
    ORGANIZATION  "NBS"
    CONTACT-INFO
      "For technical support, please contact your service channel"
    DESCRIPTION
      "MIB to specify which SNMP Notifications (Traps) are supported,
       and for which interfaces (ports) each should be sent."
    ::= { nbs 209 }

-- *******************************************************************
-- NBS-TRAPCONTROL-MIB local defines
-- *******************************************************************

nbsTrapListGrp  OBJECT-IDENTITY
    STATUS    current
    DESCRIPTION
      "List of SNMP Notifications (Traps) emitted by Agent"
    ::= { nbsTrapControlMib 1 }

nbsTrapIfGrp  OBJECT-IDENTITY
    STATUS    current
    DESCRIPTION
      "List of interfaces managed by Agent"
    ::= { nbsTrapControlMib 2 }


-- *******************************************************************
--
-- the nbsTrapListGrp
--
-- *******************************************************************

nbsTrapListTableSize OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
          "The number of entries in nbsTrapListTable."
        ::= { nbsTrapListGrp 1 }

nbsTrapListTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF NbsTrapListEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION
          "A table to list SNMP Notifications emitted by Agent"
        ::= { nbsTrapListGrp 2 }

nbsTrapListEntry      OBJECT-TYPE
        SYNTAX      NbsTrapListEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION
          "Describes a particular SNMP Notification/Trap."
        INDEX { nbsTrapListIndex }
        ::= { nbsTrapListTable 1 }

NbsTrapListEntry ::= SEQUENCE {
        nbsTrapListIndex             Unsigned32,
        nbsTrapListTrapMib           DisplayString,
        nbsTrapListTrapName          DisplayString,
        nbsTrapListTrapDescription   DisplayString,
        nbsTrapListTrapOID           DisplayString
}

nbsTrapListIndex OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION
          "Agent-generated unique ID.  Numbering is contiguous
           and starts from 1."
        ::= { nbsTrapListEntry 1 }

nbsTrapListTrapMib OBJECT-TYPE
        SYNTAX      DisplayString(SIZE(0..32))
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
          "The name of the mib where this SNMP Notification is
           defined.  An example would be IF-MIB."
        ::= { nbsTrapListEntry 2 }

nbsTrapListTrapName OBJECT-TYPE
        SYNTAX      DisplayString(SIZE(0..50))
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
          "Trap Name; the name given in the NOTIFICATION-TYPE
           definition. An example would be linkUp"
        ::= { nbsTrapListEntry 3 }

nbsTrapListTrapDescription OBJECT-TYPE
        SYNTAX      DisplayString(SIZE(0..100))
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
          "Brief explanation of this SNMP Notification.  Agent
           may use the first 100 characters of the DESCRIPTION
           clause from the Notification's MIB definition."
        ::= { nbsTrapListEntry 4 }

nbsTrapListTrapOID OBJECT-TYPE
        SYNTAX      DisplayString(SIZE(0..100))
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
          "Concatenation of the enterprise and the specific-trap number
           used in the SNMPv1 trap PDU"
        ::= { nbsTrapListEntry 5 }

-- *******************************************************************
--
-- the nbsTrapIfGrp
--
-- *******************************************************************


nbsTrapIfTableSize OBJECT-TYPE
        SYNTAX      Unsigned32
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
          "The number of entries in nbsTrapIfTable."
        ::= { nbsTrapIfGrp 1 }

nbsTrapIfTable OBJECT-TYPE
        SYNTAX      SEQUENCE OF NbsTrapIfEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION
          "A list of all interfaces managed by Agent, and which traps
           to send for each."
        ::= { nbsTrapIfGrp 2 }

nbsTrapIfEntry      OBJECT-TYPE
        SYNTAX      NbsTrapIfEntry
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION
          "Indicates traps for a particular interface."
        INDEX { nbsTrapIfIndex }
        ::= { nbsTrapIfTable 1 }

NbsTrapIfEntry ::= SEQUENCE {
        nbsTrapIfIndex        InterfaceIndex,
        nbsTrapIfTrapsCaps    OCTET STRING,
        nbsTrapIfTrapsSelect  OCTET STRING
}

nbsTrapIfIndex OBJECT-TYPE
        SYNTAX      InterfaceIndex
        MAX-ACCESS  not-accessible
        STATUS      current
        DESCRIPTION
          "The ifIndex from the Mib2 ifTable."
        ::= { nbsTrapIfEntry 1 }

nbsTrapIfTrapsCaps OBJECT-TYPE
        SYNTAX      OCTET STRING
        MAX-ACCESS  read-only
        STATUS      current
        DESCRIPTION
          "Bitmask indicating which SNMP Notifications are supported
           for this interface.

           Bit 0 is reserved.

           Subsequent bits refer to the nbsTrapListTable.  Bit 1
           corresponds to the first table entry, Bit 2 to the second
           entry, and so on.

           A bit is set (1) if that SNMP Notification can be sent for
           this interface, and cleared (0) if unavailable.

           OCTET STRING bitmasks count the leftmost bit (MSB) as 0."
        ::= { nbsTrapIfEntry 2 }

nbsTrapIfTrapsSelect OBJECT-TYPE
        SYNTAX      OCTET STRING
        MAX-ACCESS  read-write
        STATUS      current
        DESCRIPTION
          "Bitmask administrating which SNMP Notifications should be
           sent for this interface.

           Bit 0 is reserved.

           Subsequent bits refer to the nbsTrapListTable.  Bit 1
           corresponds to the first table entry, Bit 2 to the second
           entry, and so on.

           A bit is set (1) if that SNMP Notification should be
           emitted for this interface, and cleared (0) if it should be
           suppressed.

           OCTET STRING bitmasks count the leftmost bit (MSB) as 0."
        ::= { nbsTrapIfEntry 3 }

END