[AGENT++] AgentX++ subagent and net-snmp

john.edmonds at bt.com john.edmonds at bt.com
Tue Dec 18 15:52:27 CET 2007


Thanks Frank,
 
I tried changing the initial byte order of Agent++ and a limited message exchanged took place between net-snmp and the AgentX++ subagent.  The net-snmp master agent appears to respond to the "index allocate PDU", but not to the subsequent "register PDU" for my shared table implementation.
 
The reason for trying to connect my agentX++ subagent to the net-snmp master is that net-snmp comes pre-built for our PowerPC linux platform with a fair amount of standard MIB support, MIB-II, IP-MIB, IF-MIB, TCP-MIB, UDP-MIB, HOST-RESOURCES, UCD-DLMOD-MIB etc...etc... hence avoiding the need for me to implement support for these MIBs.  Please correct me if I'm wrong, but as far as I know there is no standard MIB support for linux supplied with Agent++?   Is Agent++ support for standard MIBs under linux available?
 
I am trying to cross compile the latest net-snmp release to try, but no luck getting the cross compile to build successfully so far.
 
Best regards,
John Edmonds
 
 
 

________________________________

From: fock at agentpp.com [mailto:fock at agentpp.com]
Sent: Thu 13/12/2007 13:35
To: agentpp at agentpp.org; Edmonds,J,John,JGFTX C
Subject: RE: [AGENT++] AgentX++ subagent and net-snmp



Hi John,

The endianess is managed by the AgentX protocol.
The NET-SNMP subagent has several bugs (especially
that old version). See the agentx_def.h file for
hints to activate workarounds.

A big problem is NET-SNMP on 64bit linux,
for example it encodes an IP address as
8 bytes although it should have been four
only (a wrong packet length is the result).

Best regards,
Frank


Hi,

I'm attempting to get an AgentX++ subagent to operate with snmpd on a linux
platform (Montavista-PowerPC).  I've had the AgentX++ subagent operating
successfully with an AgentX++ master agent.  I can see that they appear to be
using a local TCP:705 socket to communicate.

I'm wondering if I have an endian problem when I try to run snmpd instead of
the agentX++ master agent, as I get the maximum packet size error show below,
and snmpd aborts.  The subagent indicates a broken connection to the master
agent....

./snmpd -Le -x 0.0.0.0:705 -Ddump

UCD-SNMP version 4.2.6
dumpx_recv:00 00 00 14
dumpv_recv:  Integer:   335544320 (0x14000000)
Maximum packet size exceeded in a request.

Can the endianness of the AgentX++ sub agent comms be swapped easily to test
this?

Best regards,

John Edmonds








_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://lists.agentpp.org/mailman/listinfo/agentpp





More information about the AGENTPP mailing list