The demo_module_9 code is located by default in /usr/demo/sma_snmp/demo_module_9. The README_demo_module_9 file within that directory contains instructions that describe how to perform the following tasks:
Compile source files to generate a shared library object that implements a module
Set up the agent to dynamically load the module
Test the module with snmp commands to show that the module is functioning as expected
The demo_module_9 example implements the objects defined in the SDK-DEMO9-MIB.txt. The module demonstrates how to implement objects that normally would block the agent as the agent waits for external events. The agent can continue responding to other requests while this implementation waits.
This example uses the following features:
Sets the delegated member of the requests structure to 1 to indicate to the agent that this request should be delayed. The agent queues this request to be handled later and then is available to handle other requests. The agent is not blocked by this request.
Registers an SNMP alarm to update the results at a later time.