diff --git a/Changes b/Changes index 8305062b90..030e1dcae8 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/lib/FusionInventory/Agent/SNMP/MibSupport/Oki.pm b/lib/FusionInventory/Agent/SNMP/MibSupport/Oki.pm index 0bc33a4b34..180fa54bc8 100644 --- a/lib/FusionInventory/Agent/SNMP/MibSupport/Oki.pm +++ b/lib/FusionInventory/Agent/SNMP/MibSupport/Oki.pm @@ -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 = [ @@ -24,6 +25,12 @@ sub getSerial { return $self->get(serial); } +sub getModel { + my ($self) = @_; + + return getCanonicalString($self->get(model)); +} + 1; __END__