[AGENT++] Net-SNMP master agent <-> AgentX++ sub agent compatibility
john.edmonds at bt.com
john.edmonds at bt.com
Thu Feb 28 17:04:44 CET 2008
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
More information about the AGENTPP
mailing list