Processing GET/SET Requests

 

The Agent Compiler generates a set of 'c' source files for each Module of the MIB file. This section gives a basic understanding on how the methods in the handler files/other files are invoked by the agent API when a request is made by the manager to the agent.



 

Processing a GET/GET-NEXT Request

 

When a get/get-next request is made

Processing a SET Request

 

For processing a set request, the AdventNet Agent Toolkit C Edition has implemented the atomic set as follows:

 

A set request is made for a group of OIDs by the Manager to the Agent. The Agent API will call the method < module name >ProcessRequests() from the handler file < module name >hdlr.c. for each request with the received pduType, varBind vector, errStatus, and errIndex. The set request can be divided into three processes:

 

Process for validation

Process to set the value

Process if set fails

In this phase, if set is failed then Agent API will send undo failed error to the manager.



Copyright © 1999-2007, AdventNet Inc. All Rights Reserved.