1# 2# Copyright (c) 2001-2003 3# Fraunhofer Institute for Open Communication Systems (FhG Fokus). 4# All rights reserved. 5# 6# Copyright (c) 2018 7# Hartmut Brandt. 8# All rights reserved. 9# 10# Author: Harti Brandt <harti@freebsd.org> 11# 12# Redistribution and use in source and binary forms, with or without 13# modification, are permitted provided that the following conditions 14# are met: 15# 1. Redistributions of source code must retain the above copyright 16# notice, this list of conditions and the following disclaimer. 17# 2. Redistributions in binary form must reproduce the above copyright 18# notice, this list of conditions and the following disclaimer in the 19# documentation and/or other materials provided with the distribution. 20# 21# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 22# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 25# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31# SUCH DAMAGE. 32# 33# $Begemot: tree.def 517 2006-10-31 08:52:04Z brandt_h $ 34# 35# System group and private Begemot SNMPd MIB. 36# 37 38include "tc.def" 39 40typedef BegemotSnmpdTransportProto ENUM ( 41 1 udp 42) 43 44(1 internet 45 (2 mgmt 46 (1 mib-2 47 (1 system 48# 49# The standard System group 50# 51 (1 sysDescr OCTETSTRING op_system_group GET) 52 (2 sysObjectId OID op_system_group GET) 53 (3 sysUpTime TIMETICKS op_system_group GET) 54 (4 sysContact OCTETSTRING op_system_group GET SET) 55 (5 sysName OCTETSTRING op_system_group GET SET) 56 (6 sysLocation OCTETSTRING op_system_group GET SET) 57 (7 sysServices INTEGER op_system_group GET) 58 (8 sysORLastChange TIMETICKS op_system_group GET) 59 (9 sysORTable 60 (1 sysOREntry : INTEGER op_or_table 61 (1 sysORIndex INTEGER) 62 (2 sysORID OID GET) 63 (3 sysORDescr OCTETSTRING GET) 64 (4 sysORUpTime TIMETICKS GET) 65 )) 66 ) 67 (11 snmp 68 (1 snmpInPkts COUNTER op_snmp GET) 69 (3 snmpInBadVersions COUNTER op_snmp GET) 70 (4 snmpInBadCommunityNames COUNTER op_snmp GET) 71 (5 snmpInBadCommunityUses COUNTER op_snmp GET) 72 (6 snmpInASNParseErrs COUNTER op_snmp GET) 73 (30 snmpEnableAuthenTraps INTEGER op_snmp GET SET) 74 (31 snmpSilentDrops COUNTER op_snmp GET) 75 (32 snmpProxyDrops COUNTER op_snmp GET) 76 ) 77 )) 78 79 (4 private 80 (1 enterprises 81# 82# FreeBSD stuff 83# 84 (2238 freeBSD 85 (4 freeBSDVersion) 86 ) 87 88# 89# Private Begemot Stuff 90# 91 (12325 fokus 92 (1 begemot 93 94# 95# Daemon infrastructure 96# 97 (1 begemotSnmpd 98 (1 begemotSnmpdObjects 99 100# 101# Configuration 102# 103 (1 begemotSnmpdConfig 104 (1 begemotSnmpdTransmitBuffer INTEGER op_snmpd_config GET SET) 105 (2 begemotSnmpdReceiveBuffer INTEGER op_snmpd_config GET SET) 106 (3 begemotSnmpdCommunityDisable INTEGER op_snmpd_config GET SET) 107 (4 begemotSnmpdTrap1Addr IPADDRESS op_snmpd_config GET SET) 108 (5 begemotSnmpdVersionEnable UNSIGNED32 op_snmpd_config GET SET) 109 ) 110 (2 begemotTrapSinkTable 111 (1 begemotTrapSinkEntry : IPADDRESS INTEGER op_trapsink 112 (1 begemotTrapSinkAddr IPADDRESS) 113 (2 begemotTrapSinkPort INTEGER) 114 (3 begemotTrapSinkStatus INTEGER GET SET) 115 (4 begemotTrapSinkComm OCTETSTRING GET SET) 116 (5 begemotTrapSinkVersion INTEGER GET SET) 117 ) 118 ) 119# 120# Community table 121# 122 (5 begemotSnmpdCommunityTable 123 (1 begemotSnmpdCommunityEntry : OCTETSTRING UNSIGNED32 op_community 124 (1 begemotSnmpdCommunityModule OCTETSTRING) 125 (2 begemotSnmpdCommunityIndex UNSIGNED32) 126 (3 begemotSnmpdCommunityString OCTETSTRING GET SET) 127 (4 begemotSnmpdCommunityDescr OCTETSTRING GET) 128 (5 begemotSnmpdCommunityPermission INTEGER GET SET) 129 )) 130# 131# Module table 132# 133 (6 begemotSnmpdModuleTable 134 (1 begemotSnmpdModuleEntry : OCTETSTRING op_modules 135 (1 begemotSnmpdModuleSection OCTETSTRING) 136 (2 begemotSnmpdModulePath OCTETSTRING GET SET) 137 (3 begemotSnmpdModuleComment OCTETSTRING GET) 138 )) 139# 140# Statistics 141# 142 (7 begemotSnmpdStats 143 (1 begemotSnmpdStatsNoRxBufs COUNTER op_snmpd_stats GET) 144 (2 begemotSnmpdStatsNoTxBufs COUNTER op_snmpd_stats GET) 145 (3 begemotSnmpdStatsInTooLongPkts COUNTER op_snmpd_stats GET) 146 (4 begemotSnmpdStatsInBadPduTypes COUNTER op_snmpd_stats GET)) 147# 148# Debugging 149# 150 (8 begemotSnmpdDebug 151 (1 begemotSnmpdDebugDumpPdus INTEGER op_debug GET SET) 152 (2 begemotSnmpdDebugSnmpTrace UNSIGNED32 op_debug GET SET) 153 (3 begemotSnmpdDebugSyslogPri INTEGER op_debug GET SET)) 154 155# 156# Local (UNIX domain) port table 157# 158 (9 begemotSnmpdLocalPortTable 159 (1 begemotSnmpdLocalPortEntry : OCTETSTRING op_lsock_port 160 (1 begemotSnmpdLocalPortPath OCTETSTRING) 161 (2 begemotSnmpdLocalPortStatus INTEGER GET SET) 162 (3 begemotSnmpdLocalPortType INTEGER GET SET) 163 )) 164 165 (10 begemotSnmpdTransportMappings 166 (1 begemotSnmpdTransportTable 167 (1 begemotSnmpdTransportEntry : OCTETSTRING op_transport_table 168 (1 begemotSnmpdTransportName OCTETSTRING) 169 (2 begemotSnmpdTransportStatus INTEGER GET) 170 (3 begemotSnmpdTransportOid OID GET) 171 )) 172 (2 begemotSnmpdTransUdp OID op_transport_dummy) 173 (3 begemotSnmpdTransLsock OID op_transport_dummy) 174 (4 begemotSnmpdTransInet OID op_transport_dummy) 175 ) 176 (11 begemotSnmpdTransInetTable 177 (1 begemotSnmpdTransInetEntry : INTEGER OCTETSTRING INTEGER INTEGER op_snmp_trans_inet 178 (1 begemotSnmpdTransInetAddressType InetAddressType) 179 (2 begemotSnmpdTransInetAddress OCTETSTRING) 180 (3 begemotSnmpdTransInetPort INTEGER) 181 (4 begemotSnmpdTransInetProto BegemotSnmpdTransportProto) 182 (5 begemotSnmpdTransInetStatus RowStatus GET SET) 183 184 )) 185 ) 186 (2 begemotSnmpdDefs 187 (1 begemotSnmpdAgent 188 (1 begemotSnmpdAgentFreeBSD OID op_dummy) 189 ) 190 ) 191 (3 begemotSnmpdCompliance) 192 ) 193 )) 194 ) 195 ) 196 (6 snmpV2 197 (3 snmpModules 198 (1 snmpMIB 199 (1 snmpMIBObjects 200 (4 snmpTrap 201 (1 snmpTrapOID OID op_snmp_trap) 202 ) 203 (5 snmpTraps 204 (1 coldStart OID op_snmp_trap) 205 (2 warmStart OID op_snmp_trap) 206 (5 authenticationFailure OID op_snmp_trap) 207 ) 208 (6 snmpSet 209 (1 snmpSetSerialNo INTEGER op_snmp_set GET SET) 210 ) 211 ) 212 ) 213 (10 snmpFrameworkMIB 214 (2 snmpFrameworkMIBObjects 215 (1 snmpEngine 216 (1 snmpEngineID OCTETSTRING | SnmpEngineID op_snmp_engine GET) 217 (2 snmpEngineBoots INTEGER op_snmp_engine GET) 218 (3 snmpEngineTime INTEGER op_snmp_engine GET) 219 (4 snmpEngineMaxMessageSize INTEGER op_snmp_engine GET) 220 ) 221 ) 222 ) 223 )) 224) 225