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