added device_type() debugging info.
This commit is contained in:
4
Info.pm
4
Info.pm
@@ -630,7 +630,9 @@ sub device_type {
|
|||||||
# if we dont have sysServices, we dont have anything else either probably.
|
# if we dont have sysServices, we dont have anything else either probably.
|
||||||
return undef unless (defined $layers and length($layers));
|
return undef unless (defined $layers and length($layers));
|
||||||
|
|
||||||
my $desc = $info->description();
|
my $desc = $info->description() || 'undef';
|
||||||
|
$desc =~ s/[\r\n\l]+/ /g;
|
||||||
|
$info->debug() and print "SNMP::Info::device_type() layers:$layers sysDescr: \"$desc\".\n";
|
||||||
|
|
||||||
# Layer 3 Supported
|
# Layer 3 Supported
|
||||||
# (usually has layer2 as well, so we check for 3 first)
|
# (usually has layer2 as well, so we check for 3 first)
|
||||||
|
|||||||
Reference in New Issue
Block a user