2 -- Copyright (c) 2001-2003
3 -- Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 -- All rights reserved.
6 -- Author: Harti Brandt <harti@freebsd.org>
8 -- Redistribution of this software and documentation and use in source and
9 -- binary forms, with or without modification, are permitted provided that
10 -- the following conditions are met:
12 -- 1. Redistributions of source code or documentation must retain the above
13 -- copyright notice, this list of conditions and the following disclaimer.
14 -- 2. Redistributions in binary form must reproduce the above copyright
15 -- notice, this list of conditions and the following disclaimer in the
16 -- documentation and/or other materials provided with the distribution.
18 -- THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY FRAUNHOFER FOKUS
19 -- AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
20 -- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21 -- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22 -- FRAUNHOFER FOKUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 -- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 -- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
25 -- OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28 -- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 -- Private MIB for netgraph part of Begemot SNMP daemon.
34 BEGEMOT-NETGRAPH-MIB DEFINITIONS ::= BEGIN
37 MODULE-IDENTITY, OBJECT-TYPE, Counter32, Unsigned32
39 TEXTUAL-CONVENTION, TruthValue
41 MODULE-COMPLIANCE, OBJECT-GROUP
46 begemotNg MODULE-IDENTITY
47 LAST-UPDATED "200311140000Z"
48 ORGANIZATION "Fraunhofer FOKUS, CATS"
52 Postal: Fraunhofer Institute for Open Communication Systems
53 Kaiserin-Augusta-Allee 31
59 E-mail: harti@freebsd.org"
61 "The MIB for the NetGraph access module for SNMP."
62 REVISION "200311140000Z"
64 "The maximum width of the following OCTET STRINGs was increased
72 REVISION "200201310000Z"
77 begemotNgObjects OBJECT IDENTIFIER ::= { begemotNg 1 }
79 -- --------------------------------------------------------------------------
81 NgTypeName ::= TEXTUAL-CONVENTION
85 "Name of a netgraph type."
86 SYNTAX OCTET STRING (SIZE(1..31))
88 NgNodeName ::= TEXTUAL-CONVENTION
92 "Name of a netgraph node."
93 SYNTAX OCTET STRING (SIZE(1..31))
95 NgNodeNameOrEmpty ::= TEXTUAL-CONVENTION
99 "Name of a netgraph node."
100 SYNTAX OCTET STRING (SIZE(0..31))
102 NgHookName ::= TEXTUAL-CONVENTION
106 "Name of a netgraph hook."
107 SYNTAX OCTET STRING (SIZE(1..31))
109 NgNodeId ::= TEXTUAL-CONVENTION
114 SYNTAX Unsigned32 (1..4294967295)
116 NgNodeIdOrZero ::= TEXTUAL-CONVENTION
120 "Node identifier or 0 for 'no-node'."
121 SYNTAX Unsigned32 (0..4294967295)
123 -- --------------------------------------------------------------------------
125 -- Configuration parameters
127 begemotNgConfig OBJECT IDENTIFIER ::= { begemotNgObjects 1 }
129 begemotNgControlNodeName OBJECT-TYPE
134 "The name of the netgraph node of this daemon. The name is
135 writeable during initialisation. If the name is set from
136 the empty string to the non-empty string, the netgraph socket
137 is created. Once set it cannot be changed."
138 ::= { begemotNgConfig 1 }
140 begemotNgResBufSiz OBJECT-TYPE
141 SYNTAX INTEGER (1024..65536)
142 MAX-ACCESS read-write
145 "The size of the receive buffers for netgraph messages."
147 ::= { begemotNgConfig 2 }
149 begemotNgTimeout OBJECT-TYPE
150 SYNTAX INTEGER (10..10000)
152 MAX-ACCESS read-write
155 "The maximum time to wait for a response to a netgraph message."
157 ::= { begemotNgConfig 3 }
159 begemotNgDebugLevel OBJECT-TYPE
161 MAX-ACCESS read-write
164 "The netgraph library debug level. This should be set only
165 if the daemon is run with a terminal attached."
167 ::= { begemotNgConfig 4 }
169 -- --------------------------------------------------------------------------
171 -- The STATISTICS Group
173 begemotNgStats OBJECT IDENTIFIER ::= { begemotNgObjects 2 }
175 begemotNgNoMems OBJECT-TYPE
180 "Number of times a memory allocation has failed for buffers
181 or the message queue."
182 ::= { begemotNgStats 1 }
184 begemotNgMsgReadErrs OBJECT-TYPE
189 "Number of times reading a netgraph message has failed."
190 ::= { begemotNgStats 2 }
192 begemotNgTooLargeMsgs OBJECT-TYPE
197 "Number of times a netgraph message was too large for
198 the buffer. Try increasing begemotNgResBufSiz if
200 ::= { begemotNgStats 3 }
202 begemotNgDataReadErrs OBJECT-TYPE
207 "Number of times reading a netgraph data message has failed."
208 ::= { begemotNgStats 4 }
210 begemotNgTooLargeDatas OBJECT-TYPE
215 "Number of times a netgraph data message was too large.
216 You need to increase begemotNgResBufSiz."
217 ::= { begemotNgStats 5 }
219 -- -----------------------------------------------------
223 begemotNgTypeTable OBJECT-TYPE
224 SYNTAX SEQUENCE OF BegemotNgTypeEntry
225 MAX-ACCESS not-accessible
228 "A table containing information about all netgraph node types."
229 ::= { begemotNgObjects 3 }
231 begemotNgTypeEntry OBJECT-TYPE
232 SYNTAX BegemotNgTypeEntry
233 MAX-ACCESS not-accessible
236 "Table entry that describes one netgraph node."
237 INDEX { begemotNgTypeName }
238 ::= { begemotNgTypeTable 1 }
240 BegemotNgTypeEntry ::= SEQUENCE {
241 begemotNgTypeName NgTypeName,
242 begemotNgTypeStatus INTEGER
245 begemotNgTypeName OBJECT-TYPE
247 MAX-ACCESS not-accessible
250 "The name of the type. Used as index."
251 ::= { begemotNgTypeEntry 1 }
253 begemotNgTypeStatus OBJECT-TYPE
254 SYNTAX INTEGER { loaded(1), unloaded(2) }
255 MAX-ACCESS read-create
258 "If loaded then the node type is available. A type can be load
259 by setting this field to loaded. It is unload if the field is
260 set to unloaded. Note, that a type cannot be unloaded if it
261 is compiled into the kernel or has nodes of this type. The name
262 of the file containing the type implementation is constructed by
263 prepending ng_ to the type name."
264 ::= { begemotNgTypeEntry 2 }
269 begemotNgNodeTable OBJECT-TYPE
270 SYNTAX SEQUENCE OF BegemotNgNodeEntry
271 MAX-ACCESS not-accessible
274 "A table containing information about all netgraph nodes."
275 ::= { begemotNgObjects 4 }
277 begemotNgNodeEntry OBJECT-TYPE
278 SYNTAX BegemotNgNodeEntry
279 MAX-ACCESS not-accessible
282 "Table entry that describes one netgraph node."
283 INDEX { begemotNgNodeId }
284 ::= { begemotNgNodeTable 1 }
286 BegemotNgNodeEntry ::= SEQUENCE {
287 begemotNgNodeId NgNodeId,
288 begemotNgNodeStatus INTEGER,
289 begemotNgNodeName NgNodeNameOrEmpty,
290 begemotNgNodeType NgTypeName,
291 begemotNgNodeHooks Unsigned32
294 begemotNgNodeId OBJECT-TYPE
296 MAX-ACCESS not-accessible
299 "The 32bit node id of this node. 0 is an illegal value."
300 ::= { begemotNgNodeEntry 1 }
302 begemotNgNodeStatus OBJECT-TYPE
303 SYNTAX INTEGER { valid(1), invalid(2) }
307 "Indicates whether the node exists or not."
308 ::= { begemotNgNodeEntry 2 }
310 begemotNgNodeName OBJECT-TYPE
311 SYNTAX NgNodeNameOrEmpty
315 "Name of the node (if any)."
316 ::= { begemotNgNodeEntry 3 }
318 begemotNgNodeType OBJECT-TYPE
323 "Type name of the node."
324 ::= { begemotNgNodeEntry 4 }
326 begemotNgNodeHooks OBJECT-TYPE
331 "Number of hooks on this node."
332 ::= { begemotNgNodeEntry 5 }
337 begemotNgHookTable OBJECT-TYPE
338 SYNTAX SEQUENCE OF BegemotNgHookEntry
339 MAX-ACCESS not-accessible
342 "A table containing information about all netgraph hooks."
343 ::= { begemotNgObjects 5 }
345 begemotNgHookEntry OBJECT-TYPE
346 SYNTAX BegemotNgHookEntry
347 MAX-ACCESS not-accessible
350 "Table entry that describes one netgraph node."
351 INDEX { begemotNgHookNodeId, begemotNgHookHook }
352 ::= { begemotNgHookTable 1 }
354 BegemotNgHookEntry ::= SEQUENCE {
355 begemotNgHookNodeId NgNodeId,
356 begemotNgHookHook NgHookName,
357 begemotNgHookStatus INTEGER,
358 begemotNgHookPeerNodeId NgNodeId,
359 begemotNgHookPeerHook NgHookName,
360 begemotNgHookPeerType NgTypeName
363 begemotNgHookNodeId OBJECT-TYPE
365 MAX-ACCESS not-accessible
368 "The 32bit node id of this node."
369 ::= { begemotNgHookEntry 1 }
371 begemotNgHookHook OBJECT-TYPE
377 ::= { begemotNgHookEntry 2 }
379 begemotNgHookStatus OBJECT-TYPE
380 SYNTAX INTEGER { valid(1), invalid(2) }
384 "Indicates whether the hook exists or not."
385 ::= { begemotNgHookEntry 3 }
387 begemotNgHookPeerNodeId OBJECT-TYPE
392 "The 32bit node id of the peer node of this hook."
393 ::= { begemotNgHookEntry 4 }
395 begemotNgHookPeerHook OBJECT-TYPE
400 "Name of the peer hook."
401 ::= { begemotNgHookEntry 5 }
403 begemotNgHookPeerType OBJECT-TYPE
408 "Name of the peer type."
409 ::= { begemotNgHookEntry 6 }