2014-04-04 Ramon Novoa <rnovoa@artica.es>
* util/recon_scripts/snmp-recon.pl: Lowered the number of retries. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9721 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c8745a5669
commit
5e6e04ee1b
|
@ -1,3 +1,7 @@
|
|||
2014-04-04 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* util/recon_scripts/snmp-recon.pl: Lowered the number of retries.
|
||||
|
||||
2014-04-03 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* util/recon_scripts/snmp-recon.pl: Remove the symbolic labels from
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue