snmpd.conf for snmpv3

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi friends,

  I have got a following snmpd.conf for snmp v3 by using snmpdconf. Is
this the correct one ? How to test it ? the tar ball i used is
net-snmp-5.3.0.1.tar.gz.

-----------------------------------------snmpd.conf begins
here--------------------------------------------------------------------
--------------------------------

########################################################################
###

# snmpd.conf

#

# - created by the snmpconf configuration program

########################################################################
####

# SECTION: Access Control Setup

#

# This section defines who is allowed to talk to your running

# snmp agent.

# rwuser: a SNMPv3 read-write user

# arguments: user [noauth|auth|priv] [restriction_oid]

rwuser raghu 

rwuser raghu1 noauth 

rwuser raghu2 priv 

rwuser raghu3 auth 

# rouser: a SNMPv3 read-only user

# arguments: user [noauth|auth|priv] [restriction_oid]

rouser raghu21 

rouser raghu22 noauth 

rouser raghu23 auth 

rouser raghu24 priv 

# rocommunity: a SNMPv1/SNMPv2c read-only access community name

# arguments: community [default|hostname|network/bits] [oid]

rocommunity broadcom1 192.168.31.111 

rocommunity brcm1 host2 

rocommunity bcm1 

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name

# arguments: community [default|hostname|network/bits] [oid]

rwcommunity broadcom 192.168.31.100 

rwcommunity brcm host1 

rwcommunity bcm 

 

 

########################################################################
###

# SECTION: Trap Destinations

#

# Here we define who the agent will send traps to.

# trapsink: A SNMPv1 trap receiver

# arguments: host [community] [portnum]

trapsink host1 bcm 20

# trap2sink: A SNMPv2c trap receiver

# arguments: host [community] [portnum]

trap2sink host1 bcm 10

trap2sink host2 

# informsink: A SNMPv2c inform (acknowledged trap) receiver

# arguments: host [community] [portnum]

informsink host1 broadcom 10

informsink host2 

# trapcommunity: Default trap sink community to use

# arguments: community-string

trapcommunity broadcom

# authtrapenable: Should we send traps when authentication failures
occur

# arguments: 1 | 2 (1 = yes, 2 = no)

authtrapenable 1

 

-----------------------------------------snmpd.conf
ends--------------------------------------------------------------------
-----------------------------------------

Regards,

Raghavendra. S
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.