Hi,

 

Please let me know the net-snmp APIs to read the below configuration
from /etc/snmp/snmpd.conf file.

 

#cat /etc/snmp/snmpd.conf

createUser MD5User MD5 "The Net-SNMP Demo Password"

 

####

# 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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
  • USM APIs sundararaman.dheivanayagam

Reply via email to