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."
64 begemotNgObjects OBJECT IDENTIFIER ::= { begemotNg 1 }
66 -- --------------------------------------------------------------------------
68 NgTypeName ::= TEXTUAL-CONVENTION
72 "Name of a netgraph type."
73 SYNTAX OCTET STRING (SIZE(1..31))
75 NgNodeName ::= TEXTUAL-CONVENTION
79 "Name of a netgraph node."
80 SYNTAX OCTET STRING (SIZE(1..31))
82 NgNodeNameOrEmpty ::= TEXTUAL-CONVENTION
86 "Name of a netgraph node."
87 SYNTAX OCTET STRING (SIZE(0..31))
89 NgHookName ::= TEXTUAL-CONVENTION
93 "Name of a netgraph hook."
94 SYNTAX OCTET STRING (SIZE(1..31))
96 NgNodeId ::= TEXTUAL-CONVENTION
101 SYNTAX Unsigned32 (1..4294967295)
103 NgNodeIdOrZero ::= TEXTUAL-CONVENTION
107 "Node identifier or 0 for 'no-node'."
108 SYNTAX Unsigned32 (0..4294967295)
110 -- --------------------------------------------------------------------------
112 -- Configuration parameters
114 begemotNgConfig OBJECT IDENTIFIER ::= { begemotNgObjects 1 }
116 begemotNgControlNodeName OBJECT-TYPE
121 "The name of the netgraph node of this daemon. The name is
122 writeable during initialisation. If the name is set from
123 the empty string to the non-empty string, the netgraph socket
124 is created. Once set it cannot be changed."
125 ::= { begemotNgConfig 1 }
127 begemotNgResBufSiz OBJECT-TYPE
128 SYNTAX INTEGER (1024..65536)
129 MAX-ACCESS read-write
132 "The size of the receive buffers for netgraph messages."
134 ::= { begemotNgConfig 2 }
136 begemotNgTimeout OBJECT-TYPE
137 SYNTAX INTEGER (10..10000)
139 MAX-ACCESS read-write
142 "The maximum time to wait for a response to a netgraph message."
144 ::= { begemotNgConfig 3 }
146 begemotNgDebugLevel OBJECT-TYPE
148 MAX-ACCESS read-write
151 "The netgraph library debug level. This should be set only
152 if the daemon is run with a terminal attached."
154 ::= { begemotNgConfig 4 }
156 -- --------------------------------------------------------------------------
158 -- The STATISTICS Group
160 begemotNgStats OBJECT IDENTIFIER ::= { begemotNgObjects 2 }
162 begemotNgNoMems OBJECT-TYPE
167 "Number of times a memory allocation has failed for buffers
168 or the message queue."
169 ::= { begemotNgStats 1 }
171 begemotNgMsgReadErrs OBJECT-TYPE
176 "Number of times reading a netgraph message has failed."
177 ::= { begemotNgStats 2 }
179 begemotNgTooLargeMsgs OBJECT-TYPE
184 "Number of times a netgraph message was too large for
185 the buffer. Try increasing begemotNgResBufSiz if
187 ::= { begemotNgStats 3 }
189 begemotNgDataReadErrs OBJECT-TYPE
194 "Number of times reading a netgraph data message has failed."
195 ::= { begemotNgStats 4 }
197 begemotNgTooLargeDatas OBJECT-TYPE
202 "Number of times a netgraph data message was too large.
203 You need to increase begemotNgResBufSiz."
204 ::= { begemotNgStats 5 }
206 -- -----------------------------------------------------
210 begemotNgTypeTable OBJECT-TYPE
211 SYNTAX SEQUENCE OF BegemotNgTypeEntry
212 MAX-ACCESS not-accessible
215 "A table containing information about all netgraph node types."
216 ::= { begemotNgObjects 3 }
218 begemotNgTypeEntry OBJECT-TYPE
219 SYNTAX BegemotNgTypeEntry
220 MAX-ACCESS not-accessible
223 "Table entry that describes one netgraph node."
224 INDEX { begemotNgTypeName }
225 ::= { begemotNgTypeTable 1 }
227 BegemotNgTypeEntry ::= SEQUENCE {
228 begemotNgTypeName NgTypeName,
229 begemotNgTypeStatus INTEGER
232 begemotNgTypeName OBJECT-TYPE
234 MAX-ACCESS not-accessible
237 "The name of the type. Used as index."
238 ::= { begemotNgTypeEntry 1 }
240 begemotNgTypeStatus OBJECT-TYPE
241 SYNTAX INTEGER { loaded(1), unloaded(2) }
242 MAX-ACCESS read-create
245 "If loaded then the node type is available. A type can be load
246 by setting this field to loaded. It is unload if the field is
247 set to unloaded. Note, that a type cannot be unloaded if it
248 is compiled into the kernel or has nodes of this type. The name
249 of the file containing the type implementation is constructed by
250 prepending ng_ to the type name."
251 ::= { begemotNgTypeEntry 2 }
256 begemotNgNodeTable OBJECT-TYPE
257 SYNTAX SEQUENCE OF BegemotNgNodeEntry
258 MAX-ACCESS not-accessible
261 "A table containing information about all netgraph nodes."
262 ::= { begemotNgObjects 4 }
264 begemotNgNodeEntry OBJECT-TYPE
265 SYNTAX BegemotNgNodeEntry
266 MAX-ACCESS not-accessible
269 "Table entry that describes one netgraph node."
270 INDEX { begemotNgNodeId }
271 ::= { begemotNgNodeTable 1 }
273 BegemotNgNodeEntry ::= SEQUENCE {
274 begemotNgNodeId NgNodeId,
275 begemotNgNodeStatus INTEGER,
276 begemotNgNodeName NgNodeNameOrEmpty,
277 begemotNgNodeType NgTypeName,
278 begemotNgNodeHooks Unsigned32
281 begemotNgNodeId OBJECT-TYPE
283 MAX-ACCESS not-accessible
286 "The 32bit node id of this node. 0 is an illegal value."
287 ::= { begemotNgNodeEntry 1 }
289 begemotNgNodeStatus OBJECT-TYPE
290 SYNTAX INTEGER { valid(1), invalid(2) }
294 "Indicates whether the node exists or not."
295 ::= { begemotNgNodeEntry 2 }
297 begemotNgNodeName OBJECT-TYPE
298 SYNTAX NgNodeNameOrEmpty
302 "Name of the node (if any)."
303 ::= { begemotNgNodeEntry 3 }
305 begemotNgNodeType OBJECT-TYPE
310 "Type name of the node."
311 ::= { begemotNgNodeEntry 4 }
313 begemotNgNodeHooks OBJECT-TYPE
318 "Number of hooks on this node."
319 ::= { begemotNgNodeEntry 5 }
324 begemotNgHookTable OBJECT-TYPE
325 SYNTAX SEQUENCE OF BegemotNgHookEntry
326 MAX-ACCESS not-accessible
329 "A table containing information about all netgraph hooks."
330 ::= { begemotNgObjects 5 }
332 begemotNgHookEntry OBJECT-TYPE
333 SYNTAX BegemotNgHookEntry
334 MAX-ACCESS not-accessible
337 "Table entry that describes one netgraph node."
338 INDEX { begemotNgHookNodeId, begemotNgHookHook }
339 ::= { begemotNgHookTable 1 }
341 BegemotNgHookEntry ::= SEQUENCE {
342 begemotNgHookNodeId NgNodeId,
343 begemotNgHookHook NgHookName,
344 begemotNgHookStatus INTEGER,
345 begemotNgHookPeerNodeId NgNodeId,
346 begemotNgHookPeerHook NgHookName,
347 begemotNgHookPeerType NgTypeName
350 begemotNgHookNodeId OBJECT-TYPE
352 MAX-ACCESS not-accessible
355 "The 32bit node id of this node."
356 ::= { begemotNgHookEntry 1 }
358 begemotNgHookHook OBJECT-TYPE
364 ::= { begemotNgHookEntry 2 }
366 begemotNgHookStatus OBJECT-TYPE
367 SYNTAX INTEGER { valid(1), invalid(2) }
371 "Indicates whether the hook exists or not."
372 ::= { begemotNgHookEntry 3 }
374 begemotNgHookPeerNodeId OBJECT-TYPE
379 "The 32bit node id of the peer node of this hook."
380 ::= { begemotNgHookEntry 4 }
382 begemotNgHookPeerHook OBJECT-TYPE
387 "Name of the peer hook."
388 ::= { begemotNgHookEntry 5 }
390 begemotNgHookPeerType OBJECT-TYPE
395 "Name of the peer type."
396 ::= { begemotNgHookEntry 6 }