perl, bulkwalk, OID not increasing, bulkwalk looping

Ole Bj?rn Hessen <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello,

I'm using:

NET-SNMP version: 5.1.2
perl 5.8.3 
Solaris 2.8 and 2.9

While using SNMP.pm with async bulkwalk I got into a problem I'm not
sure how to handle. I'm polling more than 10.000 cisco routers with
bulkwalk and a some of these routers don't increases their OIDs. The
perl snmp modules does not discover this and enters a never-ending
loop.

1. Is there a way for the perl SNMP bulkwalk to discover non-increasing
OIDs ?  The "snmpbulkwalk"-commands discovers this error, and stops
processing. Why does not the perl discover this and returns the handle?

2. Is there a way to force timeout on a SNMP::Session. Since I'm using
the async version of bulkwalk I can find the session handle, but I
don't know how to force release of the socket and resources connected
to the handle.

Kind regards,

Ole Bjørn Hessen.

--

Output from the snmpbulkwalk command:

--

batch3(obh) obh 570$ snmpbulkwalk -v2c -cfoo -M/local/net/etc/snmp/mibs/v2 -mCISCO-RTTMON-MIB router rttMonStatsCaptureCompletions
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1 = INTEGER: 0
Error: OID not increasing: CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1
 >= CISCO-RTTMON-MIB::rttMonStatsCaptureCompletions.2642.62906171.1.1.1

--

A small perl-program using sync bulkwalk and goes into a never-ending sendto, recvfrom loop:

my $sess = SNMP::Session->new('DestHost' => $host,
			      'Version' => '2c',
			      'Community' => $snmp_ro,
			      'Retries' => 3, 
			      'Timeout' => 1000000)
    or die "$0: impossible to obtain a new SNMP::Session; $!";

$| = 1;

my $vars = new SNMP::VarList(['rttMonStatsCaptureCompletions']);
my @x = $sess->bulkwalk(0, 20, $vars);
die Dumper \@x;

--


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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.