1package FusionInventory::Agent::SNMP::MibSupport::Zebra; 2 3use strict; 4use warnings; 5 6use parent 'FusionInventory::Agent::SNMP::MibSupportTemplate'; 7 8use FusionInventory::Agent::Tools; 9use FusionInventory::Agent::Tools::SNMP; 10 11# See ESI-MIB 12 13use constant esi => '.1.3.6.1.4.1.683' ; 14use constant model2 => esi . '.6.2.3.2.1.15.1' ; 15use constant serial => esi . '.1.5.0' ; 16use constant fw2 => esi . '.1.9.0' ; 17 18use constant zebra => '.1.3.6.1.4.1.10642' ; 19use constant model1 => zebra . '.1.1.0' ; 20use constant fw1 => zebra . '.1.2.0' ; 21 22our $mibSupport = [ 23 { 24 name => "zebra-printer", 25 sysobjectid => getRegexpOidMatch(esi) 26 } 27]; 28 29sub getSerial { 30 my ($self) = @_; 31 32 return hex2char($self->get(serial)); 33} 34 35sub getModel { 36 my ($self) = @_; 37 38 return hex2char($self->get(model1) || $self->get(model2)); 39} 40 41sub getFirmware { 42 my ($self) = @_; 43 44 return hex2char($self->get(fw1) || $self->get(fw2)); 45} 46 471; 48 49__END__ 50 51=head1 NAME 52 53FusionInventory::Agent::SNMP::MibSupport::Zebra - Inventory module for Zebra Printers 54 55=head1 DESCRIPTION 56 57The module enhances Zebra printers devices support. 58