/contrib/bsnmp/snmp_target/target_tree.def

https://bitbucket.org/freebsd/freebsd-head/ · Module-Definition · 104 lines · 100 code · 4 blank · 0 comment · 0 complexity · 55e060822e2ce69ef4e5f82184e5b9c8 MD5 · raw file

  1. #-
  2. # Copyright (C) 2010 The FreeBSD Foundation
  3. # All rights reserved.
  4. #
  5. # This software was developed by Shteryana Sotirova Shopova under
  6. # sponsorship from the FreeBSD Foundation.
  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. # $FreeBSD$
  30. #
  31. #include "tc.def"
  32. typedef RowStatus ENUM (
  33. 1 active
  34. 2 notInService
  35. 3 notReady
  36. 4 createAndGo
  37. 5 createAndWait
  38. 6 destroy
  39. )
  40. typedef StorageType ENUM (
  41. 1 other
  42. 2 volatile
  43. 3 nonVolatile
  44. 4 permanent
  45. 5 readOnly
  46. )
  47. (1 internet
  48. (6 snmpV2
  49. (1 snmpDomains
  50. (1 snmpUDPDomain
  51. )
  52. )
  53. (3 snmpModules
  54. (12 snmpTargetMIB
  55. (1 snmpTargetObjects
  56. (1 snmpTargetSpinLock INTEGER op_snmp_target GET SET)
  57. (2 snmpTargetAddrTable
  58. (1 snmpTargetAddrEntry : OCTETSTRING op_snmp_target_addrs
  59. (1 snmpTargetAddrName OCTETSTRING)
  60. (2 snmpTargetAddrTDomain OID GET SET)
  61. (3 snmpTargetAddrTAddress OCTETSTRING | TAddress GET SET)
  62. (4 snmpTargetAddrTimeout INTEGER GET SET)
  63. (5 snmpTargetAddrRetryCount INTEGER GET SET)
  64. (6 snmpTargetAddrTagList OCTETSTRING | SnmpTagList GET SET)
  65. (7 snmpTargetAddrParams OCTETSTRING GET SET)
  66. (8 snmpTargetAddrStorageType StorageType GET SET)
  67. (9 snmpTargetAddrRowStatus RowStatus GET SET)
  68. )
  69. )
  70. (3 snmpTargetParamsTable
  71. (1 snmpTargetParamsEntry : OCTETSTRING op_snmp_target_params
  72. (1 snmpTargetParamsName OCTETSTRING)
  73. (2 snmpTargetParamsMPModel INTEGER GET SET)
  74. (3 snmpTargetParamsSecurityModel INTEGER GET SET)
  75. (4 snmpTargetParamsSecurityName OCTETSTRING | SnmpAdminString GET SET)
  76. (5 snmpTargetParamsSecurityLevel ENUM ( 1 noAuthNoPriv 2 authNoPriv 3 authPriv ) GET SET)
  77. (6 snmpTargetParamsStorageType StorageType GET SET)
  78. (7 snmpTargetParamsRowStatus RowStatus GET SET)
  79. )
  80. )
  81. (4 snmpUnavailableContexts COUNTER op_snmp_target GET)
  82. (5 snmpUnknownContexts COUNTER op_snmp_target GET)
  83. )
  84. )
  85. (13 snmpNotificationMIB
  86. (1 snmpNotifyObjects
  87. (1 snmpNotifyTable
  88. (1 snmpNotifyEntry : OCTETSTRING op_snmp_notify
  89. (1 snmpNotifyName OCTETSTRING)
  90. (2 snmpNotifyTag OCTETSTRING | SnmpTagValue GET SET)
  91. (3 snmpNotifyType ENUM ( 1 trap 2 inform ) GET SET)
  92. (4 snmpNotifyStorageType StorageType GET SET)
  93. (5 snmpNotifyRowStatus RowStatus GET SET)
  94. )
  95. )
  96. )
  97. )
  98. )
  99. )
  100. )