[AGENT++] Net-SNMP master agent <-> AgentX++ sub agent compatibility
Frank Fock
fock at agentpp.com
Thu Feb 28 19:45:57 CET 2008
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