That message is because you're returning the OID the agent is asking for on a getnext command. You should be returning the next OID from the one it's asking for when it's a getnext command. So basically your script needs to return different OIDs based on whether it's a get or a getnext. When you're out of OIDs, you should return nothing.
Hope this helps. Ken.... ----- Original Message ----- From: "Stefan Guenther" <[EMAIL PROTECTED]> To: <net-snmp-users@lists.sourceforge.net> Sent: Tuesday, September 04, 2007 8:54 AM Subject: Re: Re: Re:Re: Capabilties of pass command in snmpd.conf? > Hello Ken, >> >> The response should be 3 lines: the OID, the data type, and the data >> value, >> each on it's own line. >> >> For example: >> >> .1.3.6.1.4.1.29090.1.1 >> integer >> 10 >> >> Read the section "Extending Agent Functionality" here >> http://net-snmp.sourceforge.net/docs/man/snmpd.conf.html . particularaly >> the >> "pass" mechanism under "MIB-Specific Extension Commands". That describes >> the >> protocol. >> >> > Great! That's it, I read the wrong documentation. I can now add a line > for any OID I need and snmpwalk returns the right result. > > There's only one thing in the output, which might cause some trouble. > Here's what I get: > > SNMPV2-SMI::entrprises.10190.1 = STRING: "hello world" > Error: OID not increasing: SNMPV2-SMI::enterprises.10190.1 > >= SNMPV2-SMI::enterprises.10190.1 > > Since snmpwalk can not get the next OID, this error make sense to me. > When I use snmpget instead of snmpwalk I only get the expected output. > > Do you agree that an external application like the OP-Manager use > snmpget because an application is only interested in a single value? > If this is true, the app should see the error message, but only the > value it is expecting. > Or is there a way to avoid this message completely? > > Thanks for your help, > > Stefan > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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