Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SNMP-Effective CPAN distribution.

Report information
The Basics
Id: 61579
Status: resolved
Priority: 0/
Queue: SNMP-Effective

People
Owner: Nobody in particular
Requestors: rehan.azher [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.07
Fixed in: (no value)



Subject: SNMP Effective Hangs
SNMP::Effective hangs when OID Exists but has not values i.e. I did walk on OID: 1.3.6.1.2.1.2.2 (if Table) for 149 hosts only, whilc in debug mode i noted that it has stuck, using the IP that caused it to hang i did an snmpwalk and following was the response: root@ubuntu1004desktop:/home/user/Downloads/SNMP-Multi-2.1# snmpwalk -c public -v 1 100.2.33.159 1.3.6.1.2.1.2.2 End of MIB So in any case if this happens SNMP::Effective will fail and hang.
From: medved [...] allydark.ru
Срд Сен 22 22:05:02 2010, rehanazher писал: Show quoted text
> SNMP::Effective hangs when OID Exists but has not values i.e. >
This little patch solved problem for me: diff -uBb /usr/local/lib/perl5/site_perl/5.8.8/SNMP/Effective/ Dispatch.pm Dispatch.0.pm --- /usr/local/lib/perl5/site_perl/5.8.8/SNMP/Effective/Dispatch.pm Mon Nov 1 15:45:48 2010 +++ Dispatch.pm Fri Nov 19 11:20:53 2010 @@ -191,7 +191,7 @@ $splice--; # valid oid - if(defined SNMP::Effective::match_oid($cur_oid, $ref_oid)) { + if(defined SNMP::Effective::match_oid($cur_oid, $ref_oid) && ($r->[3] ne 'NULL')) { $host->data($r, $ref_oid); $splice--; $i++;
Applied patch in SNMP-Effective-1.0801. Should be available on CPAN soon.