All pastes #876581 Raw Copy code Copy link Edit

Something

public text v1 · immutable
#876581 ·published 2008-01-28 22:08 UTC
rendered paste body
####
# First, map the community name "public" into a "security name"

#       sec.name  source          community
com2sec notConfigUser  default      public

####
# Second, map the security name into a group name:

#       groupName      securityModel securityName
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

####
# Third, create a view for us to let the group have rights to:

# Make at least  snmpwalk -v 1 localhost -c public system fast again.
#       name           incl/excl     subtree         mask(optional)
view    systemview    included   .1

####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write  notif
access  notConfigGroup ""      any       noauth    exact  systemview none none