On 05/04/07, Florian Jauernig <[EMAIL PROTECTED]> wrote: > > Note that the SNMP perl module does include a flag to control the > > behaviour when such bogus results are returned: > > I already tried this - but unfortunately when creating session objects > using "new" with the "NonIncreasing" key set to 1, I do not get any errors > in the session object.
Hmmm.... I've never actually used this flag (and it's a bit difficult to trigger). But comparing the code in SNMP.xs with the equivalent code in apps/snmpbulkwalk, I can see a suspicious difference: SNMP.xs: if (__oid_cmp(vars->name, vars->name_length, context->reqbase[pix].last_oid, context->reqbase[pix].last_len) == 0) { if (check) { DBPRT(2, (DBOUT "Error: OID not increasing: %s\n", // etc } } snmpbulkwalk.c: if (check && snmp_oid_compare(name, name_length, vars->name, vars->name_length) >= 0) { fprintf(stderr, "Error: OID not increasing: "); // etc } The command-line tool picks up on anything other than strictly increasing OIDs. The perl module only spots a repeasted OID (so wouldn't recognise your situation, where the OID actually goes backwards). Try tweaking the SNMP.xs code to use the test "<=" instead of "==", (since the two OIDs are presented in the opposite order!) recompile, and re-install. Does that make any difference? Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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