[AGENT++] Net-SNMP master agent <-> AgentX++ sub agent compatibility

john.edmonds at bt.com john.edmonds at bt.com
Tue Mar 11 12:31:53 CET 2008


Hello Frank,
 
As far as I can tell the Net-SNMP workarounds are enabled, although I can't see that they are related to this particular issue.  Where in the agentX protocol code is the byte ordering determined, perhaps I can try some debugging?
 
Thanks,
John 

________________________________

From: Frank Fock [mailto:fock at agentpp.com]
Sent: Thu 28/02/2008 18:45
To: Edmonds,J,John,JGFTX C
Cc: AGENTPP at agentpp.org
Subject: Re: [AGENT++] Net-SNMP master agent <-> AgentX++ sub agent compatibility



Hello John,

The AgentX protocol requires that master as well as sub-agent can
operate on both byte orders (host and network). Thus, if it only
works when forcing the sub-agent to change its default order
then the master agent seems to have a bug.

BTW, have you enabled the NET-SNMP compatibility work-arounds
in agent++_def.h already?

Best regards,
Frank

john.edmonds at bt.com schrieb:
> Hello,
>
> I've had a little trouble getting a Net-SNMP master agent (5.4.1) talking to an AgentX++ sub agent using the AgentX protocol.  To get things working I added the line to the open_session() method below to force a change to the default byte order.  With this change everything appears to work fine, without it nothing works.... 
>
> int SubAgentXMib::open_session()
> {
>    if (session) {
>    // disconnect
>    delete session;
>    }
> session = create_session();
> // JAE - fix byte ordering for Net-SNMP master agent compatibility
> session->set_byte_order(true);
> // JAE - fix byte ordering for Net-SNMP master agent compatibility
> status = AGENTX_STATUS_CONNECT;
> return agentx->open_session(*session);
> }
> 
>
> In your experience should this change be necessary?  If not, why might it be necessary in my case? I am running on a 8248 PPC platform.
>
> 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