File tree 3 files changed +76
-0
lines changed
lib/GLPI/Agent/SNMP/MibSupport
3 files changed +76
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ netdiscovery/netinventory:
41
41
* don't send discovery xml to server target for remoteinventory task event initiated
42
42
from toolbox
43
43
* fix #781: Filter invalid firmware date on HP peripherals
44
+ * Added Raritan PDU devices support
45
+ * Updated sysobject.ids
44
46
45
47
deploy:
46
48
* Fix checks on command run and clarify reason of success or failure. This fixes
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change 6987
6987
12532.253.4.1 Juniper Networks NETWORKING IC-6500
6988
6988
12532.254.4.1 Juniper Networks NETWORKING MAG-SM360
6989
6989
6990
+ 12740 Dell STORAGE
6991
+ 12740.17 Dell STORAGE
6992
+
6990
6993
12925 HP STORAGE 3PAR
6991
6994
12925.1 HP STORAGE 3PAR 7400
6992
6995
6996
+ 13742 Raritan NETWORKING
6997
+ 13742.6 Raritan NETWORKING
6998
+
6993
6999
13885 Polycom PHONE
6994
7000
6995
7001
14179 Cisco NETWORKING WLC 4100
9139
9145
26866.1.1 Gigamon NETWORKING GigaVUE-420
9140
9146
26866.3.1 Gigamon NETWORKING GigaVUE-2404
9141
9147
9148
+ 26928 Aerohive NETWORKING
9149
+ 26928.1 Aerohive NETWORKING
9150
+
9142
9151
27282 Ubiquiti NETWORKING
9143
9152
27282.3.2.10 Ubiquiti NETWORKING EdgeSwitch 10X
9144
9153
9390
9399
52642.2.1.45.101 FS NETWORKING S3900-48T4S
9391
9400
9392
9401
55062 Qnap STORAGE
9402
+
9403
+ 1004849 Intelbras NETWORKING
You can’t perform that action at this time.
0 commit comments