From e9610d5e1a20a0152fe881f830a15bb8006a9429 Mon Sep 17 00:00:00 2001 From: ramonn Date: Thu, 3 Apr 2014 15:40:44 +0000 Subject: [PATCH] 2014-04-03 Ramon Novoa * util/recon_scripts/snmp-recon.pl: Remove the symbolic labels from enumeration values. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9716 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/util/recon_scripts/snmp-recon.pl | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index b66f32b1ed..7d5cbcb3f8 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2014-04-03 Ramon Novoa + + * util/recon_scripts/snmp-recon.pl: Remove the symbolic labels from + enumeration values. + 2014-04-03 Ramon Novoa * util/recon_scripts/snmp-recon.pl: Fixed a typo. diff --git a/pandora_server/util/recon_scripts/snmp-recon.pl b/pandora_server/util/recon_scripts/snmp-recon.pl index a6fb4697bb..81bffb9af6 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 -c $community $target .0 2>/dev/null`; + `snmpwalk -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 -c $community $target $oid 2>/dev/null`; + @output = `snmpwalk -t0.1 -v1 -On -Oe -c $community $target $oid 2>/dev/null`; return @output; }