Pass and snmpwalk problem

Nelson Vale <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I'm trying to set an "pass" extension to the sysDescr object in the
snmpd.conf file of my net-snmp package but I'm having some problems with
the snmpwalk. If I do a snmpget the value is returned ok, but if I do a
snmpwalk the value is returned but I get an error:


snmpwalk -c xxxxxxxx -v 2c localhost .1.3.6.1.2.1.1 -O n
.1.3.6.1.2.1.1.1.0 = STRING: 9
.1.3.6.1.2.1.1.1.0 = STRING: 9
Error: OID not increasing: .1.3.6.1.2.1.1.1.0
 >= .1.3.6.1.2.1.1.1.0

The script that I'm using is aperl script like:

#!/usr/bin/perl

if($ARGV[0] eq "-g") {
        print "$ARGV[1]\n";
        print "string\n";
        print "1\n";
}
if($ARGV[0] eq "-n") {
        print "$ARGV[1]\n";
        print "string\n";
        print "9\n";
}

1;


The snmpd.conf file as an entry like:

pass .1.3.6.1.2.1.1.1.0 /usr/bin/perl /tmp/teste.pl

I've also tried with:

pass .1.3.6.1.2.1.1.1 /usr/bin/perl /tmp/teste.pl



What am I doing wrong?


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.