7.1 Code Generation Benefits with AgenPro & AGENT++
The following benefits are specific to the code generation for AGENT++:
Automatically generates a SNMP agent from MIB modules.
Transparently provides SNMPv1/v2c/v3 functionality.
Ensures correct implementation of multiple indexes, table ordering, row status and storage type textual conventions, variable constraints, access rules, and notifications.
Generates notification objects which allow sending a trap with a single method call while checking that columnar objects are sent with fully qualified index information and all required variables are provided.
MIB changes can be easily applied to an existing agent implementation. The agent is simply regenerated and recompiled. Existing instrumentation code is preserved.
No need for special (non SMI) tags in the MIB files. Thus, any SMI conform MIB can be used directly for code generation. The configuration can be entirely stored in project files.
AgenPro can be run from command line for integration with your build process.
When generating code for AGENT++ 4.0 or later, after the source files have been generated the following shell commands have to be executed on the command line in the agent++ directory:
autoconf -i
./configure
Of course you can add options to the configure command as needed. Running those commands make sure, that the newly generated files are included in the Makefiles of the agenpro directory.