Detecting access of a particular OID, handler functions

"Devvrat Tripathi" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
When we create an MIB and load it, say by agentx support then is there any
way to find out when any OID created by  us is being accessed and also to
dynamically change the value of that OID depending on some condition. The
example at net-snmp site says that while registering the instance you can
specify a valid handler function instead of NULL.
netsnmp_register_int_instance("nstAgentSubagentObject",
                                  nstAgentSubagentObject_oid,
                                  OID_LENGTH(nstAgentSubagentObject_oid),
                                  &nstAgentSubagentObject, NULL);
What i cannot understand is that how do we declare this handler function,
how is it called and what are the tasks it is supposed to perform. Does the
handler function get called whenever somebody queries for that OID.

regards
Devvrat

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.