Path: blob/main/usr.sbin/bsnmpd/modules/snmp_netgraph/BEGEMOT-NETGRAPH.txt
106138 views
--1-- Copyright (c) 2001-20032-- Fraunhofer Institute for Open Communication Systems (FhG Fokus).3-- All rights reserved.4--5-- Author: Harti Brandt <[email protected]>6--7-- Redistribution of this software and documentation and use in source and8-- binary forms, with or without modification, are permitted provided that9-- the following conditions are met:10--11-- 1. Redistributions of source code or documentation must retain the above12-- copyright notice, this list of conditions and the following disclaimer.13-- 2. Redistributions in binary form must reproduce the above copyright14-- notice, this list of conditions and the following disclaimer in the15-- documentation and/or other materials provided with the distribution.16--17-- THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY FRAUNHOFER FOKUS18-- AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,19-- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND20-- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL21-- FRAUNHOFER FOKUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,22-- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT23-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,24-- OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF25-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING26-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,27-- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.28--29-- Private MIB for netgraph part of Begemot SNMP daemon.30--31BEGEMOT-NETGRAPH-MIB DEFINITIONS ::= BEGIN3233IMPORTS34MODULE-IDENTITY, OBJECT-TYPE, Counter32, Unsigned3235FROM SNMPv2-SMI36TEXTUAL-CONVENTION, TruthValue37FROM SNMPv2-TC38MODULE-COMPLIANCE, OBJECT-GROUP39FROM SNMPv2-CONF40begemot41FROM BEGEMOT-MIB;4243begemotNg MODULE-IDENTITY44LAST-UPDATED "200311140000Z"45ORGANIZATION "Fraunhofer FOKUS, CATS"46CONTACT-INFO47" Hartmut Brandt4849Postal: Fraunhofer Institute for Open Communication Systems50Kaiserin-Augusta-Allee 315110589 Berlin52Germany5354Fax: +49 30 3463 73525556E-mail: [email protected]"57DESCRIPTION58"The MIB for the NetGraph access module for SNMP."59REVISION "200311140000Z"60DESCRIPTION61"The maximum width of the following OCTET STRINGs was increased62from 15 to 31:6364- NgTypeName65- NgNodeName66- NgNodeNameOrEmpty67- NgHookName68"69REVISION "200201310000Z"70DESCRIPTION71"Initial revision."72::= { begemot 2 }7374begemotNgObjects OBJECT IDENTIFIER ::= { begemotNg 1 }7576-- --------------------------------------------------------------------------7778NgTypeName ::= TEXTUAL-CONVENTION79DISPLAY-HINT "31a"80STATUS current81DESCRIPTION82"Name of a netgraph type."83SYNTAX OCTET STRING (SIZE(1..31))8485NgNodeName ::= TEXTUAL-CONVENTION86DISPLAY-HINT "31a"87STATUS current88DESCRIPTION89"Name of a netgraph node."90SYNTAX OCTET STRING (SIZE(1..31))9192NgNodeNameOrEmpty ::= TEXTUAL-CONVENTION93DISPLAY-HINT "31a"94STATUS current95DESCRIPTION96"Name of a netgraph node."97SYNTAX OCTET STRING (SIZE(0..31))9899NgHookName ::= TEXTUAL-CONVENTION100DISPLAY-HINT "31a"101STATUS current102DESCRIPTION103"Name of a netgraph hook."104SYNTAX OCTET STRING (SIZE(1..31))105106NgNodeId ::= TEXTUAL-CONVENTION107DISPLAY-HINT "x"108STATUS current109DESCRIPTION110"Node identifier."111SYNTAX Unsigned32 (1..4294967295)112113NgNodeIdOrZero ::= TEXTUAL-CONVENTION114DISPLAY-HINT "x"115STATUS current116DESCRIPTION117"Node identifier or 0 for 'no-node'."118SYNTAX Unsigned32 (0..4294967295)119120-- --------------------------------------------------------------------------121--122-- Configuration parameters123--124begemotNgConfig OBJECT IDENTIFIER ::= { begemotNgObjects 1 }125126begemotNgControlNodeName OBJECT-TYPE127SYNTAX NgNodeName128MAX-ACCESS read-only129STATUS current130DESCRIPTION131"The name of the netgraph node of this daemon. The name is132writeable during initialisation. If the name is set from133the empty string to the non-empty string, the netgraph socket134is created. Once set it cannot be changed."135::= { begemotNgConfig 1 }136137begemotNgResBufSiz OBJECT-TYPE138SYNTAX INTEGER (1024..65536)139MAX-ACCESS read-write140STATUS current141DESCRIPTION142"The size of the receive buffers for netgraph messages."143DEFVAL { 20000 }144::= { begemotNgConfig 2 }145146begemotNgTimeout OBJECT-TYPE147SYNTAX INTEGER (10..10000)148UNITS "milliseconds"149MAX-ACCESS read-write150STATUS current151DESCRIPTION152"The maximum time to wait for a response to a netgraph message."153DEFVAL { 1000 }154::= { begemotNgConfig 3 }155156begemotNgDebugLevel OBJECT-TYPE157SYNTAX Unsigned32158MAX-ACCESS read-write159STATUS current160DESCRIPTION161"The netgraph library debug level. This should be set only162if the daemon is run with a terminal attached."163DEFVAL { 0 }164::= { begemotNgConfig 4 }165166-- --------------------------------------------------------------------------167--168-- The STATISTICS Group169--170begemotNgStats OBJECT IDENTIFIER ::= { begemotNgObjects 2 }171172begemotNgNoMems OBJECT-TYPE173SYNTAX Counter32174MAX-ACCESS read-only175STATUS current176DESCRIPTION177"Number of times a memory allocation has failed for buffers178or the message queue."179::= { begemotNgStats 1 }180181begemotNgMsgReadErrs OBJECT-TYPE182SYNTAX Counter32183MAX-ACCESS read-only184STATUS current185DESCRIPTION186"Number of times reading a netgraph message has failed."187::= { begemotNgStats 2 }188189begemotNgTooLargeMsgs OBJECT-TYPE190SYNTAX Counter32191MAX-ACCESS read-only192STATUS current193DESCRIPTION194"Number of times a netgraph message was too large for195the buffer. Try increasing begemotNgResBufSiz if196this happens."197::= { begemotNgStats 3 }198199begemotNgDataReadErrs OBJECT-TYPE200SYNTAX Counter32201MAX-ACCESS read-only202STATUS current203DESCRIPTION204"Number of times reading a netgraph data message has failed."205::= { begemotNgStats 4 }206207begemotNgTooLargeDatas OBJECT-TYPE208SYNTAX Counter32209MAX-ACCESS read-only210STATUS current211DESCRIPTION212"Number of times a netgraph data message was too large.213You need to increase begemotNgResBufSiz."214::= { begemotNgStats 5 }215216-- -----------------------------------------------------217--218-- The NODE table219--220begemotNgTypeTable OBJECT-TYPE221SYNTAX SEQUENCE OF BegemotNgTypeEntry222MAX-ACCESS not-accessible223STATUS current224DESCRIPTION225"A table containing information about all netgraph node types."226::= { begemotNgObjects 3 }227228begemotNgTypeEntry OBJECT-TYPE229SYNTAX BegemotNgTypeEntry230MAX-ACCESS not-accessible231STATUS current232DESCRIPTION233"Table entry that describes one netgraph node."234INDEX { begemotNgTypeName }235::= { begemotNgTypeTable 1 }236237BegemotNgTypeEntry ::= SEQUENCE {238begemotNgTypeName NgTypeName,239begemotNgTypeStatus INTEGER240}241242begemotNgTypeName OBJECT-TYPE243SYNTAX NgTypeName244MAX-ACCESS not-accessible245STATUS current246DESCRIPTION247"The name of the type. Used as index."248::= { begemotNgTypeEntry 1 }249250begemotNgTypeStatus OBJECT-TYPE251SYNTAX INTEGER { loaded(1), unloaded(2) }252MAX-ACCESS read-create253STATUS current254DESCRIPTION255"If loaded then the node type is available. A type can be load256by setting this field to loaded. It is unload if the field is257set to unloaded. Note, that a type cannot be unloaded if it258is compiled into the kernel or has nodes of this type. The name259of the file containing the type implementation is constructed by260prepending ng_ to the type name."261::= { begemotNgTypeEntry 2 }262263--264-- Node table265--266begemotNgNodeTable OBJECT-TYPE267SYNTAX SEQUENCE OF BegemotNgNodeEntry268MAX-ACCESS not-accessible269STATUS current270DESCRIPTION271"A table containing information about all netgraph nodes."272::= { begemotNgObjects 4 }273274begemotNgNodeEntry OBJECT-TYPE275SYNTAX BegemotNgNodeEntry276MAX-ACCESS not-accessible277STATUS current278DESCRIPTION279"Table entry that describes one netgraph node."280INDEX { begemotNgNodeId }281::= { begemotNgNodeTable 1 }282283BegemotNgNodeEntry ::= SEQUENCE {284begemotNgNodeId NgNodeId,285begemotNgNodeStatus INTEGER,286begemotNgNodeName NgNodeNameOrEmpty,287begemotNgNodeType NgTypeName,288begemotNgNodeHooks Unsigned32289}290291begemotNgNodeId OBJECT-TYPE292SYNTAX NgNodeId293MAX-ACCESS not-accessible294STATUS current295DESCRIPTION296"The 32bit node id of this node. 0 is an illegal value."297::= { begemotNgNodeEntry 1 }298299begemotNgNodeStatus OBJECT-TYPE300SYNTAX INTEGER { valid(1), invalid(2) }301MAX-ACCESS read-only302STATUS current303DESCRIPTION304"Indicates whether the node exists or not."305::= { begemotNgNodeEntry 2 }306307begemotNgNodeName OBJECT-TYPE308SYNTAX NgNodeNameOrEmpty309MAX-ACCESS read-only310STATUS current311DESCRIPTION312"Name of the node (if any)."313::= { begemotNgNodeEntry 3 }314315begemotNgNodeType OBJECT-TYPE316SYNTAX NgTypeName317MAX-ACCESS read-only318STATUS current319DESCRIPTION320"Type name of the node."321::= { begemotNgNodeEntry 4 }322323begemotNgNodeHooks OBJECT-TYPE324SYNTAX Unsigned32325MAX-ACCESS read-only326STATUS current327DESCRIPTION328"Number of hooks on this node."329::= { begemotNgNodeEntry 5 }330331--332-- Hook table333--334begemotNgHookTable OBJECT-TYPE335SYNTAX SEQUENCE OF BegemotNgHookEntry336MAX-ACCESS not-accessible337STATUS current338DESCRIPTION339"A table containing information about all netgraph hooks."340::= { begemotNgObjects 5 }341342begemotNgHookEntry OBJECT-TYPE343SYNTAX BegemotNgHookEntry344MAX-ACCESS not-accessible345STATUS current346DESCRIPTION347"Table entry that describes one netgraph node."348INDEX { begemotNgHookNodeId, begemotNgHookHook }349::= { begemotNgHookTable 1 }350351BegemotNgHookEntry ::= SEQUENCE {352begemotNgHookNodeId NgNodeId,353begemotNgHookHook NgHookName,354begemotNgHookStatus INTEGER,355begemotNgHookPeerNodeId NgNodeId,356begemotNgHookPeerHook NgHookName,357begemotNgHookPeerType NgTypeName358}359360begemotNgHookNodeId OBJECT-TYPE361SYNTAX NgNodeId362MAX-ACCESS not-accessible363STATUS current364DESCRIPTION365"The 32bit node id of this node."366::= { begemotNgHookEntry 1 }367368begemotNgHookHook OBJECT-TYPE369SYNTAX NgHookName370MAX-ACCESS read-only371STATUS current372DESCRIPTION373"Name of the hook."374::= { begemotNgHookEntry 2 }375376begemotNgHookStatus OBJECT-TYPE377SYNTAX INTEGER { valid(1), invalid(2) }378MAX-ACCESS read-only379STATUS current380DESCRIPTION381"Indicates whether the hook exists or not."382::= { begemotNgHookEntry 3 }383384begemotNgHookPeerNodeId OBJECT-TYPE385SYNTAX NgNodeId386MAX-ACCESS read-only387STATUS current388DESCRIPTION389"The 32bit node id of the peer node of this hook."390::= { begemotNgHookEntry 4 }391392begemotNgHookPeerHook OBJECT-TYPE393SYNTAX NgHookName394MAX-ACCESS read-only395STATUS current396DESCRIPTION397"Name of the peer hook."398::= { begemotNgHookEntry 5 }399400begemotNgHookPeerType OBJECT-TYPE401SYNTAX NgTypeName402MAX-ACCESS read-only403STATUS current404DESCRIPTION405"Name of the peer type."406::= { begemotNgHookEntry 6 }407408END409410411