Hi Dave, Thanks for correcting me that we need to register the OID/subtree with a context name.
We have a requirement that two subagents will register the same table using different context names with SNMPD. I have started a subagent which registers "table1" with "context1". With the below configuration specified in snmpd.conf, I am able to access the table1 using the context name in SNMPV3 requests. But when I send snmpv2 request using community name "public", the request is not reaching the subagent. ######################################### # community string to be given in the SNMP requests at SNMP Manager rwcommunity public master agentx #IP address on which snmptrapd/snmp Manager is listening for the traps #syslocation ECCG syscontact ECCG-SUPPORT sysservices 79 # # Directives for SubAgent communication # agentxTimeout 15 agentxRetries 0 trap2sink 10.232.92.171 rwuser user1 noAuthNoPriv .1.3.6.1 createUser user1 MD5 user123 DES com2sec -Cn context1 user1 default public group mygroup v1 user1 group mygroup v2c user1 group mygroup usm user1 view myview included .1.3.6.1 access mygroup context any noauth prefix myview myview myview ######################################### As mentioned in snmpd.conf man page, com2sec converts the community name to security name in the given context. So here, as per my understanding, the community name "public" shall be converted to security/user name "user1" which is configured. I could not find what's the reason for SNMPD not forwarding the request to subagent when snmpv2 request was given. I thought I should give context name in rwuser directive as well. So I modified rwuser directive arguments by adding context name as shown below. #########snmpd.conf########### view myview included .1.3.6.1 rwuser user1 noAuthNoPriv -V myview context1 ############################## As I mentioned in my earlier mail, following messages appeared in snmpd.log ####### /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 ################################### Please let me know the configuration changes that need to be done to access subagent's "table1" using SNMPv2 requests. Thanks for all your help. Regards, Suresh. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Tuesday, January 08, 2008 8:47 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 08/01/2008, Pamidipati Suresh-G20238 <[EMAIL PROTECTED]> wrote: > I tried to register a subtree in a specific context ("context1") using > rwuser directive as shown below, but it is not working. No - that is granting *access* to the specified context. It does not itself register any information in that context. This is handled by the code of your MIB module. > 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. Please see the FAQ entry How can I register a MIB module in a different (SNMPv3) context? http://www.net-snmp.org/wiki/index.php/FAQ:Coding_22 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