Difference between revisions of "Template:FAQ:Coding 24"

From Net-SNMP Wiki
Jump to: navigation, search
 
m (5.4 release synchronisation)
Line 1: Line 1:
 +
<!-- NB:
 +
  There is a mismatch between the template numbering
 +
  for this entry, and the FAQ entries that refer to it.
 +
  This follows a review of the entries in the
 +
  Coding section.
 +
-->
 
That doesn't matter - the routines described in <CODE>'snmp_trap_api(3)'</CODE>
 
That doesn't matter - the routines described in <CODE>'snmp_trap_api(3)'</CODE>
 
can still be used, and the subagent will Do The Right Thing.
 
can still be used, and the subagent will Do The Right Thing.

Revision as of 14:27, 29 December 2006

That doesn't matter - the routines described in 'snmp_trap_api(3)' can still be used, and the subagent will Do The Right Thing.

One of the original design aims of the AgentX support was that this should be transparent to a MIB module implementer. The agent-module interface should be independent of the protocol used to receive the original request. So the exact same MIB module code could be used within a traditional SNMP-only agent, or an AgentX subagent, with no changes needed. In fact, the main agent supplied as part of the package can indeed be run as an SNMP agent or an AgentX subagent, simply based on command line flags (or similar configuration options).