Skip to content

Commit

Permalink
fix: improved Ricoh printer support
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Dec 16, 2019
1 parent 0e53178 commit 95cbbb2
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ inventory:
* fix #752: normalize video cards memory on macosx
* fix #452, #642: better macosx network cards support
* fix #359: try to obtain remote management litemanager ID under win32
* improved Ricoh printer support
* Updated pci.ids to 2019.11.10 version
* Updated usb.ids to 2019.11.05 version

Expand Down
43 changes: 43 additions & 0 deletions lib/FusionInventory/Agent/SNMP/MibSupport/Ricoh.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package FusionInventory::Agent::SNMP::MibSupport::Ricoh;

use strict;
use warnings;

use parent 'FusionInventory::Agent::SNMP::MibSupportTemplate';

use FusionInventory::Agent::Tools;
use FusionInventory::Agent::Tools::SNMP;

use constant mib2 => '.1.3.6.1.2.1' ;
use constant enterprises => '.1.3.6.1.4.1' ;

use constant ricoh => enterprises . '.367.1.1' ;

# Printer-MIB
use constant printmib => mib2 . '.43' ;
use constant prtGeneralPrinterName => printmib . '.5.1.1.16.1' ;

our $mibSupport = [
{
name => "ricoh-printer",
sysobjectid => getRegexpOidMatch(ricoh)
}
];

sub getModel {
my ($self) = @_;

return $self->get(prtGeneralPrinterName);
}

1;

__END__
=head1 NAME
FusionInventory::Agent::SNMP::MibSupport::Ricoh - Inventory module for Ricoh Printers
=head1 DESCRIPTION
The module enhances Ricoh printers devices support.

0 comments on commit 95cbbb2

Please sign in to comment.