xref: /freebsd/contrib/bsnmp/snmpd/tree.def (revision 0957b409)
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
34include "tc.def"
35
36(1 internet
37  (2 mgmt
38    (1 mibII
39      (1 system
40#
41# The standard System group
42#
43        (1 sysDescr OCTETSTRING op_system_group GET)
44        (2 sysObjectId OID op_system_group GET)
45        (3 sysUpTime TIMETICKS op_system_group GET)
46        (4 sysContact OCTETSTRING op_system_group GET SET)
47        (5 sysName OCTETSTRING op_system_group GET SET)
48        (6 sysLocation OCTETSTRING op_system_group GET SET)
49        (7 sysServices INTEGER op_system_group GET)
50        (8 sysORLastChange TIMETICKS op_system_group GET)
51        (9 sysORTable
52          (1 sysOREntry : INTEGER op_or_table
53            (1 sysORIndex INTEGER)
54            (2 sysORID OID GET)
55            (3 sysORDescr OCTETSTRING GET)
56            (4 sysORUpTime TIMETICKS GET)
57        ))
58      )
59      (11 snmp
60        (1 snmpInPkts COUNTER op_snmp GET)
61        (3 snmpInBadVersions COUNTER op_snmp GET)
62        (4 snmpInBadCommunityNames COUNTER op_snmp GET)
63        (5 snmpInBadCommunityUses COUNTER op_snmp GET)
64        (6 snmpInASNParseErrs COUNTER op_snmp GET)
65        (30 snmpEnableAuthenTraps INTEGER op_snmp GET SET)
66        (31 snmpSilentDrops COUNTER op_snmp GET)
67        (32 snmpProxyDrops COUNTER op_snmp GET)
68      )
69  ))
70
71  (4 private
72    (1 enterprises
73#
74# FreeBSD stuff
75#
76      (2238 freeBSD
77        (4 freeBSDVersion)
78      )
79
80#
81# Private Begemot Stuff
82#
83      (12325 fokus
84        (1 begemot
85
86#
87# Daemon infrastructure
88#
89          (1 begemotSnmpd
90            (1 begemotSnmpdObjects
91
92#
93# Configuration
94#
95              (1 begemotSnmpdConfig
96                (1 begemotSnmpdTransmitBuffer INTEGER op_snmpd_config GET SET)
97                (2 begemotSnmpdReceiveBuffer INTEGER op_snmpd_config GET SET)
98                (3 begemotSnmpdCommunityDisable INTEGER op_snmpd_config GET SET)
99                (4 begemotSnmpdTrap1Addr IPADDRESS op_snmpd_config GET SET)
100                (5 begemotSnmpdVersionEnable UNSIGNED32 op_snmpd_config GET SET)
101              )
102              (2 begemotTrapSinkTable
103                (1 begemotTrapSinkEntry : IPADDRESS INTEGER op_trapsink
104                  (1 begemotTrapSinkAddr IPADDRESS)
105                  (2 begemotTrapSinkPort INTEGER)
106                  (3 begemotTrapSinkStatus INTEGER GET SET)
107                  (4 begemotTrapSinkComm OCTETSTRING GET SET)
108                  (5 begemotTrapSinkVersion INTEGER GET SET)
109                )
110              )
111#
112#	Port table
113#
114              (4 begemotSnmpdPortTable
115                (1 begemotSnmpdPortEntry : IPADDRESS INTEGER op_snmp_port
116                  (1 begemotSnmpdPortAddress IPADDRESS)
117                  (2 begemotSnmpdPortPort UNSIGNED32)
118                  (3 begemotSnmpdPortStatus INTEGER GET SET)
119              ))
120#
121#	Community table
122#
123	      (5 begemotSnmpdCommunityTable
124                (1 begemotSnmpdCommunityEntry : OCTETSTRING UNSIGNED32 op_community
125                  (1 begemotSnmpdCommunityModule OCTETSTRING)
126                  (2 begemotSnmpdCommunityIndex UNSIGNED32)
127                  (3 begemotSnmpdCommunityString OCTETSTRING GET SET)
128                  (4 begemotSnmpdCommunityDescr OCTETSTRING GET)
129                  (5 begemotSnmpdCommunityPermission INTEGER GET SET)
130              ))
131#
132#	Module table
133#
134              (6 begemotSnmpdModuleTable
135                (1 begemotSnmpdModuleEntry : OCTETSTRING op_modules
136                  (1 begemotSnmpdModuleSection OCTETSTRING)
137                  (2 begemotSnmpdModulePath OCTETSTRING GET SET)
138                  (3 begemotSnmpdModuleComment OCTETSTRING GET)
139              ))
140#
141# 	Statistics
142#
143              (7 begemotSnmpdStats
144                (1 begemotSnmpdStatsNoRxBufs COUNTER op_snmpd_stats GET)
145                (2 begemotSnmpdStatsNoTxBufs COUNTER op_snmpd_stats GET)
146                (3 begemotSnmpdStatsInTooLongPkts COUNTER op_snmpd_stats GET)
147                (4 begemotSnmpdStatsInBadPduTypes COUNTER op_snmpd_stats GET))
148#
149#	Debugging
150#
151              (8 begemotSnmpdDebug
152                (1 begemotSnmpdDebugDumpPdus INTEGER op_debug GET SET)
153                (2 begemotSnmpdDebugSnmpTrace UNSIGNED32 op_debug GET SET)
154                (3 begemotSnmpdDebugSyslogPri INTEGER op_debug GET SET))
155
156#
157#	Local (UNIX domain) port table
158#
159              (9 begemotSnmpdLocalPortTable
160                (1 begemotSnmpdLocalPortEntry : OCTETSTRING op_lsock_port
161                  (1 begemotSnmpdLocalPortPath OCTETSTRING)
162                  (2 begemotSnmpdLocalPortStatus INTEGER GET SET)
163		  (3 begemotSnmpdLocalPortType INTEGER GET SET)
164              ))
165
166              (10 begemotSnmpdTransportMappings
167                (1 begemotSnmpdTransportTable
168                  (1 begemotSnmpdTransportEntry : OCTETSTRING op_transport_table
169                    (1 begemotSnmpdTransportName OCTETSTRING)
170                    (2 begemotSnmpdTransportStatus INTEGER GET)
171                    (3 begemotSnmpdTransportOid OID GET)
172                ))
173                (2 begemotSnmpdTransUdp OID op_transport_dummy)
174                (3 begemotSnmpdTransLsock OID op_transport_dummy)
175              )
176 	    )
177            (2 begemotSnmpdDefs
178              (1 begemotSnmpdAgent
179                (1 begemotSnmpdAgentFreeBSD OID op_dummy)
180              )
181            )
182          )
183      ))
184    )
185  )
186  (6 snmpV2
187    (3 snmpModules
188      (1 snmpMIB
189        (1 snmpMIBObjects
190          (4 snmpTrap
191            (1 snmpTrapOID OID op_snmp_trap)
192          )
193          (5 snmpTraps
194            (1 coldStart OID op_snmp_trap)
195            (2 warmStart OID op_snmp_trap)
196            (5 authenticationFailure OID op_snmp_trap)
197          )
198          (6 snmpSet
199            (1 snmpSetSerialNo INTEGER op_snmp_set GET SET)
200          )
201        )
202      )
203      (10 snmpFrameworkMIB
204        (2 snmpFrameworkMIBObjects
205          (1 snmpEngine
206            (1 snmpEngineID OCTETSTRING | SnmpEngineID op_snmp_engine GET)
207            (2 snmpEngineBoots INTEGER op_snmp_engine GET)
208            (3 snmpEngineTime INTEGER op_snmp_engine GET)
209            (4 snmpEngineMaxMessageSize INTEGER op_snmp_engine GET)
210          )
211        )
212      )
213  ))
214)
215