Hi,
I developed a "snmpd" application using netsnmp library and sending the
trap from sub-agent to snmpd application by using the following command
#snmptrap -v 3 -u MD5User -e 0x1020304050 -a MD5 -A "The Net-SNMP Demo
Password" -l authNoPriv 10.140.185.252 <trap oid>
While debugging , found the following error msg in snmpd application.
snmp_parse: Parsed SNMPv3 message (secName:MD5User,
secLevel:authNoPriv): USM unknown security name (no such user exists)
In my snmpd application, I don't use any USM/VACM API's to read the
following configuration. Please let me know what methods I have to use
read the configuration file.
I have the following configuration in /etc/snmp/snmpd.conf.
# cat /etc/snmp/snmpd.conf
########################################################################
#######
#
# snmpd.conf:
# An example configuration file for configuring the ucd-snmp snmpd
agent.
#
########################################################################
#######
########################################################################
#######
# User
########################################################################
#######
createUser MD5User -e 0x1020304050 MD5 "The Net-SNMP Demo Password"
########################################################################
#######
# Access Control
########################################################################
#######
####
# First, map the community name "public" into a "security name"
# sec.name source community
com2sec MD5User default v3_private
####
# Second, map the security name into a group name:
# groupName securityModel securityName
group md5_group usm MD5User
####
# 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 md5_view included .1.3.6.1.2.1.1
view md5_view 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 md5_group "" any authNoPriv exact md5_view all
all
#
------------------------------------------------------------------------
-----
Sundar
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders