[AGENT++] Access to parent or sibling MIB OIDs from an AgentX subagent
MATTY, Steven
steven.matty at astrium.eads.net
Wed Feb 18 10:40:33 CET 2015
Hi
I am in the process of converting a single, large monolithic SNMP Agent to a distributed Master/SubAgent AgentX++ model.
We use AgenPro to generate our MIB code. Some MIB elements have validation in their respective OIDs' value_ok() methods which reference elements in other (currently linked into the same executable) MIBs, e.g.
Setting mibA.name will check the value of mibB.name to check they are not identical :
bool mibA_name::value_ok(const Vbx& vb)
{
bool result=true;
char *valueB = mibB_name::instance->get_state().get_printable();
// The value cannot be the same as the value of name in mibB
if(strcmp(valueB, vb.get_printable()==0)
{
result=false;
}
return result;
}
So, my question is - using the AgentX++ Master/SubAgent model, can a SubAgent access OIDs from elsewhere in the MIB, without resorting to executing snmp get ...
Regards
Steve
This email (including any attachments) may contain confidential
and/or privileged information or information otherwise protected
from disclosure. If you are not the intended recipient, please
notify the sender immediately, do not copy this message or any
attachments and do not use it for any purpose or disclose its
content to any person, but delete this message and any attachments
from your system. Airbus Defence and Space Limited disclaims any and all liability if this email transmission was virus corrupted,
altered or falsified.
-o-
Airbus Defence and Space Limited, Registered in England and Wales No. 2449259
Registered Office:
Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England
More information about the AGENTPP
mailing list