Re: Net-snmp 5.7.3 - Issue to communicate with subAgent and Master Agent

Magnus Fromreide <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
On Sun, Feb 02, 2020 at 02:13:59PM +0100, Philippe Denis wrote:
> Hello all,
> 
> I've a problem to communicate with my subAgent through the Master Agent.
> I've used the option -Dnetsnmp_udpbase and the message is correctly
> received at master Agent level (of course, the one which send from remote
> PC or localhost).
> 
> The Master Agent is not responding to the request sent by an snmpget
> command.
> 
> The Master Agent is launched with the this command line:
> 
> 
> *snmpd -Dnetsnmp_udpbase -f -Lo -C -c /usr/share/snmp/snmpd.conf
> -agentXSocket=tcp:localhost:1705 udp:1161 -VVV*
> 
> *See attached the log of the command:*

Could you please rerun the test with the agent debug flags
-Dagentx -Dtdomain

-Dagentx logs the agentx interactions
-Dtdomain logs all opening of sockets

> *registered debug token netsnmp_udpbase, 1Log handling defined -
> disabling stderrTurning on AgentX master support.netsnmp_udpbase: open
> local UDP: [0.0.0.0]:1161->[0.0.0.0]:0netsnmp_udpbase: set
> IP_PKTINFOnetsnmp_udpbase: binding socket: 7 to UDP:
> [0.0.0.0]:0->[0.0.0.0]:1161NET-SNMP version 5.8*
> 
> Which is based on the one present in
> http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent
> 
> The content of the snmpd.conf used is the following one:
> 
> master agentx
> agentxsocket /var/agentx/master
> agentxperms 777 777
> 
> rwuser MyCom_RW
> rouser MyCom_RO
> 
> 
> For the subagent, I'm using the following command line:
> 
> *./mysubagent -f -Lo -x  tcp:localhost:1705*
> 
> 
> *snmpget -v 2c -c MyCom_RW localhost .1.3.6.1.4.1.32699.255.4.1.0Timeout:
> No Response from localhost.*
> 
> I'm quite surprise my mib is known as the snmptranslate -Tp -IR MyTestmib
> answered correctly.

This means you have told snmptranslate where the mib is located. This is good.

> I've also used net-snmp 5.8 but still have the same result.
> 
> Thanks by avdance for your help
> -- 
> Cordialement
> Ph. DENIS


> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
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.