Re: Master Agent not communicating with sub-agent
On Wed, 25 May 2005 11:19:42 +0100 Dave wrote: DS Dave Wes - can you recall why the AgentX registration handling uses the DS Dave 'community' field of the PDU structure? Was it just Shield DS stupidity Dave again? DS DS wassnat me! DS I don't know. DS DS OK - so we'll put it down to a Shield cock-up then. I'm guessing that the contextName field is new, and didn't exist when you wrote the code. -- Robert Story; NET-SNMP Junkie Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users You are lost in a twisty maze of little standards, all different. --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20 ___ 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
Re: Master Agent not communicating with sub-agent
On Wed, 2005-05-25 at 08:36, Eyal Schneider wrote: a) Trying to get system.sysUpTime.0 works correctly b) snmpwalk on tcpConnTable returns many rows (I don't know what to check there) That's fine - if it returns *anything*, then the access control is probably OK. c) The subagent registers correctly but does not receive any request afterwards OK - now try the same request that Wes suggested - snmpwalk . NET-SNMP-AGENT-MIB::nsModuleTable What are the entries relating to .1.3.6.1.4.1.1331.11.3 ? Do they mention public or not? Dave --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ 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
Re: Master Agent not communicating with sub-agent
Dave Wes - can you recall why the AgentX registration handling uses the Dave 'community' field of the PDU structure? Was it just Shield stupidity Dave again? wassnat me! I don't know. OK - so we'll put it down to a Shield cock-up then. I know that I didn't get to grips with SNMPv3 contexts until long after the initial AgentX implementation. Dave What would be the implications of switching to use the Dave 'contextName' field instead? I doubt you could switch Why not? The lowest level API for registering (or unregistering) an AgentX MIB region is agentx_register (or agentx_unregister) which takes the context as a parameter. It's the internals of this routine that copies it into the community field rather than contextName. And then the agentX protocol routines use this to build the agentX header, which is internal again. At the other end, the agentX protocol routines parse this header and insert the context value into the community field. This is then used as a parameter to the MIB registry routines. When sending a GET* request, the master agent copies the MIB registration context string to the AgentX PDU community field before sending it (using the same agentX header protocol routines again). And the only other place where community appears is in the client-side handling of incoming requests, where the community string is explicitly moved to the 'contextName' field, before passing the request off to the main (sub)agent handling code. Explicitly correcting this mistake! So everywhere that this field is used is internal processing. I don't see where fixing this might break any user-visible behaviour. What have I missed? Dave --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ 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
Re: Master Agent not communicating with sub-agent
OK - now try the same request that Wes suggested - snmpwalk . NET-SNMP-AGENT-MIB::nsModuleTable What are the entries relating to .1.3.6.1.4.1.1331.11.3 ? Do they mention public or not? Dave The public is not mentioned now: ... NET-SNMP-AGENT-MIB::nsModuleName..9.1.3.6.1.4.1.1331.11.3.127 = STRING: AgentX subagent 6, session 00A0D0B0, subsession 00A0D200 ... NET-SNMP-AGENT-MIB::nsModuleModes..9.1.3.6.1.4.1.1331.11.3.127 = BITS: E0 getAndGetNext(0) set(1) getBulk(2) ... NET-SNMP-AGENT-MIB::nsModuleTimeout..9.1.3.6.1.4.1.1331.11.3.127 = INTEGER: 3 ... After spending too much time on j.agentX, I decided to try implementing the subagent with the JAX library (which by the way works on TCP rather than UDP). JAX works fine with net-snmp, and the subagent is activated by the net-snmp master agent when it is expected to. So right now i'm not stuck anymore. Thanks a lot for your time, Wes Dave! Eyal. --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ 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
Re: Master Agent not communicating with sub-agent
Wes Can you walk the nsModuleTable to see if it got registered? The registration was done with OID 1.3.6.1.4.1.1331.11.3 and community string public, and the walk seems to indicate that the new object IS registered: ... NET-SNMP-AGENT-MIB::nsModuleName.public.9.1.3.6.1.4.1.1331.11.3.127 = STRING: AgentX subagent 6, session 00A0DFD8, sub session 00A0E128 ... NET-SNMP-AGENT-MIB::nsModuleModes.public.9.1.3.6.1.4.1.1331.11.3.127 = BITS: E0 getAndGetNext(0) set(1) getBulk(2) ... NET-SNMP-AGENT-MIB::nsModuleTimeout.public.9.1.3.6.1.4.1.1331.11.3.127 = INTEGER: 3 ... Then I try a GET command: snmpget -c public -v 2c localhost 1.3.6.1.4.1.1331.11.3.1.0 And the response is: SNMPv2-SMI::enterprises.1331.11.3.1.0 = No Such Object available on this agent at this OID What is going wrong? Thanks again, Eyal. --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12alloc_id344op=click ___ 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
Re: Master Agent not communicating with sub-agent
On Mon, 2005-05-23 at 16:34, Eyal Schneider wrote: However, when I send a GET command to the master agent, it is never forwarded to the sub agent. What are the access control settings on the master agent? Dave --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click ___ 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
Re: Master Agent not communicating with sub-agent
Dave What are the access control settings on the master agent? I only defined a community string in the master agent. The snmpd.conf is : rwcommunity public syslocation localhost master agentx Eyal. --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_idt12alloc_id344op=click ___ 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
Re: Master Agent not communicating with sub-agent
On Tue, 2005-05-24 at 09:47, Eyal Schneider wrote: Wes Can you walk the nsModuleTable to see if it got registered? The registration was done with OID 1.3.6.1.4.1.1331.11.3 and community string public, Urk! That's where the problem lies, I think. I *though* it was odd that you'd talked about community strings in the context of AgentX registrations. NET-SNMP-AGENT-MIB::nsModuleName.public.9.1.3.6.1.4.1.1331.11.3.127 Your subagent has registered this table in the (non-default) context public, which is a completely different idea to the community string used to control access. Try removing mention of public from the AgentX registration call (so it uses the default context), and see if that's any better. Wes - can you recall why the AgentX registration handling uses the 'community' field of the PDU structure? Was it just Shield stupidity again? What would be the implications of switching to use the 'contextName' field instead? Dave --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click ___ 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
Re: Master Agent not communicating with sub-agent
Dave Your subagent has registered this table in the (non-default) context Dave public, which is a completely different idea to the community string Dave used to control access. Dave Try removing mention of public from the AgentX registration call Dave (so it uses the default context), and see if that's any better. When I do so I get Timeout: No Response from localhost. The master agent seems to ignore the call. If I understand correctly, the snmpget command (v2c v1) must receive a community string. I use public. Maybe the master agent decides that the request is not authorized. The J.agentX API registration call I'm using takes the OID, context and priority as arguments. The documentation says that one can use the community string as the context. Everything works fine when registering a J.agentX subagent to a J.agentX master agent, but I need J.agentX to Net-snmp integration. Any help will be appreciated. Eyal. --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ 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
Re: Master Agent not communicating with sub-agent
On Tue, 2005-05-24 at 15:41, Eyal Schneider wrote: Dave Try removing mention of public from the AgentX registration call Dave (so it uses the default context), and see if that's any better. When I do so I get Timeout: No Response from localhost. The master agent seems to ignore the call. That feels like access control again. Can you retrieve *anything* from the master agent? If I understand correctly, the snmpget command (v2c v1) must receive a community string. Yes - that's correct. I wasn't intending that you drop public from the snmpget request - just from the AgentX registration. The J.agentX API registration call I'm using takes the OID, context and priority as arguments. nods Pretty much standard. The documentation says that one can use the community string as the context. Ah - that's a difference from our setup then. You *can* configure the Net-SNMP master agent to handle non-default contexts, but it needs a bit more fiddling. The bottom line is that SNMPv3/AgentX contexts and SNMPv1/2c communities are distinct ideas, and it's not safe to assume a mapping from one to the other. Let's make sure we're clear about what you should be trying. - the J.agentX subagent should register with a context (/community) of - the Net-SNMP master agent should have a config including rocommunity public - the snmpget/snmpwalk/etc commands should specify -v 1 -c public With this setup: a) Can you see anything in the system group? b) Can you see anything in the tcpConnTable? c) Can you see anything from your J.agentX subagent? Dave --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ 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
Re: Master Agent not communicating with sub-agent
On Mon, 23 May 2005 18:34:04 +0300, Eyal Schneider [EMAIL PROTECTED] said: Eyal However, when I send a GET command to the master agent, it is never Eyal forwarded to the sub agent. Eyal Did I miss some configuration? Can you walk the nsModuleTable to see if it got registered? -- Wes Hardaker Sparta, Inc. --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click ___ 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