Skip to content

Commit f0fac57

Browse files
committed
fix: Added Raritan PDU support
1 parent 165bf96 commit f0fac57

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ netdiscovery/netinventory:
4141
* don't send discovery xml to server target for remoteinventory task event initiated
4242
from toolbox
4343
* fix #781: Filter invalid firmware date on HP peripherals
44+
* Added Raritan PDU devices support
45+
* Updated sysobject.ids
4446

4547
deploy:
4648
* Fix checks on command run and clarify reason of success or failure. This fixes
+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
package GLPI::Agent::SNMP::MibSupport::Raritan;
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 raritan => '.1.3.6.1.4.1.13742' ;
12+
use constant pdu2 => raritan . '.6' ;
13+
14+
use constant nameplateEntry => pdu2 . '.3.2.1.1';
15+
use constant pduManufacturer => nameplateEntry . '.2.1';
16+
use constant pduModel => nameplateEntry . '.3.1';
17+
use constant pduSerialNumber => nameplateEntry . '.4.1';
18+
19+
use constant unitConfigurationEntry => pdu2 . '.3.2.2.1';
20+
use constant pduName => unitConfigurationEntry . '.13.1';
21+
22+
our $mibSupport = [
23+
{
24+
name => "raritan-pdu2",
25+
sysobjectid => getRegexpOidMatch(pdu2)
26+
}
27+
];
28+
29+
sub getManufacturer {
30+
my ($self) = @_;
31+
32+
return getCanonicalString($self->get(pduManufacturer)) || 'Raritan';
33+
}
34+
35+
sub getSerial {
36+
my ($self) = @_;
37+
38+
return getCanonicalString($self->get(pduSerialNumber));
39+
}
40+
41+
sub getModel {
42+
my ($self) = @_;
43+
44+
return getCanonicalString($self->get(pduModel));
45+
}
46+
47+
sub getSnmpHostname {
48+
my ($self) = @_;
49+
50+
return getCanonicalString($self->get(pduName));
51+
}
52+
53+
1;
54+
55+
__END__
56+
57+
=head1 NAME
58+
59+
GLPI::Agent::SNMP::MibSupport::Raritan - Inventory module for Raritan Pdu devices
60+
61+
=head1 DESCRIPTION
62+
63+
The module enhances Raritan Pdu devices support.

share/sysobject.ids

+11
Original file line numberDiff line numberDiff line change
@@ -6987,9 +6987,15 @@
69876987
12532.253.4.1 Juniper Networks NETWORKING IC-6500
69886988
12532.254.4.1 Juniper Networks NETWORKING MAG-SM360
69896989

6990+
12740 Dell STORAGE
6991+
12740.17 Dell STORAGE
6992+
69906993
12925 HP STORAGE 3PAR
69916994
12925.1 HP STORAGE 3PAR 7400
69926995

6996+
13742 Raritan NETWORKING
6997+
13742.6 Raritan NETWORKING
6998+
69936999
13885 Polycom PHONE
69947000

69957001
14179 Cisco NETWORKING WLC 4100
@@ -9139,6 +9145,9 @@
91399145
26866.1.1 Gigamon NETWORKING GigaVUE-420
91409146
26866.3.1 Gigamon NETWORKING GigaVUE-2404
91419147

9148+
26928 Aerohive NETWORKING
9149+
26928.1 Aerohive NETWORKING
9150+
91429151
27282 Ubiquiti NETWORKING
91439152
27282.3.2.10 Ubiquiti NETWORKING EdgeSwitch 10X
91449153

@@ -9390,3 +9399,5 @@
93909399
52642.2.1.45.101 FS NETWORKING S3900-48T4S
93919400

93929401
55062 Qnap STORAGE
9402+
9403+
1004849 Intelbras NETWORKING

0 commit comments

Comments
 (0)