The Visual xAgentBuilder® evaluation demonstrates the speed and ease with which you can create an SNMP agent from a MIB file.
Open Microsoft Visual C++ (this page is for Visual Studio 6, please click here for Visual Studio .NET).
We will examine how to create an example agent with Visual xAgentBuilder for C++ using the example MIB, NDGarage.mib packaged with the product.
You should see the following window:
The following window appears:
This wizard page describes the current application settings for the xAgentBuilder project that you are creating.
If you want to use configuration parameters from another xAgentBuilder project, click on the Read settings ... button and select an xAgentBuilder configuration file. After this action you can click the Finish button, and the project will be created using the loaded parameters. Or, you can first adjust the settings to fit your requirements using the following steps.
In this step we can select the type of agent project that we want to create. By default both the ExtensionDLL and Console style is selected. The Static lib is greyed out and shown as selected. The Static lib project is in fact the place where instrumentation will be created. Both the ExtensionDLL and Console projects simply add some "boiler plate" code and link to the static library. Further information is available in the "Understanding Projects and Files Created by Visual xAgentBuilder for C++" topic in this applications help file.
If the HTML check box is selected (which is default) a set of web pages will be generated for this agent.
In this step you can select whether you want to add proxy support to the agent. Proxy support can only be added to the standalone agent, so standalone (Console) agent must be seleted in the previous step. Code for the proxy will be added conditionally. You can choose this option now, and later recompile your project with ND_SNMPv3_PROXY macro undefined to remove proxy support from the agent.
Click the button and the Load MIB File dialog appears. Select NDGarage.mib (in the MIBS directory) and click OK.
Here you can select default values for the MIB objects that will be implemented in the agent.
|Introduction||Visual MIBuilder||Visual xAgentBuilder||Visual MIBrowser|