xref: /freebsd/contrib/bsnmp/snmpd/tree.def (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
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 mibII
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#	Port table
121#
122              (4 begemotSnmpdPortTable
123                (1 begemotSnmpdPortEntry : IPADDRESS INTEGER op_snmp_port
124                  (1 begemotSnmpdPortAddress IPADDRESS)
125                  (2 begemotSnmpdPortPort UNSIGNED32)
126                  (3 begemotSnmpdPortStatus INTEGER GET SET)
127              ))
128#
129#	Community table
130#
131	      (5 begemotSnmpdCommunityTable
132                (1 begemotSnmpdCommunityEntry : OCTETSTRING UNSIGNED32 op_community
133                  (1 begemotSnmpdCommunityModule OCTETSTRING)
134                  (2 begemotSnmpdCommunityIndex UNSIGNED32)
135                  (3 begemotSnmpdCommunityString OCTETSTRING GET SET)
136                  (4 begemotSnmpdCommunityDescr OCTETSTRING GET)
137                  (5 begemotSnmpdCommunityPermission INTEGER GET SET)
138              ))
139#
140#	Module table
141#
142              (6 begemotSnmpdModuleTable
143                (1 begemotSnmpdModuleEntry : OCTETSTRING op_modules
144                  (1 begemotSnmpdModuleSection OCTETSTRING)
145                  (2 begemotSnmpdModulePath OCTETSTRING GET SET)
146                  (3 begemotSnmpdModuleComment OCTETSTRING GET)
147              ))
148#
149# 	Statistics
150#
151              (7 begemotSnmpdStats
152                (1 begemotSnmpdStatsNoRxBufs COUNTER op_snmpd_stats GET)
153                (2 begemotSnmpdStatsNoTxBufs COUNTER op_snmpd_stats GET)
154                (3 begemotSnmpdStatsInTooLongPkts COUNTER op_snmpd_stats GET)
155                (4 begemotSnmpdStatsInBadPduTypes COUNTER op_snmpd_stats GET))
156#
157#	Debugging
158#
159              (8 begemotSnmpdDebug
160                (1 begemotSnmpdDebugDumpPdus INTEGER op_debug GET SET)
161                (2 begemotSnmpdDebugSnmpTrace UNSIGNED32 op_debug GET SET)
162                (3 begemotSnmpdDebugSyslogPri INTEGER op_debug GET SET))
163
164#
165#	Local (UNIX domain) port table
166#
167              (9 begemotSnmpdLocalPortTable
168                (1 begemotSnmpdLocalPortEntry : OCTETSTRING op_lsock_port
169                  (1 begemotSnmpdLocalPortPath OCTETSTRING)
170                  (2 begemotSnmpdLocalPortStatus INTEGER GET SET)
171		  (3 begemotSnmpdLocalPortType INTEGER GET SET)
172              ))
173
174              (10 begemotSnmpdTransportMappings
175                (1 begemotSnmpdTransportTable
176                  (1 begemotSnmpdTransportEntry : OCTETSTRING op_transport_table
177                    (1 begemotSnmpdTransportName OCTETSTRING)
178                    (2 begemotSnmpdTransportStatus INTEGER GET)
179                    (3 begemotSnmpdTransportOid OID GET)
180                ))
181                (2 begemotSnmpdTransUdp OID op_transport_dummy)
182                (3 begemotSnmpdTransLsock OID op_transport_dummy)
183                (4 begemotSnmpdTransInet OID op_transport_dummy)
184              )
185              (11 begemotSnmpdTransInetTable
186                (1 begemotSnmpdTransInetEntry : INTEGER OCTETSTRING INTEGER INTEGER op_snmp_trans_inet
187                  (1 begemotSnmpdTransInetAddressType InetAddressType)
188                  (2 begemotSnmpdTransInetAddress OCTETSTRING)
189                  (3 begemotSnmpdTransInetPort INTEGER)
190                  (4 begemotSnmpdTransInetProto BegemotSnmpdTransportProto)
191                  (5 begemotSnmpdTransInetStatus RowStatus GET SET)
192
193                ))
194 	    )
195            (2 begemotSnmpdDefs
196              (1 begemotSnmpdAgent
197                (1 begemotSnmpdAgentFreeBSD OID op_dummy)
198              )
199            )
200	    (3 begemotSnmpdCompliance)
201          )
202      ))
203    )
204  )
205  (6 snmpV2
206    (3 snmpModules
207      (1 snmpMIB
208        (1 snmpMIBObjects
209          (4 snmpTrap
210            (1 snmpTrapOID OID op_snmp_trap)
211          )
212          (5 snmpTraps
213            (1 coldStart OID op_snmp_trap)
214            (2 warmStart OID op_snmp_trap)
215            (5 authenticationFailure OID op_snmp_trap)
216          )
217          (6 snmpSet
218            (1 snmpSetSerialNo INTEGER op_snmp_set GET SET)
219          )
220        )
221      )
222      (10 snmpFrameworkMIB
223        (2 snmpFrameworkMIBObjects
224          (1 snmpEngine
225            (1 snmpEngineID OCTETSTRING | SnmpEngineID op_snmp_engine GET)
226            (2 snmpEngineBoots INTEGER op_snmp_engine GET)
227            (3 snmpEngineTime INTEGER op_snmp_engine GET)
228            (4 snmpEngineMaxMessageSize INTEGER op_snmp_engine GET)
229          )
230        )
231      )
232  ))
233)
234