How to find the completion of OID registrations by subagent with SNMPD.?
"Pamidipati Suresh-G20238" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All, We are using Net-snmp-5.2.2 as Agentx Master agent and subagent. Our subagent registers OIDs with SNMPD using helper functions in table.c and scalar.c. After subagent has established Agentx session with SNMPD and registered OIDs, when SNMPD goes down, subagent detects this as there will be no response from SNMPD for Agentx ping request. Later when SNMPD comes up, subagent detects this and registers the OIDs present in it's data structures with SNMPD. We can know that that registration of a certain OID is completed by doing snmpwalk on nsModuleTable. If the OID is present in snmpwalk output, then the OID is known to be registered. In this kind of situation where Net-snmp code/function sends register messages to SNMPD after SNMPD goes down and comes up, is there any other mechanism to find out the completion of all registrations with SNMPD.? Because application code does not come to know that Net-snmp code in subagent has sent out all the registration messages to SNMPD. For example, does the net-snmp code of subagent send a trap to indicate that it has sent out all the registrations that were present in it's data structures after SNMPD has come up. If this trap is not existing currently in Net-snmp, If I add it in Net-snmp code and submit it as a patch, will it be accepted by the group.? We had this requirement to know the completion of OID registrations by subagent after SNMPD has come up. Our test application will start doing snmp operations after the registrations are completed. As I mentioned above, it is known by doing snmpwalk on nsModuleTable, but an asynchronous event/trap from subagent would be more useful.. So please let us know your thoughts/comments on this. Thanks & Regards, Suresh. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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