Skip to content

Commit

Permalink
fix: find Oki printer model
Browse files Browse the repository at this point in the history
Closes #830
  • Loading branch information
g-bougard committed Nov 24, 2020
1 parent 153c7d9 commit 9b2b49b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -45,6 +45,7 @@ netdiscovery/netinventory:
* Fix #823, #856: Add Ubiquiti UniFi AP linux appliance support
* Fix #772: Enhanced some HP switchs support
* Introduced Hwg support, thanks to Bertrand Keller
* Fix #830: Retrieve rigth model for Oki printers

ESX:
* verify a user and password are provided before attemting to connect to ESX server
Expand Down
7 changes: 7 additions & 0 deletions lib/FusionInventory/Agent/SNMP/MibSupport/Oki.pm
Expand Up @@ -9,6 +9,7 @@ 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 = [
Expand All @@ -24,6 +25,12 @@ sub getSerial {
return $self->get(serial);
}

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

return getCanonicalString($self->get(model));
}

1;

__END__
Expand Down

0 comments on commit 9b2b49b

Please sign in to comment.