ucdDemoPublic.conf
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:4k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  1. #*************************************************************
  2. # Define the views that the demogroup will be
  3. # restricted to.
  4. #
  5. # Format:
  6. #    view NAME TYPE SUBTREE [MASK]
  7. #
  8. view demoWrite included .1.3.6.1.4.1.2021.14.1.1
  9. view demoRead  included .1.3.6.1.4.1.2021.14.1.1
  10. view demoRead  included .1.3.6.1.2.1.1
  11. #    ---+---- 
  12. #       +---------------------------------------------------------+
  13. #                                                                 |
  14. #*************************************************************    |
  15. # Map any v1 style communities to a securityName                  |
  16. #                                                                 |
  17. # Format:                                                         |
  18. #    com2sec NAME SOURCE COMMUNITY                                |
  19. #                                                                 |
  20. com2sec v1User  default v1demopublic                              |
  21. com2sec v2cUser default demopublic                                |
  22. #       ---+---                                                   |
  23. #          +----------------------------------------------------+ |
  24. #                                                               | |
  25. #                                                               | |
  26. #************************************************************** | |
  27. # Define the demogroup users and their access models            | |
  28. #                                                               | |
  29. # Format:                                                       | |
  30. #    group NAME MODEL SECURITY                                  | |
  31. #                                                               | |
  32. #                      +----------------------------------------+ |
  33. #                     |/                                         |
  34. #                   _______                                       |
  35. group demogroup v1  v1User                                        |
  36. group demogroup v2c v2cUser                                       |
  37. #     ----+----                                                   |
  38. #         +---------------------------------------------------+   |
  39. #                                                             |   |
  40. #                                                             |   |
  41. #***********************************************************  |   |
  42. # Define views for the group                                  |   |
  43. #                                                             |   |
  44. # Format:                                                     |   |
  45. #    access NAME CONTEXT MODEL LEVEL PREFX READ WRITE NOTIFY  |   |
  46. #                                                             |   |
  47. #          +--------------------------------------------------+   | 
  48. #          |                             +--------+---------------+
  49. #         |/                           |/      |/ 
  50. #      _________                      ________ _________
  51. access demogroup "" any noauth prefix demoRead demoWrite none
  52. #
  53. # the demoUser token is supported by the examples/ucdDempPublic module
  54. #
  55. demoUser noAuthUser
  56. demoUser MD5User
  57. demoUser MD5DESUser
  58. demoUser SHAUser
  59. demoUser SHADESUser
  60. demoPass The Net-SNMP Demo Password
  61. #
  62. # more security names for demogroup
  63. #
  64. group demogroup usm noAuthUser
  65. group demogroup usm MD5User
  66. group demogroup usm SHAUser
  67. group demogroup usm MD5DESUser
  68. group demogroup usm SHADESUser
  69. #
  70. # more views for demowrite
  71. #
  72. view demowrite included .1.3.6.1.6.3.12.1.2.2.1.10.9.128.0.7.229.1.208.214.166.35.7.77.68.53.85.115.101.114
  73. view demowrite included .1.3.6.1.6.3.12.1.2.2.1.10.9.128.0.7.229.1.208.214.166.35.7.83.72.65.85.115.101.114
  74. view demowrite included .1.3.6.1.6.3.12.1.2.2.1.10.9.128.0.7.229.1.208.214.166.35.10.77.68.53.68.69.83.85.115.101.114
  75. view demowrite included .1.3.6.1.6.3.12.1.2.2.1.10.9.128.0.7.229.1.208.214.166.35.10.83.72.65.68.69.83.85.115.101.114
  76. view demowrite included .1.3.6.1.6.3.12.1.2.2.1.10.9.128.0.7.229.1.208.214.166.35.10.110.111.65.117.116.104.85.115.101.114
  77. #
  78. #
  79. # normally these would be added in /var/net-snmp/snmpd.conf (while
  80. # snmpd was not running), where they will be replaced by a local
  81. # key when the agent started up, thus providing a bit more security.
  82. #
  83. createUser noAuthUser
  84. createUser MD5User MD5 "The Net-SNMP Demo Password"
  85. createUser SHAUser SHA "The Net-SNMP Demo Password"
  86. createUser MD5DESUser MD5 "The Net-SNMP Demo Password" DES "The Net-SNMP Demo Password"
  87. createUser SHADESUser SHA "The Net-SNMP Demo Password" DES "The Net-SNMP Demo Password"