RE: Foraward SNMP requests from Agentx Master to Agentx Subagent

Nadia Bibbs <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <6329B957BA5C514DBF5FBED87A88388202462B5BBE@spswchi6mail1.peak6.net>
So I have read in some previous threads that agentX is not supported by UDP so I have switched over to tcp.  But now when I run the following command:

./snmpget -v 2c -r 0 -c 'community' tcp:'ip':11161 NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 -d

I get this error:

Error in packet
Reason: (genError) A general failure occured
Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0

I can see the master receiving the get request then forwarded to the subagent.  The subagent processes and responds to the master.  It doesn't appear to have any errors, but the above error is printed from the get command.  Any ideas?  Thanks for your help.



-----Original Message-----
From: Nadia Bibbs [mailto:[email protected]] 
Sent: Wednesday, April 28, 2010 2:01 PM
To: 'Mike Ayers'; [email protected]
Subject: RE: Foraward SNMP requests from Agentx Master to Agentx Subagent

I believe it is setup correctly with the UDP, because I can see the pings go back and forth between agent and subagent.  
Here are my configurations:

snmpd agent:
master        agentx
agentAddress  udp:'local ip address':11161
agentXScoket  udp:'local ip address':10161

trap2sink     udp:'local ip address':11162


subagent:
agentAddress  udp:'local ip address':11161
agentXSocket  udp:'local ip address':10161
agentXPingInterval  60


The snmpd and the subagent are running on the same ip address as well.  

-----Original Message-----
From: Mike Ayers [mailto:[email protected]] 
Sent: Wednesday, April 28, 2010 1:29 PM
To: Nadia Bibbs; [email protected]
Subject: RE: Foraward SNMP requests from Agentx Master to Agentx Subagent

> From: Nadia Bibbs [mailto:[email protected]]
> Sent: Monday, April 26, 2010 7:29 AM

> I am running an agentx master and an agentx subagent on linux. When I
> run snmpget on a default MIB i.e. sysdescr.0 it returns fine, but when
> I request for a MIB that was registered through the agentx subagent it
> timesout. It appears that the master receives the GET request but does
> not forward on to the agentx subagent. The MIB is registered
> successfully but when master agentx receives the GET request it saying
> "Sending 60 bytes to UDP: unknown". It can't find the location to
> forward to.

	UDP?!  Did you configure a UDP AgentX listener?  AgentX by default listens on a unix domain socket for unix class hosts and TCP port 705 for Windows hosts.  Did you perhaps set up a proxy for the subagent's domain or a parent in snmpd.conf?  I don't believe a subagent would override that.


	HTH,

Mike


______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.