snmp.acl.template 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # ----------------------------------------------------------------------
  2. # Template for SNMP Access Control List File
  3. #
  4. # o Copy this template to snmp.acl
  5. # o Set access control for SNMP support
  6. # o Change the permission of snmp.acl to be read-only
  7. # by the owner.
  8. #
  9. # See below for the location of snmp.acl file.
  10. # ----------------------------------------------------------------------
  11. ############################################################
  12. # SNMP Access Control List File
  13. ############################################################
  14. #
  15. # Default location of this file is $JRE/lib/management/snmp.acl.
  16. # You can specify an alternate location by specifying a property in
  17. # the management config file $JRE/lib/management/management.properties
  18. # or by specifying a system property (See that file for details).
  19. #
  20. ##############################################################
  21. # File permissions of the snmp.acl file
  22. ##############################################################
  23. #
  24. # Since there are cleartext community strings stored in this file,
  25. # this ACL file must be readable by ONLY the owner,
  26. # otherwise the program will exit with an error.
  27. #
  28. ##############################################################
  29. # Format of the acl group
  30. ##############################################################
  31. #
  32. # communities: a list of SNMP community strings to which the
  33. # access control applies separated by commas.
  34. #
  35. # access: either "read-only" or "read-write".
  36. #
  37. # managers: a list of hosts to be granted the access rights.
  38. # Each can be expressed as any one of the following:
  39. # - hostname: hubble
  40. # - ip v4 and v6 addresses: 123.456.789.12 , fe80::a00:20ff:fe9b:ea82
  41. # - ip v4 and v6 netmask prefix notation: 123.456.789.0/24,
  42. # fe80::a00:20ff:fe9b:ea82/64
  43. # see RFC 2373 (http://www.ietf.org/rfc/rfc2373.txt)
  44. #
  45. # An example of two community groups for multiple hosts:
  46. # acl = {
  47. # {
  48. # communities = public, private
  49. # access = read-only
  50. # managers = hubble, snowbell, nanak
  51. # }
  52. # {
  53. # communities = jerry
  54. # access = read-write
  55. # managers = hubble, telescope
  56. # }
  57. # }
  58. #
  59. ##############################################################
  60. # Format of the trap group
  61. ##############################################################
  62. #
  63. # trap-community: a single SNMP community string that will be included
  64. # in the traps sent to the hosts.
  65. #
  66. # hosts: a list of hosts to which the SNMP agent will send traps.
  67. #
  68. # An example of two trap community definitions for multiple hosts:
  69. # trap = {
  70. # {
  71. # trap-community = public
  72. # hosts = hubble, snowbell
  73. # }
  74. # {
  75. # trap-community = private
  76. # hosts = telescope
  77. # }
  78. # }
  79. #
  80. ############################################################
  81. #
  82. # Update the community strings (public and private) below
  83. # before copying this template file
  84. #
  85. # Common SNMP ACL Example
  86. # ------------------------
  87. #
  88. # o Only localhost can connect, and access rights
  89. # are limited to read-only
  90. # o Traps are sent to localhost only
  91. #
  92. #
  93. # acl = {
  94. # {
  95. # communities = public, private
  96. # access = read-only
  97. # managers = localhost
  98. # }
  99. # }
  100. #
  101. #
  102. # trap = {
  103. # {
  104. # trap-community = public
  105. # hosts = localhost
  106. # }
  107. # }