RE: snmpv3 problem when configured for view....

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

 

Group directive does mapping the Group name to Security name.  But you
have used other securityname (readable) and trying query with raghu. I
hope you know that security name is same as the v3 user-name.

 

ie you should have the following entry in your snmpd.conf 

 

group   mygroup        usm      raghu

 

Thanks,

Mahesh

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Wednesday, April 12, 2006 5:59 PM
To: [email protected]
Subject: snmpv3 problem when configured for view....

 

Hi All,

 

    I am using net-snmp-5.3.0.1. my /usr/local/share/snmp/snmpd.conf
file has following configuration

 

#-----------------snmpd.conf file begins-----------------------   

 

#         viewname    incl/excl          OID

 view    test-view     included          system

 

#       groupName      securityModel securityName
group   mygroup        usm            readable

 

#       group   context sec.model sec.level prefix read   write  notify
access  mygroup ""      usm       auth    exact  test-view    none
none

 

#user configuration
authuser read raghu  auth -v test-view

#-----------------snmpd.conf file ends-----------------------   

 

my /var/net-snmp/snmpd.conf has following line

createUser raghu MD5 testraghu DES testraghu

 

which ofcourse gets encrypted after enabling snmpd(which is enabled on
192.168.31.14). The problem that I have here is I am doing snmpget which
is not giving the expected output. I am executing snmpget from
192.168.31.199. command and output as goes below.

 

snmpget -v 3 -u raghu -l authNoPriv -a MD5 -A testraghu 192.168.31.14
sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = No Such Object available on this
agent at this OID

Can any one tell me what is wrong in this configuration file. If I
remove -v test-view from user it works fine but it does not serve any
purpose.

 

 

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.