diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 7d5cbcb3f8..be49181d7a 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2014-04-04 Ramon Novoa + + * util/recon_scripts/snmp-recon.pl: Lowered the number of retries. + 2014-04-03 Ramon Novoa * util/recon_scripts/snmp-recon.pl: Remove the symbolic labels from diff --git a/pandora_server/util/recon_scripts/snmp-recon.pl b/pandora_server/util/recon_scripts/snmp-recon.pl index 81bffb9af6..2a9fc18541 100755 --- a/pandora_server/util/recon_scripts/snmp-recon.pl +++ b/pandora_server/util/recon_scripts/snmp-recon.pl @@ -163,7 +163,7 @@ sub responds_to_snmp($) { my ($target) = @_; foreach my $community (@SNMP_COMMUNITIES) { - `snmpwalk -t0.1 -v1 -On -Oe -c $community $target .0 2>/dev/null`; + `snmpwalk -r2 -t0.1 -v1 -On -Oe -c $community $target .0 2>/dev/null`; if ($? == 0) { $COMMUNITIES{$target} = $community; return $community; @@ -180,7 +180,7 @@ sub snmp_get($$$) { my ($target, $community, $oid) = @_; my @output; - @output = `snmpwalk -t0.1 -v1 -On -Oe -c $community $target $oid 2>/dev/null`; + @output = `snmpwalk -r2 -t0.1 -v1 -On -Oe -c $community $target $oid 2>/dev/null`; return @output; } @@ -834,6 +834,7 @@ $CREATE_INCIDENT = $ARGV[2]; # Defined by user @SNMP_COMMUNITIES = split(',', $ARGV[4]) if defined($ARGV[4]); $ROUTER = $ARGV[5] if defined($ARGV[5]); $ALLIFACES = $ARGV[6] if defined($ARGV[6]); +$ALLIFACES = $ARGV[6] if defined($ARGV[6]); # Read config file pandora_load_config(\%CONF);