Skip to content

Commit cd39d2f

Browse files
committed
fix: Add Tiesse devices support
1 parent cfa45ac commit cd39d2f

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ netdiscovery/netinventory:
5252
* Update Mikrotik devices support
5353
* fix #1026: Update LLDP support fixing connection detection on few Cisco, Dell,
5454
Mikrotik and TP-Link devices
55+
* Add Tiesse devices support
5556

5657
injector:
5758
* Add support for --ca-cert-file and --ssl-fingerprint options
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package GLPI::Agent::SNMP::MibSupport::Tiesse;
2+
3+
use strict;
4+
use warnings;
5+
6+
use parent 'GLPI::Agent::SNMP::MibSupportTemplate';
7+
8+
use GLPI::Agent::Tools;
9+
use GLPI::Agent::Tools::SNMP;
10+
11+
use constant sysDescr => '.1.3.6.1.2.1.1.1.0';
12+
13+
use constant entPhysicalDescr => '.1.3.6.1.2.1.47.1.1.1.1.2.0';
14+
15+
use constant tiesse => ".1.3.6.1.4.1.4799" ;
16+
17+
use constant privatePhysicalDescr => tiesse . ".3.2.6023.0";
18+
19+
our $mibSupport = [
20+
{
21+
name => "tiesse",
22+
sysobjectid => getRegexpOidMatch(tiesse)
23+
}
24+
];
25+
26+
sub getModel {
27+
my ($self) = @_;
28+
29+
my $model = getCanonicalString($self->get(privatePhysicalDescr) || $self->get(entPhysicalDescr));
30+
31+
($model) = $model =~ /^(?:\S+) (\S+\s\S+)/
32+
if $model && $model =~ /^Tiesse/i;
33+
34+
return $model;
35+
}
36+
37+
sub getManufacturer {
38+
return "Tiesse";
39+
}
40+
41+
sub getType {
42+
return 'NETWORKING';
43+
}
44+
45+
1;
46+
47+
__END__
48+
49+
=head1 NAME
50+
51+
GLPI::Agent::SNMP::MibSupport::Htek - Inventory module for Tiesse devices
52+
53+
=head1 DESCRIPTION
54+
55+
The module enhances support for Tiesse devices

0 commit comments

Comments
 (0)