Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. #
  2. # First, map the community name "public" into a "security name"
  3. #
  4.  
  5. #
  6. # sec.name source community
  7. #
  8. com2sec local localhost mycom
  9. com2sec vmnet 192.168.48.0/24 mycom
  10.  
  11. #
  12.  
  13. #
  14. ####
  15. #
  16. # Second, map the security name into a group name:
  17. #
  18.  
  19. #
  20. # groupName securityModel securityName
  21. #
  22. group mygrp v1 local
  23. #
  24. group vmgrp v2c vmnet
  25. #
  26.  
  27. #
  28. ####
  29. #
  30. # Third, create a view for us to let the group have rights to:
  31. #
  32.  
  33. #
  34. # Make at least snmpwalk -v 1 localhost -c public system fast again.
  35. #
  36. # name incl/excl subtree mask(optional)
  37. #
  38. view allmibs included .1
  39. #
  40.  
  41. #
  42. ####
  43. #
  44. # Finally, grant the group read-only access to the systemview view.
  45. #
  46.  
  47. #
  48. # group context sec.model sec.level prefix read write notif
  49. #
  50. access mygrp "" any noauth exact allmibs none none
  51. access vmgrp "" any noauth exact allmibs none none
  52. #
  53.  
  54. #
  55.  
  56. #
  57.  
  58. #
  59.  
  60. #
  61. ###############################################################################
  62. #
  63. # System contact information
  64. #
  65. #
  66. #
  67.  
  68. #
  69. # It is also possible to set the sysContact and sysLocation system
  70. #
  71. # variables through the snmpd.conf file:
  72. #
  73.  
  74. #
  75. syslocation Nepal (edit /etc/snmp/snmpd.conf)
  76. #
  77. syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement