> > > Could someone verify that doing the above snmpget command > > *should* run a given script twice or is it perhaps a bug? > > I'd expect all fields for for a given exec call to be the > > result of the same single execution, but I am seeing hard > > evidence of two runs. Adding any other of the fields such > > as extNames.1 or extIndex.1 don't cause subsequent runs. > > It's just the extResult and extOutput together.. > > As Dave said, the suggested fix is to use the "extend" directive instead.
I believe he said I may wish to investigate it, not that is was a fix. Anyway, I have put in extend directives and find its output from a snmpwalk leaving me more confused. If I ask snmpwalk for symbolic output, I get these for my two test entries. nsExtendCommand."extt" = STRING: /usr/local/bin/extt nsExtendCommand."extt2" = STRING: /usr/local/bin/extt2 If I try to call it with this symbolic name from snmpget, with or without quotes, it fails with: snmpget ... hostname ... nsExtendOutputFull."extt" nsExtendOutputFull.extt: Unknown Object Identifier (Index out of range: extt (nsExtendToken)) I can query it successfully using the numeric OIDs. What am I missing here. -- - Kyle --------------------------------------------- [EMAIL PROTECTED] http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------- 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
