Update for newer Net-SNMP versions
This commit is contained in:
23
t/prereq.t
23
t/prereq.t
@@ -2,6 +2,8 @@
|
|||||||
# prereq.t - Test file for prerequesites for SNMP::Info
|
# prereq.t - Test file for prerequesites for SNMP::Info
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
use Test::More tests=> 3;
|
use Test::More tests=> 3;
|
||||||
|
|
||||||
# Check for SNMP Module
|
# Check for SNMP Module
|
||||||
@@ -14,10 +16,11 @@ eval {
|
|||||||
if ($@){
|
if ($@){
|
||||||
print STDERR <<'end_snmp';
|
print STDERR <<'end_snmp';
|
||||||
|
|
||||||
Net-SNMP not found. Net-SNMP installs the perl modules
|
Net-SNMP not found. Net-SNMP installs the perl modules SNMP and
|
||||||
SNMP and SNMP::Session. As of version 4.2.1 and greater the Perl
|
SNMP::Session.
|
||||||
modules are no longer distributed on CPAN, as they are specific to different
|
|
||||||
versions of SNMP.
|
Versions 4.2.1 to 5.3 the Perl modules are not distributed on CPAN, you must
|
||||||
|
install from the distribution.
|
||||||
|
|
||||||
Install Net-SNMP from http://net-snmp.sourceforge.net and make sure you run
|
Install Net-SNMP from http://net-snmp.sourceforge.net and make sure you run
|
||||||
configure with the --with-perl-modules switch!
|
configure with the --with-perl-modules switch!
|
||||||
@@ -26,7 +29,7 @@ Note to Redhat Users: Redhat, in its infinite wisdom, does not install the
|
|||||||
Perl modules as part of their 8.0 RPMS. Please uninstall them and install the
|
Perl modules as part of their 8.0 RPMS. Please uninstall them and install the
|
||||||
newest version by hand.
|
newest version by hand.
|
||||||
|
|
||||||
|
Versions 5.3.1 and higher are once again available from CPAN.
|
||||||
|
|
||||||
end_snmp
|
end_snmp
|
||||||
ok(0,'Net-SNMP not installed, or missing Perl modules.');
|
ok(0,'Net-SNMP not installed, or missing Perl modules.');
|
||||||
@@ -67,7 +70,17 @@ Perl module of Net-SNMP 5.0.1 is buggy. Please upgrade.
|
|||||||
|
|
||||||
|
|
||||||
end_501
|
end_501
|
||||||
|
}
|
||||||
|
|
||||||
|
if(( $ver_maj == 5 and $ver_min == 3 and $ver_rev == 1 ) or
|
||||||
|
( $ver_maj == 5 and $ver_min == 2 and $ver_rev == 3 )) {
|
||||||
|
print STDERR << "end_bulkwalk";
|
||||||
|
|
||||||
|
|
||||||
|
Perl module of Net-SNMP Versions 5.3.1 and 5.2.3 have issues with bulkwalk,
|
||||||
|
turn off bulkwalk. Please upgrade.
|
||||||
|
|
||||||
|
end_bulkwalk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user