Hi Dave,

Thanks for your reply.

I tried to register a subtree in a specific context ("context1") using
rwuser directive as shown below, but it is not working.

###############################
view myview included .1.3.6.1
rwuser user1 noAuthNoPriv -V myview context1
createUser user1 MD5 user123 DES

group mygroup v1 user1
group mygroup v2c user1
group mygroup usm user1
access mygroup context any noauth prefix myview myview myview
###############################

When SNMPD was started, following messages appeared in
/var/log/snmpd.log

Turning on AgentX master support.
/usr/share/snmp//snmpd.conf: line 18: Error: bad SUBTREE object id
net-snmp: 1 error(s) in config file(s)
NET-SNMP version 5.2.2

Actually the man page of snmpd.conf in Net-snmp-5.2.2 version does not
show -V VIEW [CONTEXT] in rwuser directive syntax. But this syntax is
seen in man page at
http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html

I even tried by replacing rwuser command with the following line, but
again the same messages were logged in snmpd.log.

##########################
rwuser user1 noAuthNoPriv .1.3.6.1 context1
##########################


Can you please tell me how to register a subtree in a specific context
so that I can access the OIDs in that subtree with the context name in
the request.? Any information on this will be so helpful.

Thanks and Regards,
Suresh.




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Monday, January 07, 2008 9:42 PM
To: Pamidipati Suresh-G20238
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: SNMPD not responding when a context name is given in the
request


On 07/01/2008, Pamidipati Suresh-G20238 <[EMAIL PROTECTED]>
wrote:
> Following are the directives/lines added in snmpd.conf for snmpv3 
> configuration.
>
> #########################################
> rwuser user1 noAuthNoPriv 1
> createUser user1 MD5 user123 DES

> access mygroup context any noauth prefix myview myview myview 
> ##########################################

That config should allow access with any context of the form
        context{something}


> Following is the output of snmpwalk command.
>
> # snmpwalk -v 3 -u user1 -l noAuthNoPriv -r 0 -t 10 -n "context1" -m 
> /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt localhost nsModuleEntry 
> NET-SNMP-AGENT-MIB::nsModuleEntry = No more variables left in this MIB

> View (It is past the end of the MIB tree)

The agent is responding to the request.
That means that your access config settings are working correctly. If
the agent didn't recognise the context, it wouldn't report 'endOfMib'

It looks as if there isn't anything registered under that particular
subtree in this context.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to