All pastes #932862 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-07 23:45 UTC
rendered paste body
####
# First, map the community name to a "security name"

#       sec.name       source     community
com2sec rwUser        default    praseed
com2sec roUser        default    public

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

#      groupName   securityModel  securityName
group   rwGroup         v2c        rwUser
group   roGroup         v2c        roUser


####
# 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
access  rwGroup    ""       any       noauth     exact  systemview   systemview
access  roGroup    ""       any       noauth     exact  systemview   none


###############################################################################
# System contact information
#

# It is also possible to set the sysContact and sysLocation system
# variables through the snmpd.conf file:

sysDescr       WiMAX
syslocation    Praseed
sysContact     xxx@praseed.com

#  See the snmpd.conf manual page, and the output of "snmpd -H".


createUser   internal
agentSecName internal
rouser       internal

rocommunity  public
rwcommunity  praseed

notificationEvent  linkUpTrap    ".1.3.6.1.6.3.1.1.5.4"  ".1.3.6.1.2.1.2.2.1.1"
notificationEvent  linkDownTrap  ".1.3.6.1.6.3.1.1.5.3"  ".1.3.6.1.2.1.2.2.1.1"
monitor  -r 2 -e linkUpTrap   "Generate linkUp"   ".1.3.6.1.2.1.2.2.1.8" != 2
monitor  -r 2 -e linkDownTrap "Generate linkDown" ".1.3.6.1.2.1.2.2.1.8" == 2