xref: /freebsd/contrib/bsnmp/snmpd/tree.def (revision bb15ca603fa442c72dde3f3cb8b46db6970e3950)
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              ))
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              )
184 	    )
185            (2 begemotSnmpdDefs
186              (1 begemotSnmpdAgent
187                (1 begemotSnmpdAgentFreeBSD OID op_dummy)
188              )
189            )
190          )
191      ))
192    )
193  )
194  (6 snmpV2
195    (3 snmpModules
196      (1 snmpMIB
197        (1 snmpMIBObjects
198          (4 snmpTrap
199            (1 snmpTrapOID OID op_snmp_trap)
200          )
201          (5 snmpTraps
202            (1 coldStart OID op_snmp_trap)
203            (2 warmStart OID op_snmp_trap)
204            (5 authenticationFailure OID op_snmp_trap)
205          )
206          (6 snmpSet
207            (1 snmpSetSerialNo INTEGER op_snmp_set GET SET)
208          )
209        )
210      )
211      (10 snmpFrameworkMIB
212        (2 snmpFrameworkMIBObjects
213          (1 snmpEngine
214            (1 snmpEngineID OCTETSTRING | SnmpEngineID op_snmp_engine GET)
215            (2 snmpEngineBoots INTEGER op_snmp_engine GET)
216            (3 snmpEngineTime INTEGER op_snmp_engine GET)
217            (4 snmpEngineMaxMessageSize INTEGER op_snmp_engine GET)
218          )
219        )
220      )
221  ))
222)
223