All pastes #804547 Raw Edit

snmpd

public text v1 · immutable
·published 2007-12-03 15:54 UTC
rendered paste body
####
# allow all from localhost
rocommunity public 127.0.0.1

####
# First, map the community name "password" into a "security name"

#       sec.name  source          community
com2sec notConfigUser  default       password

####
# 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.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.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