-
Notifications
You must be signed in to change notification settings - Fork 125
/
Oki.pm
44 lines (29 loc) · 823 Bytes
/
Oki.pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package FusionInventory::Agent::SNMP::MibSupport::Oki;
use strict;
use warnings;
use parent 'FusionInventory::Agent::SNMP::MibSupportTemplate';
use FusionInventory::Agent::Tools;
use FusionInventory::Agent::Tools::SNMP;
use constant oki => '.1.3.6.1.4.1.2001';
use constant model => oki . '.1.1.1.1.11.1.10.25.0';
use constant serial => oki . '.1.1.1.1.11.1.10.45.0';
our $mibSupport = [
{
name => "oki",
sysobjectid => getRegexpOidMatch(oki)
}
];
sub getSerial {
my ($self) = @_;
return $self->get(serial);
}
sub getModel {
my ($self) = @_;
return getCanonicalString($self->get(model));
}
1;
__END__
=head1 NAME
FusionInventory::Agent::SNMP::MibSupport::Oki - Inventory module for Oki printers
=head1 DESCRIPTION
This module enhances Oki printers support.