2014-04-03 Ramon Novoa <rnovoa@artica.es>
* 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
This commit is contained in:
parent
42f65e8678
commit
6038891ac5
|
@ -1,3 +1,8 @@
|
|||
2014-04-03 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* util/recon_scripts/snmp-recon.pl: Remove the symbolic labels from
|
||||
enumeration values.
|
||||
|
||||
2014-04-03 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* util/recon_scripts/snmp-recon.pl: Fixed a typo.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue