/contrib/bsnmp/snmpd/tree.def

https://bitbucket.org/freebsd/freebsd-head/ · Module-Definition · 222 lines · 213 code · 9 blank · 0 comment · 1 complexity · 61ab2713037969465c3b3c79a605afcf MD5 · raw file

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