On Thu, 2006-02-16 at 08:55 -0500, Kyle Tucker wrote: > > Oh yes - one other thing. > > > If the Net-SNMP agent is built *without* the 'ucd-snmp/extensible' > > module, then new 'agent/extend' module will step in and implement > > the original UCD-SNMP-SNMP::extTable, using the new (caching) > > approach. This should also address the duplicate execution problem. > > Does the above being returned by NET-SNMP-EXTEND-MIB indicate which > module is being used? It appears from initial tests that my scripts > now only execute once, so I can assume the new agent/extend is being > used?
If you're querying the NET-SNMP-EXTEND-MIB, then this uses the agent/extend module. End Of Story. If you're querying the UCD-SNMP-MIB::extTable, then it depends on how the agent was compiled. By default, the agent includes both agent/extend and ucd-snmp/extensible - in which case the UCD-SNMP-MIB::extTable is handled by the ucd-snmp/extensible module (and will invoke the script twice). If the agent was configured using --with-out-mib-modules=ucd-snmp/extensible then the agent/extend module will be used for *both* the NET-SNMP-EXTEND-MIB and the UCD-SNMP-MIB::extTable. In this case, getting extOutput and extResult will only invoke the command once. But this is not the default (yet!). In due course, we plan to drop ucd-snmp/extensible from the default build, and allow agent/extend to take care of both tables. But this does have compatibility implications (when using the "exec OID ..." form), so we're taking it slowly. Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users